The DKIM signature is not added to E-mails sent from domains declared as aliases in the hmailServer settings
Posted: 2015-03-16 20:52
Hi development team,
When a domain name (like "alias.com") is defined as an alias of another one (for instance "maindomain.com"),
and if the DKIM Signing is enabled for "maindomain.com" in hmailServer settings,
then the E-mails sent by the "alias.com" domain users, have no DKIM signature,
while the E-mails sent by the "maindomain.com" domain users, have such a DKIM signature,
according to the tests made with http://www.appmaildev.com/en/dkim/
Of course the same DKIM public keys have been defined in the DNS of the two domains
(I have checked this point in nslookup and I have waited for DNS propagation),
- but this is not the question here because hmailServer should sign the mails according to the _private_ key file
defined in the hmailServer settings for the "maindomain.com" domain,
independently from the fact that the DKIM DNS entries (which store the public key) exist or not.
So, when sending a mail from the "alias.com" domain, we get the reply from appmaildev.com:
================================================================
DKIM result: none (no signature)
================================================================
while for the "maindomain.com" domain, we get the reply:
================================================================
DKIM result: pass
================================================================
Signed by: xxxx@maindomain.com
Expected Body Hash: 8RlxVAukGYjyhb0...
This looks like a hmailServer bug.
Thanks very much for your suggestions and for your help!
Best regards,
SemperFidelis
When a domain name (like "alias.com") is defined as an alias of another one (for instance "maindomain.com"),
and if the DKIM Signing is enabled for "maindomain.com" in hmailServer settings,
then the E-mails sent by the "alias.com" domain users, have no DKIM signature,
while the E-mails sent by the "maindomain.com" domain users, have such a DKIM signature,
according to the tests made with http://www.appmaildev.com/en/dkim/
Of course the same DKIM public keys have been defined in the DNS of the two domains
(I have checked this point in nslookup and I have waited for DNS propagation),
- but this is not the question here because hmailServer should sign the mails according to the _private_ key file
defined in the hmailServer settings for the "maindomain.com" domain,
independently from the fact that the DKIM DNS entries (which store the public key) exist or not.
So, when sending a mail from the "alias.com" domain, we get the reply from appmaildev.com:
================================================================
DKIM result: none (no signature)
================================================================
while for the "maindomain.com" domain, we get the reply:
================================================================
DKIM result: pass
================================================================
Signed by: xxxx@maindomain.com
Expected Body Hash: 8RlxVAukGYjyhb0...
This looks like a hmailServer bug.
Thanks very much for your suggestions and for your help!
Best regards,
SemperFidelis