根据发件人和收件人转发电子邮件

根据发件人和收件人转发电子邮件

使用 Postfix,可以通过 main.cf ( virtual_alias_maps = hash:/etc/postfix/virtual) 中的条目和附加文件(此处/etc/postfix/virtual)根据收件人转发电子邮件。

我的问题是,如何根据发件人的情况将电子邮件转发到特定地址接受者?服务器上没有本地用户/电子邮件收件人。

示例:来自的电子邮件[电子邮件受保护][电子邮件受保护]应转发至[电子邮件受保护]。有人可以帮我解答这个问题吗?

答案1

后缀本身不能

http://www.postfix.org/BUILTIN_FILTER_README.html

Header/body checks cannot depend on the recipient of a message.

One message can have multiple recipients, and all recipients of a 
message receive the same treatment. Workarounds have been proposed that 
involve selectively deferring some recipients of multi-recipient mail, 
but that results in poor SMTP performance and does not work for non-
SMTP mail.

Some sources of mail send the headers and content ahead of the 
recipient information. It would be inefficient to buffer up an entire 
message before deciding if it needs to be filtered, and it would be 
clumsy to filter mail and to buffer up all the actions until it is 
known whether those actions need to be executed.

你需要一个米尔特。

相关内容