送信者と受信者に基づいて電子メールを転送する

送信者と受信者に基づいて電子メールを転送する

Postfixを使用すると、main.cf()virtual_alias_maps = hash:/etc/postfix/virtualのエントリと添付ファイル(ここ)を介して/etc/postfix/virtual受信者に基づいて電子メールを転送できます。

私の質問は、送信者に基づいて特定のアドレスに電子メールを転送する方法です。そして受信者?サーバーにローカルユーザー/メール受信者がいません。

例: 送信者のメール[Eメール保護]到着[Eメール保護]に渡されなければならない[Eメール保護]。誰でもこの質問に答えるのに役立ちますか?

ベストアンサー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.

ミルトが必要です。

おすすめ記事