postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Mail forwarding possible when mailbox_size_li

Re: Mail forwarding possible when mailbox_size_limit is reached?

From: Wietse Venema <wietse_at_nospam>
Date: Sun Oct 24 2010 - 13:39:52 GMT
To: Wietse Venema <wietse@porcupine.org>

> Try without soft bounce (and without EX_TEMPFAIL).

Postfix will NOT forward the message when delivery fails with soft
bounce or temporary exit status, because that would result in
repeated mail forwarding.

    ~/.forward
         XXXXXX@porcupine.org
         "|exit 75"

    Oct 24 09:26:28 tail postfix/local[2137]: 3E7F3547B1F:
    to=<XXXXXX@tail.porcupine.org>, relay=local, delay=0.23,
    delays=0.11/0.06/0/0.06, dsn=4.3.0, status=deferred (temporary
    failure)

Postfix will forward when mailbox delivery fails permanently
(and when mailbox delivery succeeds but you knew that already.

    ~/.forward
         XXXXXX@porcupine.org
         "|exit 73"

    Oct 24 09:27:10 tail postfix/local[2137]: 0A8E8547B2C:
    to=<XXXXXX@tail.porcupine.org>, relay=local, delay=0.02,
    delays=0.01/0/0/0.01, dsn=5.2.0, status=bounced (can't create
    user output file)
    Oct 24 09:27:10 tail postfix/local[2137]: 0A8E8547B2C:
    to=<XXXXXX@tail.porcupine.org>, relay=local, delay=0.02,
    delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (forwarded as
    0BD75547B09)

Status codes 75 and 73 are defined in /usr/include/sysexits.h.

        Wietse