Sendmail doesn't masquerade envelopes

Sendmail doesn't masquerade envelopes

Post by Oscar Manuel Gómez Senovill » Tue, 18 Jun 2002 10:20:55



I think I have done everything OK. I'm following "the bat book" because I
want to learn how to solve sendmail problems by myself in test mode.

My problem is that I can't get sendmail to masquerade neither envelopes nor
addresses. I think this is done by ruleset 94. I have set the
/etc/mail/genericstable and hashed with "makemap hash genericstable <
genericstable" from /etc/mail, and the generics.db is created, but
addresses aren't rewritten.

How can I test this, as well as the genericstable database itself? Taking a
look at sendmail.cf, I have the lines with the definition (the K line) and
in ruleset 94 I see the calls to the genericstable database, but for some
reason it doesn't work.

I use debian woody and sendmail V10/Berkeley (that's the value assigned by
macros in sendmail.cf).

I use "sendmail -bt", and then type the ruleset (94) and the mail address,
but returns unchanged, when it should be masqueraded. I have tried this
example in three computers and I can't get to see the address rewritten.

Thanks in advance.

 
 
 

Sendmail doesn't masquerade envelopes

Post by Andrzej Fili » Tue, 18 Jun 2002 20:56:00



Quote:> I think I have done everything OK. I'm following "the bat book" because I
> want to learn how to solve sendmail problems by myself in test mode.

> My problem is that I can't get sendmail to masquerade neither envelopes nor
> addresses. I think this is done by ruleset 94. I have set the
> /etc/mail/genericstable and hashed with "makemap hash genericstable <
> genericstable" from /etc/mail, and the generics.db is created, but
> addresses aren't rewritten.

> How can I test this, as well as the genericstable database itself? Taking a
> look at sendmail.cf, I have the lines with the definition (the K line) and
> in ruleset 94 I see the calls to the genericstable database, but for some
> reason it doesn't work.

> I use debian woody and sendmail V10/Berkeley (that's the value assigned by
> macros in sendmail.cf).

> I use "sendmail -bt", and then type the ruleset (94) and the mail address,
> but returns unchanged, when it should be masqueraded. I have tried this
> example in three computers and I can't get to see the address rewritten.

> Thanks in advance.

Direct sendmail.cf changes are not needed.
Modify *.mc file you use to generate sendmail.cf

http://www.sendmail.org/m4/masquerading.html

testing:

BTW genericstable does not touch envelope recipients
(it is virtusertable task).

--

366A 5DD7 7707 379C 9251  32AE C948 0BD2 7D99 688A  expires: 2003-01-25
I may disagree with the following *random epigram* :
Only those who leisurely approach that which the masses are busy about
can be busy about that which the masses take leisurely.
                -- Lao Tsu