| Main Archive Page > Month Archives > postfix-users archives |
Wietse:
> PROCMAIL updates the mailbox (and fails because of the limit) before
> PROCMAIL forwards the message.
Axel Freyn:
> 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 "axel-freyn@gmx.de", and keeps a local copy in
> /var/mail/abf.
>
> 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 axel-freyn@gmx.de (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
> SOFTBOUNCE)
> - nevertheless, a copy of the mail is forwarded to axel-freyn@gmx.de.
>
> 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.
~/.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).
Wietse