Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thunderbird Offline Mode #129

Closed
AnanasPfirsichSaft opened this issue Nov 5, 2018 · 5 comments
Closed

Thunderbird Offline Mode #129

AnanasPfirsichSaft opened this issue Nov 5, 2018 · 5 comments
Assignees
Milestone

Comments

@AnanasPfirsichSaft
Copy link

If I start in offline mode OR switch to it, the DKIM verifier states that it cannot connect to the DNS server. Even if I put Thunderbird back into online mode.

Maybe this can be fixed that the verifier starts working again when I return to online mode?

__
Thunderbird 60.2.1 (Ubuntu Bionic [18.04LTS]) and DKIM Verifier 2.0.0

@lieser
Copy link
Owner

lieser commented Nov 25, 2018

Until a proper handling of the offline mode is added, you can enable the extensionsdkim_verifierdnsjsdnsautoresetserveralive-boolean setting as a workaround. Note that this setting is not exposed in the settings window of the add-on. You will have to change it via TB's config editor (TB Options > Advanced > General > Config Editor).

@AnanasPfirsichSaft
Copy link
Author

AnanasPfirsichSaft commented Dec 4, 2018

With this setting, it resets the DNS server "back to alive" in offline mode, but cannot connect to the nameserver again.

authResult: ({version:"2.1", dkim:[{version:"2.0", result:"TEMPFAIL", sdid:"xxxxx.de", auid:"newsletter@xxxxx.de", selector:"mailjet", errorType:"DKIM_DNSERROR_SERVER_ERROR", res_num:20, result_str:"Fehler bei der Verbindung zum DNS-Server", favicon:(void 0)}]})

But this is not urgent. It can be mitigated by storing the verifier results until the next online session.

EDIT: If you use libunbound, it also works offline. The wiki explains how to do it.

@lieser
Copy link
Owner

lieser commented Jan 13, 2019

Note that the default JSDNS resolver uses Thunderbird for the network communication. As you are in offline mode, network communication is disabled by Thunderbird itself (connection fails with NS_ERROR_OFFLINE (804B0010)). This behavior can probably not be changed.

As libunbound uses the underlying OS directly for the network, it is not affected by Thunderbird's offline mode.

If you are often in offline mode, I would recommend you to enable the caching of the DKIM keys, if you haven't already.

@lieser
Copy link
Owner

lieser commented Oct 16, 2022

Still have to actually test it but seems like the navigator.onLine property and the online/offline events could be used to implement this.

@lieser lieser added this to the 5.3.0 milestone Feb 19, 2023
lieser added a commit that referenced this issue May 20, 2023
- No DNS queries are done if Thunderbird is in the offline mode
- DNS configuration is rest after Thunderbird goes back online
@lieser
Copy link
Owner

lieser commented May 20, 2023

The addon now detects if Thunderbird is in the offline mode and if it goes back to online. This means for both DNS resolvers:

  • No DNS queries are done if Thunderbird is in the offline mode
  • DNS configuration is reset after Thunderbird goes back online

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants