我将所有邮件从一个域名@externaldomain1.com [email protected]邮件服务器(Postfix)上的一个邮箱[email protected] 。 我需要将其复制到外部邮箱[email protected] (至less在本地)。
请告诉我,哪种方式挖?
这个问题有点含糊,但我可以告诉你,你正在接收从“[email protected]”到“[email protected]”的邮件,以及将所有入站电子邮件的碳复写到“[email protected]” ”。
最简单的解决方法是在接收地址前加一个别名,然后在别名中指定本地地址和远程地址。 该条目看起来像这样(但不完全):
localuser: localuser, [email protected]
将条目放在/ etc / aliases文件中,然后运行newaliases 。
你可以尝试sender_bcc_maps:
http://www.postfix.org/postconf.5.html#sender_bcc_maps
用内容创build文件/ etc / postfix / sender_bcc:
@externaldomain1.com [email protected]
添加到main.cf:
sender_bcc_maps = /etc/postfix/sender_bcc
跑:
postmap /etc/postfix/sender_bcc postfix reload
之后,所有来自externaldomain1.com的传入邮件将被复制(密件抄送)以解决[email protected]的问题