Am 2007-10-18 17:12:25, schrieb Xesc Arbona:
Hi,
I'm using procmail with Postfix to deliver mail to a third party
mailserver. I've set the following recipe to avoid duplicate mail
delivery when sending to distribution lists:
:0 Wh: $PMCACHE/$RECIPIENT.msgid.lock
* ! ^X-Deferred.*
| formail -D 4096 $PMCACHE/$RECIPIENT.idcache
That works fine most of the time, but not when the mailserver is down.
Messages can't be delivered, so procmail exits with code 75 and
messages are deferred. However, next time procmail tries to deliver,
it finds the Message-ID in the cache and mark the message as delivered.
Thus, I would like to append some kind of "X-Deferred" header to avoid
the duplicate check recipe. How can I make procmail requeue the
message to Postfix with an additional header? Is it possible?
:0
* ! ^X-Deferred.*
{
:0fw
| formail -I "X-Deferred: yes"
:0 Wh: $PMCACHE/$RECIPIENT.msgid.lock
| formail -D 4096 $PMCACHE/$RECIPIENT.idcache
}
Thanks, Greetings and nice Day
Michelle Konzack
Tamay Dogan Network
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail