-
-
Notifications
You must be signed in to change notification settings - Fork 118
Not possible to disable DKIM signing for a single domain #1048
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
Comments
You can control DKIM signing on a per-domain basis at DNS Settings -> DNS Options -> Add DomainKeys Identified Mail records |
|
Is the "DNS for Domain" feature enabled on the "Edit Virtual Server" page for these? |
No. As DNs is hosted elsewhere and not in control of virtualmin |
Try this : 1 - SSH into your Virtualmin system as 2 - Edit the file output by the previous command, and at the end at the line 3 - Go back to the DKIM page in the UI, and re-save it. |
list-domains ;-)
Did not help. Emails are still being signed |
Which Linux distro and version are you running there? From that I can figure out which config file contains the list of domains to sign for. |
Files being used by
Seems as if virtualmin only makes changes in When I manually change content of those files signing is done (or not) as it should. |
Ok that could be an issue. In the primary DKIM config file (something like |
Did this website have email enabled? Looking at the current code, if it doesn't have DNS, it shouldn't get DKIM signing when Domains to sign for by default is set to Only those with DNS and email enabled |
hi, you dont need to have email enabled to sign OUTGOING mail from a website. There is no need to host imap account on the server to have to sign with DKIM outgoing emails of the website :) i have seen also problem in the dkim configuration but had not found the time to make test case to report the exact issue but yes i had the case the server started to sign all outgoing mail even when not listed and such problematic behaviors. I ended up chattr +i the files so it stop doing silly things. best regards, |
I has Mail for Domain enabled but no DNS The setting for DKIM are those in the screenshot above Only those with DNS and email enabled and a I wrote signing was ONLY enabled directly after ceation of the website, but removed once I saved the form … |
I know… this is exactly my problem:
I have a website the has no email accounts, only some system mail sent via the CMS. But those emails are signed while they should not. I would need to contact a 3rd party, which is managing the DNS, to get the corresponding entry addded/updated. |
I can’t say for sure, but it looks like the problem is with your manually created hybrid setup that either OpenDKIM or Virtualmin isn’t handling well. We only set up a simple config with I don’t think that setup is even recommended. I’d suggest commenting out those extra options out and sticking to the defaults. And, please, if you manually change a service’s config, it’s really important to mention it right from the start! |
You right, it seems that
While it is true that on the production servers, the two files seems to have caused the problems for existing websites, I'm still no sure if isn't a bug during the creation of new websites. The whole Additional info - Stuff was done on a developer machine where DKIM was still configured out-of-the box. Adding a website without DNS enabled, no matter if emails were enabled or not, should not have let to the emails being signed. |
Why is that? DKIM signing should work no matter where the DNS is hosted... The mail server uses OpenDKIM to sign outgoing emails with its private key, and the receiving server checks the public key through DNS to verify it. That part doesn’t really depend on where DNS is hosted, does it? |
Because Only those with DNS and email enabled is selected. |
Uh oh!
There was an error while loading. Please reload this page.
As @aqueos pointed out in #777
I have a server with DKIM enabled globally but with several domains which shouldn't have their emails signed
Mail for domain
is enabled but DNS is hosted elsewhere and not in control of virtualminMail for domain
is disabled and DNS is hosted elsewhere and not ion control of virtualminAs mentioned in #119 (comment), signing a domain with DKIM, while there is no or a different entry in DNS is worse then not signing.
The settings under
DomainKeys Identified Mail
are:So neither of the two domains mentioned should be signed
Only domains matching the
DNS and email enabled
criteria and those listed inExtra domains to sign for
are listed underDomains currently signed for
.There is an
Add DomainKeys Identified Mail records
option inDNS Options
as seen on @iliaross's screenshot in #777 (comment) but theDNS Options
is not available my two domains.Contrarily to #1018 saving the
DomainKeys Identified Mail
seems to add DKIM signing to previously not signed domains, but it does not remove signing from domains that should not be signed.Either I'm missing a setting which would allow to remove singing for domains, or there is a bug…
The text was updated successfully, but these errors were encountered: