我试图添加一个DKIM密钥到我的Ubuntu邮件服务器上的其他域,我试图将下面的代码块添加到amavisd.conf文件
$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
但是,在我的设置上,amavisd.conf文件被分割成以下文件:
你能build议哪些文件,我需要添加到?
谢谢
对于用户定义的configuration,您应该放置在50-user文件中。 该文件将覆盖other-dkim参数,例如,在20-debian_defaults和21-ubuntu_defaults 。
user@ubuntu:/etc/amavis/conf.d$ grep dkim * 20-debian_defaults:$enable_dkim_verification = 0; #disabled to prevent warning 21-ubuntu_defaults:$enable_dkim_verification = 1;
这里是50-user文件的内容
use strict; # # Place your configuration directives here. They will override those in # earlier files. # # See /usr/share/doc/amavisd-new/ for documentation and examples of # the directives you can use in this file # #------------ Do not modify anything below this line ------------- 1; # ensure a defined return
一些参考资料: 这个页面