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: Axel Freyn <axel-freyn_at_nospam>
Date: Sun Oct 24 2010 - 13:07:47 GMT
To: postfix-users@postfix.org

Hi Wietse,
On Sat, Oct 23, 2010 at 09:26:43AM -0400, Wietse Venema wrote:
>
> Well, the problem was that PROCMAIL delivered to mailbox BEFORE
> forwarding, so don't make that same mistake with ~/.forward.
>
> Instead, deliver to mailbox AFTER forwarding.
>
> ~/.forward:
> axel-freyn@gmx.de
> # Postfix local(8) mailbox delivery.
> abf
> # procmail mailbox delivery with soft_bounce.
> # "|/some/where/procmail ...procmail_arguments... || exit 75"
>
> (Status 75 is defined in /usr/include/sysexits.h as EX_TEMPFAIL).
>
Somehow this does not work for me :-(
What I tried exactly:
 - I removed the "mailbox_command" from main.cf. (and restarted postfix) Now,
   mailbox_command does no longer appear in "postconf -n"
 - I removed everything for my test-account from /etc/aliases, such that
   forwarding is only done by ~/.forward. (and did a "newaliases")
 - ~/.forward contains only:
axel-freyn@gmx.de
abf

Sending a mail to the test-account with a full mailbox results in

postfix/smtpd[29666]: 5A32115CEAA: client=localhost.localdomain[127.0.0.1]
postfix/cleanup[29651]: 5A32115CEAA: message-id=<20101024125249.GB29594@....de>
postfix/qmgr[28520]: 5A32115CEAA: from=<abf@....de>, size=983, nrcpt=1 (queue active)
postfix/smtpd[29666]: disconnect from localhost.localdomain[127.0.0.1]
postfix/local[29650]: 5A32115CEAA: to=<abf@....de>, relay=local, delay=0.01, delays=0/0/0/0, dsn=4.2.2, status=SOFTBOUNCE (cannot update mailbox /var/mail/abf for user abf. error writing message: File too large)

(again, postfix does not forward the mail)

The mail is kept in the postfix mail queue; "postqueue -p" reports:
5A32115CEAA 983 Sun Oct 24 14:52:53 abf@....de
(cannot update mailbox /var/mail/abf for user abf. error writing message: File too large)
                                         abf@....de

When the mailbox is freed and I flush the queue using "postqueue -i
5A32115CEAA", the mail is correctly sent and forwarded:

zeus postfix/qmgr[28520]: 5A32115CEAA: from=<abf@....de>, size=983, nrcpt=1 (queue active)
zeus postfix/local[29771]: 5A32115CEAA: to=<abf@....de>, relay=local, delay=450, delays=450/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
zeus postfix/cleanup[29772]: 111E615CEE4: message-id=<20101024125249.GB29594@....de>
zeus postfix/qmgr[28520]: 111E615CEE4: from=<abf@....de>, size=1136, nrcpt=1 (queue active)
zeus postfix/local[29771]: 5A32115CEAA: to=<abf@....de>, relay=local, delay=450, delays=450/0.01/0/0.01, dsn=2.0.0, status=sent (forwarded as 111E615CEE4)
zeus postfix/qmgr[28520]: 5A32115CEAA: removed
zeus postfix/pipe[29773]: 111E615CEE4: to=<axel-freyn@gmx.de>, orig_to=<abf@....de>, relay=uucp, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered via uucp service)
zeus postfix/qmgr[28520]: 111E615CEE4: removed

But according to the order in the logfile, postfix seems to FIRST do the
"deliver to mailbox" and THEN the forwarding? (All these messages have the same
timestamp in the logfile)

Do you have any further ideas what I misconfigured?

Axel