procmail
[Top] [All Lists]

Re: Procmail and sendmail.cf

2000-11-03 17:09:40
The sendmail.cf is basically unmodified from the redhat default, and from
what ive been reading in sendmail.cf FAQ's , by default $h just con

http://nim.cit.cornell.edu/usr/share/man/info/en_US/a_doc_lib/files/aixfiles
/sendmail.cf.htm
$h              Host part of the recipient address.



Here are the relavent procmail entries in my sendmail.cf



Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31,
T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

--- And later

Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, R=20/40,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u



Now, example virtusertable entries



foo.com pete+%1
foo2.com pete+%2
foo3.com pete+%3



And the current .procmailrc im using


:0
| "/home/users/pete/mail.cgi" $1


Everything works great except for the $1 only being the host ( user ) part
of the recipient address.  $1 = $h from the Mlocal part of the sendmail.cf


Best regards,

Peter Azuolas


----- Original Message -----
From: "Philip Guenther" <guenther(_at_)gac(_dot_)edu>
To: "Peter Parker" <peterparker(_at_)instealthmode(_dot_)com>
Cc: <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Sent: Friday, November 03, 2000 2:35 PM
Subject: Re: Procmail and sendmail.cf


"Peter Parker" <peterparker(_at_)instealthmode(_dot_)com> writes:
Im writing a program that is keyed off viaprocmail to handle incoming
email
form MULTIPLE domains.

The problem im running into is really in sendmail.cf

I need to get the entire address of the recipient passed, not just the
username as passed by default by $h

Currently $h will pass "pete" if the recipient is pete(_at_)foo(_dot_)com 
but i need
the entire address passed since multiple domain names are handled by the
same user.

Anyone know off hand if its possible for that to be done?

Your sendmail.cf must already have been modified somehow so that it
accepts the mail for the 'other' domains.  You should query the author
of the documentation that you followed when making those changes if this
can be done.

I say this because what you describe above -- mail for multiple domains
being delivered via the 'local' mailer with $h set to the _username_ --
doesn't match anything I know of as 'standard virtual domain .cf hacks'.

I _do_ know that if you're using the mailertable to handle the virtual
domains, then an entry of
foo.com local:someone

will cause messages addressed to person(_at_)foo(_dot_)com to be delivered to
'someone' with $h (i.e., $1 in the rcfile) set to "person(_at_)foo(_dot_)com",
but you're definitely not using the mailertable now, and switching to
that will require that you a) strip the virtual domains from class w,
b) change your rcfiles to one user per domain, and c) probably other
things.

So, I reiterate: talk to the viaprocmail people.


Philip Guenther

_______________________________________________
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>