huan / docker-simple-mail-forwarder

Simplest and Smallest Email Forward Service based on Docker.
https://hub.docker.com/r/zixia/simple-mail-forwarder/
Apache License 2.0
544 stars 86 forks source link

DKIM support for multiple domains #88

Closed dgraziotin closed 3 years ago

dgraziotin commented 3 years ago

As discussed in #83, SMF needs a way to handle DKIM for multiple domains.

In particular, it should gracefully handle the domain defined in $SMF_DOMAIN for backward compatibility (going back to single DKIM), create DKIM public/private keypairs to be used for all source domains in $SMF_CONFIG, adapt /var/db/dkim/ to a per-domain path style, and change /etc/opendkim/opendkim.conf to use KeyTable, SigningTable, ExternalIgnoreList, and InternalHosts.

Finally, SMF should check validity of all DKIM keys on startup.

This is underway.