hello,
I'm trying to configure procmail as a e-mail filter to add a
"Return-Receipt-To" header on e-amil to a specified domain.
I'm folowing the help about procmail.
I'm using sendmail 8.8.8 .
I put this in the Rule 0 in sendmail.cf:
# Filter ccmgtway.costa.it througth Procmail
R$*<@ccmgtway.costa.it>$* $#procmail $@/etc/procmailrcs/ccmail.rc
$:$1(_at_)ccm
gtway.costa.it.procmail $2
R$*<@$*.procmail>$* $1<@$2>$3 Already filtered, map back
The procmail Mailer is:
Mprocmail, P=/usr/local/bin/procmail, F=mSDFMhun, S=11, R=21,
A=procmail -m $h $f $u
The file /etc/procmailrcs/ccmail.rc is:
# Please check if all the paths in PATH are reachable, remove the ones that
# are not.
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=/var/mail # You'd better make sure it exists
VERBOSE=on
LOGFILE=/usr1/procmail.log
:0 fh
* ^From:.
|formail -a "Return-Receipt-To: sommariva(_at_)ste3(_dot_)ebi(_dot_)it"
:0 fh
* ^From:.
|formail -I 'From '
:0 # pass along all other mail
! -oi -f "$@"
In this configuration "$@" has value NULL an the sendmail claims that there is
noe recipient.
Please help me.
Best Regards,
---------------\|/
--------------(@ @)
----------oOO--(_)--OOo---------
``` '''
Sommariva Graziano
Elsag Bailey Informatica
Via Pieragostini 50
16151 Genova
ITALY
Phone: ++39.010.6554743
Fax: ++39.010.6554775
E-mail: sommariva(_at_)ebi(_dot_)it
WWW: http://www.ansaldo.it/~gsommar