Sign email depending on domain

96 Views Asked by At

I've got multiple websites running on the same server, and I'm about to setup DKIM signatures for all of them. I followed this excellent guide and could successfully send signed emails from PHP on the first try.

The problem is that now all the outgoing emails are signed with the same domain, while I'd like them to be signed by respective domain instead. I can choose which emails to sign via the signing table, but it seems like I can't choose to sign all outgoing emails from domain X with signature Y.

Is this possible, and in that case - how do I do?

Thank you in advance.


  • OS: Debian
  • Web server: Nginx + PHP-FPM
  • Mail server: Postfix
  • DKIM: OpenDKIM
0

There are 0 best solutions below