使用Exim备份MX检查收件人地址

我想用Debian上的Eximconfiguration备份MX,使用dpkg-reconfigure exim4-config我已经设置了这个:

 #update-exim4.conf.conf dc_eximconfig_configtype='internet' dc_other_hostnames='xxx' dc_local_interfaces='127.0.0.1 ; ::1' dc_readhost='' dc_relay_domains='domain_to_relay' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='' dc_mailname_in_oh='true' dc_localdelivery='mail_spool' 

它接受所有的邮件到domain_to_relay,但我想拒绝未知地址的邮件(保持一个已知的地址列表),所以它不会成为一个反向散射,我怎么能configuration呢?

在后缀中的等价物将是

 relay_recipient_maps = hash:/etc/postfix/relay_recipients 

我解决了这个问题,将其添加到update-exim4.conf.conf

 CHECK_RCPT_LOCAL_ACL_FILE=/etc/exim4/custom_acl 

创build自定义ACL文件/etc/exim4/custom_acl

 deny !recipients = /etc/exim4/recipients_whitelist 

并在/etc/exim4/recipients_whitelist上创build已知地址的列表

 [email protected] [email protected] ...