DKIM on postfix relay server

Posted by Danijel Krmar on Server Fault See other posts from Server Fault or by Danijel Krmar
Published on 2012-03-12T10:36:30Z Indexed on 2013/11/02 15:54 UTC
Read the original article Hit count: 297

Filed under:
|
|
|

I have a postfix/amavis relay server, with the domain name mail.example.com. It will be a relay for dozens of VPSs, which will have domains like hostname.example.net.

So i have actually two questions. Is it possible to dkim sing the mails originating from the VPSs over the postfix relay on the relay server? Or have the mails to be signed on the VPSs where they are actually from?

Would a amavis configuration like this be ok?

# DKIM key
dkim_key('example.com', 'dkim',       '/var/dkim/DKIMkey.pem');

# Cover subdomains in @dkim_signature_options_bysender_maps= ():
@dkim_signature_options_bysender_maps = ( {

# Cover subdomains example.net.
'.example.net'                => { d => 'example.com' },

});

Or have I misunderstood the whole concept. Do I even need to sign subdomains if they are going over an relay server, or is it enough to just sign the relay server domain?

© Server Fault or respective owner

Related posts about postfix

Related posts about smtp-relay