--- "Ruud H.G. van Tol" <rvtol(_at_)isolution(_dot_)nl> wrote:
saravanan ganapathy:
Is there any possibility that
procmail can say 'error in mail delivery' if any
error
occurs in the script which I included?
I assume now that you don't want the ftp to happen
if the mail didn't
get delivered properly.
SHELL = '/bin/sh'
LOGFILE = "$HOME/pm.log"
LOGABSTRACT = 'all'
VERBOSE = 'on'
TRAP = 'myscript $LASTFOLDER'
:0:
$DEFAULT
TRAP # unset
DEFAULT = '/dev/null'
Alternatively, make the first TRAP
TRAP = 'myscript $LASTFOLDER 0'
and the second
TRAP = "myscript \$LASTFOLDER $?"
--
Grtz, Ruud
Let me explain my requirement.I need to configure
multiple smtp & pop servers and all these will be load
balanced.
So If I get a mail for abc(_at_)xyz(_dot_)com , this mail should
be copied/delivered to multiple smtp server with the
same file name. Thatswhy I am using 'rsync' to copy
the inbox to multiple smtp server once the procmail
delivered the mail to mail box. It works.
Now I want procmail to say 'mail not delivered' if any
problem with rsync connections.
Hope you understand my requirement.
Please help me how to proceed.
Sarav
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.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