pass email adress to procmail

pass email adress to procmail

am 16.11.2007 20:31:35 von muede_taube

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:/|@qlsDFMAw5:/|
@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

Re: pass email adress to procmail

am 16.11.2007 22:14:33 von frank

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