I'm trying to add a DKIM key to an additional domain on my Ubuntu mail server, I am trying to add the following block of code to the amavisd.conf file
$enable_dkim_verification = 1;
$enable_dkim_signing = 1;
dkim_key('example.com', 'foo', '/var/db/dkim/example-foo.key.pem');
@dkim_signature_options_bysender_maps = (
{ '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
@mynetworks = qw(0.0.0.0/8 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12
192.168.0.0/16); # list your internal networks
However, on my setup the amavisd.conf file is split into the following files:
- 01-debian
- 05-domain_id
- 05-node_id
- 15-av_scanners
- 15-content_filter_mode
- 20-debian_defaults
- 21-ubuntu_defaults
- 25-amavis_helpers
- 30-template_localization
- 40-policy_banks
- 50-user
- 50-user.2014.02.20.10.30.51
Can you advise which file I need to add this to?
Thanks