Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


LinkBack Search this Thread
Old 07-02-2008, 03:27 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
SMTP Sendmail via Exchange

Hi all,

Im a Windows admin by trade, trying to teach myself the dark arts of linux.

I have a sendmail box in domain A, which is currently using the ISP's SMTP gateway. Meanwhile in domain B, I have a MS Exchange SMTP gateway.

I really want to point my MX rec for domain A to the Exchange gateway, but before I jump in headfirst and make a mess of it, some advice would be appreciated!

Heres what I think I need to do:
- check DNS zones, and make sure I can ping hostnames from and vice versa.
- change the MX rec to point to the Exchange gateway
- add on exchange gateway as a protected domain
- edit on, and change the Relay to exchange.
- restart the sendmail daemon and cross my fingers

Any ideas?

Old 07-02-2008, 08:47 AM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Being able to relay mail from a site is totally different than accepting mail going to a domain. If you point the MX record for domain A at your Exchange server, all the incoming mail for that domain is going to go to your Exchange server. Are you sure that's what you want to do?

Allowing domain A to relay outbound mail through Exchange is pretty simple. You just have to add it to the trusted relays, which is under the SMTP Virtual Server properties on Exchange. I forget the exact tabs to get there since I'm not in front of Exchange manager right this second... it should be pretty self-explanatory when you open up the Protocols folder, though.
Old 07-02-2008, 03:16 PM   #3
LQ Newbie
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Chort. I really want to utilise the exchange gateway thats in place at domain b, and drop the isp alltogether that domain a uses, since they are both on the same WAN.

So I want to accept mail for domain A at exchange, and then forward it onto A using an SMTP connector or the like.

So the exchange side of it Im pretty sure I can handle, but I have never attempted this on linux/sendmail and want to make sure all I have to do is check DNS is operating correctly, and change the "Smart" relay host in so exchange is the next hop.

Is there any where in the sendmail config that needs to be changed to allow incoming mail from exchange?

Last edited by FastForward; 07-02-2008 at 03:51 PM.
Old 07-02-2008, 03:59 PM   #4
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
For outbound mail you just have to set the smarthost to point to Exchange.

For inbound you shouldn't need to do anything different, as long as Exchange is delivering it to Sendmail with domain A as the address. If Sendmail was already configured to accept mail for that domain from anywhere, it won't care that it's coming from Exchange... Now if you had an access table setup in Sendmail to only accept mail from your ISP's server, then you'd need to change that to allow from Exchange instead, but it doesn't sound like that is the case.


exchange, sendmail, smtp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exchange to Linux SMTP outbound email. shogun90 Linux - Server 1 09-28-2007 03:35 AM
can I use sendmail for SMTP instead of my ISP's SMTP server? fcdev Linux - Networking 1 02-05-2007 01:27 AM
sendmail to relay smtp to exchange inaki Linux - Software 1 04-02-2006 08:36 AM
How do I use Linux SMTP to MS Exchange Daimler Linux - Enterprise 2 10-09-2005 11:59 AM
Can Mailman be setup with ms exchange smtp? dm0nkz Slackware 1 04-15-2004 10:40 AM

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration