×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

sedmail.mc masquerading options do not seem to be working

sedmail.mc masquerading options do not seem to be working

sedmail.mc masquerading options do not seem to be working

(OP)
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

RE: sedmail.mc masquerading options do not seem to be working

(OP)
The only thing that seems to be masquerading is the from address.

RE: sedmail.mc masquerading options do not seem to be working

Try it without

CODE

LOCAL_DOMAIN(`localhost.localdomain')dnl

My forwarder doesn't have one.

RE: sedmail.mc masquerading options do not seem to be working

(OP)
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??

RE: sedmail.mc masquerading options do not seem to be working

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close