Solved

Routing UNIX Sendmail to Exchange 2003

Posted on 2004-09-01
4
810 Views
Last Modified: 2013-12-23
What is the best way to set up a internal Unix sendmail server to relay ALL email to an internal Exchange server? Our vendor app uses sendmail to message local (unix) users and we need to be able to add our email domain to the username of the unix server. I hope this all makes sense...

Set up:

Unix user = UnixName
Exchange Domain = companydomain.com.au
Local Domain = internal.loc
Unix Server FQN = UnixServer.internal.loc
Exchange Server = Exchange.internal.loc

We have an internal DNS server for internal.loc and all external DNS records are hosted off site with no zone in our local DNS.
The Exchange server is responsible for ALL internal and external messaging. The Sendmail server only generates the unix user messages and relays them to Exchange.

Example:

When a message is sent to UnixName from our vendor app, it is forwarded by Sendmail as UnixName@Exchange.internal.loc rather than UnixName@companydomain.com.au. Even if you manually enter UnixUser@companydomain.com.au it hits our Exchange server as UnixUser@Exchange.internal.loc. I do not want to have to create additional email profiles in Active Directory if I don't have to so I want all messaging from the Sendmail server to go out as @companydomain.com.au and NOT @Exchange.internal.loc...

I can work around this to some degree by adding a email address to a recipients AD profile in the format of UnixUser@Exchange.internal.loc but I do not want to have to maintain this manually. Unfortunately - you cannot create a recipient policy in Exchange for Exchange.internal.loc - it won't allow a smtp address policy that points to itself.

I've set up all the masquerading in the sendmail.cf file so that messages sent to external recipients from our vendor app will resolve via reverse DNS, I just have this one last piece to figure out. If I could get sendmail to send unqualified messages to UnixUser@companydomain.com.au, I'd be done with this!

Any help would be greatly appreciated!!!

Thanks,

Matthew Kaess
0
Comment
Question by:kaesm
4 Comments
 
LVL 5

Expert Comment

by:paranoidcookie
ID: 12025569
I suggest you add

MASQUERADE_AS('companydomain.com.au')

Then rebuild your sendmail config. Otherwise sendmail assumes mail is sent from the local machine.
0
 

Author Comment

by:kaesm
ID: 12129065
We have resolved this by setting up aliasing with a cron script which will rebuild the file weekly. This way it grabs any new users and creates the aliase address as needed.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12502772
PAQed, with points refunded (250)

modulo
Community Support Moderator
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VPS for routing recomendations 3 64
Fiber optic multimode cable issue 6 54
FreeRADIUS vs Windows NPS (server 2016) 2 121
Receiving wifi on an underground station 22 92
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question