DKIM - Virtual Domain Signing

soapee01

Well-Known Member
Sep 7, 2016
39
6
48
69
Hi,

Proxmox is installed somewhere like pmg.example.com
DKIM for this domain is working. It correctly signs an email for mail from this domain (example.com) with a header like:
Code:
header.i=@example.com header.s=dkim-pmg

I've added a virtual domain to relay on behalf of, and it changes the header.i to the new domain (foobar.com). I suppose I could publish the DNS DKIM entry on that domain as well, but I'd rather not have to, because of laziness/error potential. I get DKIM failures due to this. It sends info like the following, but I want the header to use example.com instead of this:
Code:
header.i=@foobar.com header.s=dkim-pmg

Obviously when header.i is set to foobar, DKIM will fail without a corresponding DNS entry for that domain.

I've tried various combinations of settings on Configuration -> Mail Proxy -> DKIM:

sign domains has no entries, and "Sign all outgoing mail" is selected,
sign domains has the entry foobar.com and "Sign all outgoing mail" is selected
sign domains has the entry foobar.com and "Sign all outgoing mail" is UNselected.

Any advice on this one?

Thanks!
 
PMG uses the sending email address (from the envelop sender) to determine if a mail should be signed.
so for now you need to publish the DNS records
(I also don't think we will change that - usually you want the signature to have some link to the domain where the mail is sent from)

I hope this explains it!
 
Thank you for your answer. An option would be better. I'm not aware of how dkim signing by the sending domain has any affect on delivery. All of the major players sign themselves (Microsoft, Google, hushmail) so it makes it a pain if you plan on hosting for customers to edit so many DNS entries in the event of a cert regeneration or security issue.

Perhaps it could be an enterprise feature?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!