Hi,
I would like to known if they are any solution to have a fallback solution
about rt-mailgate with procmail.
Actually I’ve something like in the .procmailrc
# Spam
:0: # spam
* ^X-Spam-Status: YES*
! humain.address
:0:
|/usr/bin/rt-mailgate --queue Support --action correspond --url https://ULR_OF_RT
the problem is sometime the RT website is down (power failure) and in that
case the mail is lost.
How can I tell rt-mailgate (or procmail) to send the mail to humain.address only if the rt-mailgate failed
Regards.
JAS
Albert SHIH
DIO b�timent 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
T�l�phone : 01 45 07 76 26/06 86 69 95 71
xmpp: jas@obspm.fr
Heure local/Local time:
mar 4 d�c 2012 10:08:17 CET
I think what you want to do is add a rule like this right below your
pipe to rt-mailgate rule. This tells procmail to trap the error from the
failed rt-mailgate delivery and retry later:
If RT delivery failed, return it to the mail queue, the MTA
will retry delivery later (75 is the value for EX_TEMPFAIL
in /usr/include/sysexits.h):
:0 e
{ EXITCODE=75 HOST }On 12/04/2012 04:12 AM, Albert Shih wrote:
Hi,
I would like to known if they are any solution to have a fallback solution
about rt-mailgate with procmail.
Actually I’ve something like in the .procmailrc
Spam
:0: # spam
- ^X-Spam-Status: YES*
! humain.address
:0:
|/usr/bin/rt-mailgate --queue Support --action correspond --url https://ULR_OF_RT
the problem is sometime the RT website is down (power failure) and in that
case the mail is lost.
How can I tell rt-mailgate (or procmail) to send the mail to humain.address only if the rt-mailgate failed
Regards.
JAS
:0:
|/usr/bin/rt-mailgate --queue Support --action correspond --url https://ULR_OF_RT
the problem is sometime the RT website is down (power failure) and in that
case the mail is lost.
How can I tell rt-mailgate (or procmail) to send the mail to humain.address only if the rt-mailgate failed
Your rt-mailgate procmail recipe should start with :0w not :0: The w
indicates procmail should wait for rt-mailgate to return and use its
exit code.