procmail
[Top] [All Lists]

Re: What is wrong here?

2001-12-28 07:23:04
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.

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.

I'm not sure if I'm helping you get any closer to the problem, though
:-/

Martin
-- 
Martin McCarthy                 /</                  PGP key available
    `Procmail Companion'        \>\  http://www.ancient-scotland.co.uk
     Addison Wesley             /</    http://www.ehabitat.demon.co.uk
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>