|Main Archive Page > Month Archives > postfix-users archives|
> PROCMAIL updates the mailbox (and fails because of the limit) before
> PROCMAIL forwards the message.
> Thanks for your fast reply!
> Probably my mail was not clear: I agree, there is now error due to
> Postfix. It probably behaves as it is configured and as it should (but:
> not as I would like it to behave in this situation ;-))
> Let's assume, I have a $HOME/.forward which forwards mails for "abf" to
> the external Mail-adress "firstname.lastname@example.org", and keeps a local copy in
> Then I would like to have the behaviour:
> a) If the mailbox_size_limit for /var/mail/abf is NOT reached:
> - a copy of the mail is stored locally in /var/mail/abf
> (that is done by Procmail, I think?)
> - a copy of the mail is forwarded to email@example.com (with a new ID
> (here: B4E2015C0FA).
> (that is done by postfix/local?)
> b) If the mailbox_size_limit for /var/mail/abf IS reached:
> - local delivery to /var/mail/abf fails, (maybe creating a
> - nevertheless, a copy of the mail is forwarded to firstname.lastname@example.org.
> However, I did not succeed to obtain the second case. As my Postfix is
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.
# Postfix local(8) mailbox delivery.
# 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).