Перенаправление сообщений
Postfix может перенаправить сообщение другим получателям, используя действие REDIRECT в случае соответствия шаблону в заголовках и в теле сообщения. Рассмотрим пример перенаправления (на самом деле мы бы не рекомендовали его использовать):
/Subject:.*deadbeef/
REDIRECT bigbrotheriswatchingyou@example.com
В журнале запись о перенаправлении будет выглядеть так:
Apr 9 23:20:38 mail postfix/smtpd[11873]: 9305215C009: client=client.example.com[10.0.0.1]
Apr 9 23:20:38 mail postfix/cleanup[11865]: 9305215C009: redirect: header
Subject: deadbeef from client.example.com[10.0.0.1]; from=<sender@example.com> to=<recipient@example.com> proto=ESMTP helo=<client.example.com>: bigbrotheriswatchingyou@example.com Apr 9 23:20:38 mail postfix/cleanup[11865]: 9305215C009: message-id=<20040409212038.GK3406@example.com>
Apr 9 23:20:38 mail postfix/qmgr[11857]: 9305215C009:
from=<sender@example.com>, size=1111, nrcpt=1 (queue active)
Apr 9 23:21:08 mail postfix/smtp[11874]: 9305215C009:
to=<bigbrotheriswatchingyou@example.com>,
orig_to=<recipient@example.com>, relay=none, delay=30, status=deferred (connect to example.com [192.0.34.166]: Connection timed out)