On 28/12/01 at 2:19pm, Martin McCarthy wrote:
|> I use sendmail nad procmail as local delivery agent. What do you mean
|> with the command line the runs procmail?
|
|You probably have a section in /etc/sendmail.cf that is something like
|[*rummages around to find a machine with sendmail on it....*] something
|like:
|
|Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn09,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
| T=DNS/RFC822/X-Unix,
| A=procmail -a $h -d $u
|
|That line 'A=procmail -a $h -d $u' gives the command line to use to
|invoke procmail. The '-a $h' effectively makes procmail consider '$1'
|to contain the mail extension that you're looking for. If your command
|line isn't like that then it may not be setting $1 for you.
Hmmm, my MLocal is a bit different:
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
|> The procmailrc I posted is .procmailrc, which procmail will run
|> while performing local delivery, I am right?
|
|Yep.
|
|> You mean, there is no way to change the value of HOST on procmail?
|
|HOST is a special variable with a defined effect (the current rcfile
|exits) if you set it to a value other than the current host name. That
|absolutely should not stop you using some other variable (such as
|MYHOST) for such a purpose.
The part that is what is killing me. I use another variable and I get the value
I want. It is just this part (marked with !!! for easy spoting on the
.procmailrc) that stops working when I do so):
LOGFILE=/home/d/david/procmail.log
VERBOSE=yes
LOGABSTRACT=all
!!! EXTENSION="$1"
:0
!!! * EXTENSION ?? .
{
!!! DELIMITER="+"
}
MYHOST="netbros.com"
RECIPIENT="$LOGNAME$DELIMITER$EXTENSION(_at_)$MYHOST"
SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`
:0 w
| /home/d/david/tmda/bin/tmda-filter
EXITCODE=$?
DEFAULT=/dev/null
You are helping a lot. Let's not ogive up now! :-)
Cheers!
--
David Collantes
http://www.bus.ucf.edu/david/
"The only source of knowledge is experience" - Albert Einstein
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail