Operating System - Linux
1838880 Members
3170 Online
110130 Solutions
New Discussion

sendmail masquerading question

 

sendmail masquerading question

Hi.

I'm trying to use linux to collect all email coming ang going then forward it on the an exchange server. I know I can have an exchange address of user@xyz.com but have it look like user@company.com when sending or receiving email.

Question: Is there a doc out there that explains this simply? I'm new to sendmail and I'm having trouble.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: sendmail masquerading question

This doc helps.

Also including example from my /etc/aliases file which can handle forwarding when rebuilt into the hash database.

The build script is attached.

If the post helps, please assign points.

from /etc/aliases

webmaster@napervilleapartments.com: napro
Info@allanlieberman.com: ALieber615@aol.com

See buildmail script for implementation issues.

Post back if you need more examples.

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

Re: sendmail masquerading question

Steven,

Thanks for responding. To which doc are you refering? I see the 1 attachement which I gather is the build script.
Vitaly Karasik_1
Honored Contributor

Re: sendmail masquerading question

IMHO,

MASQUERADE_AS(company.com)dnl

MASQUERADE_DOMAIN(internal_domain)dnl

is enough for you.

BTW, you can put few MASQUERADE_DOMAIN lines.

(you need add these lines to you sendmail.mc file and "compile" it with m4)


Regards,
Vitaly
Steven E. Protter
Exalted Contributor

Re: sendmail masquerading question

Duh,

Looks like I forgot to post in my links.

http://www.sendmail.org/virtual-hosting.html

Masquerading

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

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

http://www.sendmail.org/~ca/email/english.html

Some of these docs are sendmail 8.12 docs, they usually work for lower versions and will point out when they wont.

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