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:
> [email protected]
> # 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:
[email protected]
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=<[email protected]>
postfix/qmgr[28520]: 5A32115CEAA: from=<[email protected]>, size=983, nrcpt=1 (queue 
active)
postfix/smtpd[29666]: disconnect from localhost.localdomain[127.0.0.1]
postfix/local[29650]: 5A32115CEAA: to=<[email protected]>, 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  [email protected]
(cannot update mailbox /var/mail/abf for user abf. error writing message: File 
too large)
                                         [email protected]


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=<[email protected]>, size=983, nrcpt=1 
(queue active)
zeus postfix/local[29771]: 5A32115CEAA: to=<[email protected]>, 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=<[email protected]>
zeus postfix/qmgr[28520]: 111E615CEE4: from=<[email protected]>, size=1136, nrcpt=1 
(queue active)
zeus postfix/local[29771]: 5A32115CEAA: to=<[email protected]>, 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=<[email protected]>, 
orig_to=<[email protected]>, 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

Reply via email to