Re: Send to postmaster instead of freezing?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: John C. Ring, Jr.
Fecha:  
A: exim-users
Asunto: Re: Send to postmaster instead of freezing?
At 02:14 PM 3/21/97 +0000, you wrote:
>On Fri, 21 Mar 1997, John C. Ring, Jr. wrote:
>
>> Can I configure exim to bounce messages to postmaster instead of freezing
>> them? I can't seem to find in the docs how (if it can be done) to configure
>> it this way. At least for now, I'd prefer this Sendmail-ish behavior before
>> I plop Exim on our main email gateway in place of Sendmail. At least for
>> "double-bounce" message problems.
>
>No, but you can set freeze_tell_mailmaster which will cause it to inform
>the postmaster when a message is frozen. You can, of course, re-direct
>individual messages by hand.


Disappointing, but ah well. I just found auto_thaw; will this cause a message
of this type to eventually be discarded, or will it simply keep processing
forever? If it will eventually die in some manner, that's acceptable for now.
If not, I suppose I'll put the following sh script into my crontab. At least,
it seems to work :)

#/bin/sh
#
#Script to redirect all frozen messages in the Exim queue to the local
#postmaster.

TMPFILE=/tmp/mail-queue.out
LOCAL_POSTMASTER="postmaster@???"
rm -f $TMPFILE

mailq | grep "*** frozen ***" | awk '{ print $3 }' > $TMPFILE

while read MSGID; do
        exim -Mes $MSGID $LOCAL_POSTMASTER
        exim -M $MSGID
done < $TMPFILE


rm -f $TMPFILE

P.S.  I suppose maybe this would be easier/cleaner in Perl, but I've yet to
      learn that, but a book is on order :)


-------------------------
John C. Ring, Jr.
jcring@???
Network Specialist
Union Switch & Signal Inc.