Operating System - Linux
1759194 Members
2634 Online
108881 Solutions
New Discussion юеВ

Re: sendmail masquerading problem

 
SOLVED
Go to solution
Louis Coilliot
Advisor

sendmail masquerading problem

I can't manage to masquerade local adresses for internet.

In my sendmail.mc, I put that:

FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')
FEATURE(`allmasquerade')
MASQUERADE_AS(`think.fr.')
MASQUERADE_DOMAIN(`think.fr.')
MASQUERADE_AS(think.fr)

and in genericstable I put that:

root@www.think.fr louis@think.fr

root louis@think.fr
louis louis@think.fr

louis@station2.think.fr louis@think.fr


Of course then I update sendmail:

makemap -r hash genericstable.db < genericstable
m4 sendmail.mc > sendmail.cf
/etc/init.d/sendmail restart

But when I send a mail with root, I still have

root@www.think.fr

instead of root@think.fr or louis@think.fr


other problem : How to tell sendmail that @think.fr are local adresses ? (it says to me that it loops) ?

Thanks by advance !
Louis

Waterloo morne plaine
5 REPLIES 5
Michael Steele_2
Honored Contributor
Solution

Re: sendmail masquerading problem

Test with another user, I believe root is deliberately immune to Masquerade.
Support Fatherhood - Stop Family Law
U.SivaKumar_2
Honored Contributor

Re: sendmail masquerading problem

Hi,

Edit sendmail.cf.
There will be a line like this.
CE root
The above line will prevent masquerading the root user.

Change it to
CE

Save and restart the sendmail.
Hope your problem is solved.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Louis Coilliot
Advisor

Re: sendmail masquerading problem

Yes you're both right, thanks.

Where do I put that you resolved my problem ?

Louis


Waterloo morne plaine
Steven E. Protter
Exalted Contributor

Re: sendmail masquerading problem

When you look at the post, you'll see blanks under the names of those who helped you.

Use the pull down to pick the number of points and press submit.

I'm attaching a tar of my sendmail setup so you can use it as a reference.

I've also included in the tar a buildmail script for linux that rebuilds the hash databases after you make changes.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Louis Coilliot
Advisor

Re: sendmail masquerading problem

Great,t thanks to the three of you.
Waterloo morne plaine