Hi all,
I'm working with a sendmail-8.8.7 on an Linux box RH 5.2.
using procmail v3.10 as LDA.
Each incoming message is
- delivered in the standard user maibox mailbox
- handled by a 'filter'
via .procmailrc specified in the user home directory.
I would like the filter program exit code to be passed back to
sendmail, so if for instance the filter return temporary failure
(EX_TEMPFAIL) sendmail can queue for later processing
My tests with the the following recipes
:0 c
* ^From.*
{
:0 wr
| $TEST
}
shows that procmail check the exit code as you see on the log
attachment but it seem not to pass back to sendmail as no message
is queued by sendmail.
I' ve even tried to make the 'filter' program to set
the environment variable EXITCODE to '75' ( i.e. the EX_TEMPFAIL )
on exit but this is not solve the problem.
Surely I' m missing something; any help, suggestions, or pointers to infos,
are greatly appreciated
Thanks a lot in advance
federico
____________________________________________________________________________
Federico Tesei
Finsiel S.p.A.
Divisione Tlc
Via Matteucci, 34/b
56124 Pisa - Italy
phone: +39-(0)50-968-1 (operator) 968-616 (direct)
email: tesei(_at_)tecsiel(_dot_)it
____________________________________________________________________________
SENDMAIL CF ( local mailer )
Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30,
R=20/40,
T=DNS/RFC822/X-Unix,
A=procmail -Y -a $h -d $u
PROCAMAIL LOG
procmail: Assigning "COMSAT=no"
procmail: Assigning "BINROOT=/home/telcal/gymnasium/"
procmail: Assigning "TEST=/home/telcal/gymnasium/PMexit"
procmail: Match on "^From.*"
procmail: Forking "procmail"
procmail: Locking "/var/spool/mail/telcal.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/telcal"
procmail: Opening "/var/spool/mail/telcal"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/telcal.lock"
From mcert_u1 Mon Feb 28 11:29:56 2000
Folder: /var/spool/mail/telcal
2911
procmail: [13116] Mon Feb 28 11:29:56 2000
procmail: Executing "/home/telcal/gymnasium/PMexit"
procmail: [13116] Mon Feb 28 11:29:56 2000
procmail: Program failure (75) of "/home/telcal/gymnasium/PMexit"
procmail: Assigning "LASTFOLDER=/home/telcal/gymnasium/PMexit"
procmail: Locking "/var/spool/mail/telcal.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/telcal"
procmail: Opening "/var/spool/mail/telcal"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/telcal.lock"
From mcert_u1 Mon Feb 28 11:29:56 2000
Folder: /var/spool/mail/telcal
2912