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:14:08 GMT
To: Axel Freyn <axel-freyn@gmx.de>

Axel Freyn:
> 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)

Try without soft bounce (and without EX_TEMPFAIL).

        Wietse