Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sedmail.mc masquerading options do not seem to be working

Status
Not open for further replies.

livestrong

Technical User
Nov 27, 2006
29
IE
HI,

On my Lan i have an exchange machine which my onlinestore is using to send mail at the moment, however this is the company mail server thus i wish to configure my sendmail server to masquerade as the exchage machine.

In my sendmail.mc file i have the following
Code:
LOCAL_DOMAIN(`localhost.localdomain')dnl
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
MASQUERADE_AS(`livestrong.com')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(exchange.livestrong.com)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
dnl MAILER(cyrusv2)dnl

ok....

When i send a test mail from the command line
Code:
mail -v teastaccount@hotmail.com
The address is masquerading as @livestrong.com
however when i look at the mail message in detail
i notice that "Recieved from :" is incorrect, the domain
does not seem to be masquerading.
im getting in the mail message

Code:
Received: from onlinestoretest (onlinestoretest.localhost.localdomain [127.0.0.1])
Thus the mails are getting flagged as spam as the should appear to be coming from the exchange machine

Is this something to do with my /etc/host file??

Any help would be great.

Regards
 
The only thing that seems to be masquerading is the from address.
 
Try it without

Code:
LOCAL_DOMAIN(`localhost.localdomain')dnl

My forwarder doesn't have one.

 
Do you mean without
Code:
MASQUERADE_DOMAIN(exchange.livestrong.com)dnl

Still the same.

Do you think it is something to do with my hostname setup?
or my /etc/sysconfig/network file??
 
Just as I stated.

Remove the first line of the code you provided and try again. It's a forwarder right? You don't want the localhost to try and deliver the mail on the forwarder.

Here's what I run. The access_db feature allows for finer grained controls when relaying.

Code:
FEATURE(relay_entire_domain)dnl
FEATURE(relay_based_on_MX)dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
MASQUERADE_AS(`my.domain')dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(`nullclient', `mailserver.my.domain')dnl

Have Fun.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top