LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-23-2004, 04:05 PM   #1
jaybuffet
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Question Linux newbie.. trying to set up email relay to Exchange


I'm completely new to linux, but I managed to setup Debian (not as hard as it once was). I want to put that box on the DMZ and have all mail come into the firewall (Red Hat,iptables) forward to the Debian box.. spam/virus scan.. then forward back to the firewall which will route it to the internal Exchange box.

Vice versa too, I would like the exchange SMTP t forward messages to the Firewall, which will forward to Debian, virus/spam scan, change the header to not say Exchange, and add a disclaimer, then forward to its destination.

Like I said, I'm new to linux, but I've seen some of the crazy apps out there so I know this has to be possible.

Please let me know

And thanks in advance for any help

Jason
 
Old 09-23-2004, 05:54 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I have a similar setup at this end. I frontend an Exchange server with a postfix MTA sitting in a DMZ. All inbound e-mail is received by postfix, scanned by Spamassassin, then relayed to the Exchange server. Virus scanning is done on the Exchange server. Outbound e-mail is virus scanned by Exchange server, then relayed to the postfix server for final delivery. Note: Outbound e-mail is not scanned by Spamassassin.

With the above in mind, I can give you a couple of pointers to configuration issues that will need to be addressed.

1) To relay inbound e-mail to your Exhange server...

If your using sendmail, look at the "mailertable" feature.
If your using postfix, look at the "transport" feature.

2) Configure MTA in DMZ to verify mailbox/user exists on Exchange prior to relaying to Exchange server.

The way I implemented the above was to configure postfix to issue an LDAP query against the Exchange server to verify the user/mailbox is valid prior to relaying. Without doing so, bogus recipients for your domain would be relayed to Exchange server and then bounced back to what is usually a forged sender address. If interested, I can post examples of how I implemented LDAP using postfix, but I know sendmail can be configured to do the same thing.

3) E-mail filtering

E-mail filtering can be implemented in many ways with either MTA. Since my postfix MTA only calls Spamassassin, I chose to implement SA filtering using postfix's built-in hooks. But there are some good third party apps available for free that will handle both virus and spam filtering by your MTA. I can think of a couple that I have used in the past. amavis-new and mime-defang

As for changing the e-mail header or adding a disclaimer... can't help you there, but if I remember correctly, mime-defang may have the capability to remove headers.
Good Luck!
 
Old 09-24-2004, 08:29 AM   #3
jaybuffet
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply. Sounds almost identical to the setup I'm looking for. So you used postfix. What ports do u have open going from the dmz to the intranet for LDAP to work?
 
Old 09-24-2004, 08:31 AM   #4
jaybuffet
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Also, once I start diving into it next week, I'll definately need details... since this is my first time really using linux.

Again, thanks for the reply
 
Old 10-29-2004, 10:51 AM   #5
shanzi
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
"""2) Configure MTA in DMZ to verify mailbox/user exists on Exchange prior to relaying to Exchange server.

The way I implemented the above was to configure postfix to issue an LDAP query against the Exchange server to verify the user/mailbox is valid prior to relaying. Without doing so, bogus recipients for your domain would be relayed to Exchange server and then bounced back to what is usually a forged sender address. If interested, I can post examples of how I implemented LDAP using postfix, but I know sendmail can be configured to do the same thing."""

I'm interested. Do tell.

Thanks.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux as email client on MS exchange server 2000 imsajjadali Red Hat 15 12-19-2005 09:49 AM
Linux email and ms exchange server M3Tuck Linux - General 3 04-29-2005 09:28 AM
how to seting the email exchange address in linux henryluo Linux - Networking 2 04-16-2005 10:27 AM
Email from a Linux to MS Exchange jkliebhan Linux - General 3 11-30-2004 01:27 PM
Sending mail from linux using MS Exchange relay host a2k2 Linux - General 0 08-16-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:44 PM.

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