pass email adress to procmail

Hi,
I use procmail as LDA and like to pass with procmails -a option the
emailadress to procmail. Actually the Mlocal looks like this:

Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/| [at] qlsDFMAw5:/|
[at] qPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
N=10,
T=DNS/RFC822/X-Unix,
A=procmail -Yo -a $u -d $u


Passing the user to procmail works fine and in /etc/procmailrc it will
be recieved as

USER=$1

But which variable must be used to pass the recipient email address?

Thanks,

Frank
muede_taube [ Fr, 16 November 2007 20:31 ] [ ID #1872986 ]

Re: pass email adress to procmail

I read that $u is rewritten to local part and before rewriting I
stored $u in a macro

D{emailaddress}$u

and

A=procmail -Yo -a ${emailaddress} -d $u

works. But this gives the full emailaddress in brackets. Surely I can
extract the domain part in procmailrc but if sendmail provides domain
part why not use it. But how?


Frank
frank [ Fr, 16 November 2007 22:14 ] [ ID #1872988 ]
Miscellaneous » comp.mail.sendmail » pass email adress to procmail

Vorheriges Thema: cannot telnet to port 25 form external intereface
Nächstes Thema: Connection refused by [127.0.0.1]