View Full Version : Linux Mail Server to MS Exchange
faulkner132
March 15th, 2006, 12:29 PM
The skinny on what I want to do is the following:
Network Configuration:
Firewall (running Linux) which also acts as DHCP Server, DNS, and "Mail Filtering" SMTP.
Windows 2003 Domain Server running Exchange 2003.
Since Exchange has practically 0 virus and spam filtering features and subscription services are pretty outrageous, here is my idea.
I would like to have incoming mail hit the firewall machine (which acts essentially as a "filter") and have tools such as ClamAV and various anti-spam tools run against incoming mail on the Linux box and then forward "good" mail to my Windows box running Exchange. Outlook can then connect directly to Exchange and my users will not even notice the change. Outgoing mail will also be routed through the firewall, such that sending a message goes like the following: Outlook > Exchange > Firewall > Internet.
Is this do-able and if so what tools are best?
fetchmail?
Thanks.
Koybe
March 15th, 2006, 01:11 PM
Fetchmail? If you'r using an external pop3 mail or something like that. But it doesn't seem to be the case.
I'd like using Postfix/Courier... whichi is (in my mind) easier and more "interfacabl" then exim is the default smtp server.
brok3n
March 15th, 2006, 03:05 PM
The skinny on what I want to do is the following:
Network Configuration:
Firewall (running Linux) which also acts as DHCP Server, DNS, and "Mail Filtering" SMTP.
Windows 2003 Domain Server running Exchange 2003.
Since Exchange has practically 0 virus and spam filtering features and subscription services are pretty outrageous, here is my idea.
I would like to have incoming mail hit the firewall machine (which acts essentially as a "filter") and have tools such as ClamAV and various anti-spam tools run against incoming mail on the Linux box and then forward "good" mail to my Windows box running Exchange. Outlook can then connect directly to Exchange and my users will not even notice the change. Outgoing mail will also be routed through the firewall, such that sending a message goes like the following: Outlook > Exchange > Firewall > Internet.
Is this do-able and if so what tools are best?
fetchmail?
Thanks.
Yes it is do-able.
Currently we are running a MS2K3 Exchange mail solution, but all the mail is filtered through a RH EL box running trendmicro interscan suite.
Once apon a time I read about how to set up ClamAV and SpamAssasin to work in conjuction and essentially provide the same service without having to worry about trendmicro licences and RH EL support.
What I'm really trying to say here is, yes it is possible. It will require alot of know how and how to, however.
There is an extensive amount of custom configuring that you will have to do in order to get ClamAV to scan the messages, and then pass them onto SpamAssasin for content filtering, and then you also have to get the 'nix box to forward the mail to the M$ box.
faulkner132
March 15th, 2006, 03:52 PM
Thanks for the replies.
Koybe: I meant to say sendmail... not fetchmail. My mistake.
brok3n: This sounds exactly like what I want to do. I've actually looked into Devil-Linux to handle this as the diskless model it uses looks perfect for what I want to do. Also it comes with Postfix and SpamAssassin as preloaded and configured packages.
I know how to do all the network stuff which it will require and hopefully this will aleviate some of the burden my 2003 machine has.
If anyone else has some words of wisdom as well, I would love to hear them.
derelict
March 15th, 2006, 04:04 PM
I would like to have incoming mail hit the firewall machine (which acts essentially as a "filter") and have tools such as ClamAV and various anti-spam tools run against incoming mail on the Linux box and then forward "good" mail to my Windows box running Exchange. Outlook can then connect directly to Exchange and my users will not even notice the change.
A nice solution indeed :) My vote also goes to Postifx + SpamAssassin, you'll get a very efficient and configurable solution. Configure Postfix first, get it running and forwarding mail correctly, only then head to integrating SpamAssassin with it (won't hurt much, it's mainly done in master.cf).
I never tried ClamAV, post back how good it is later! :)
Koybe
March 15th, 2006, 04:10 PM
Koybe: I meant to say sendmail... not fetchmail. My mistake.
If you're fool enough ;) Just use Postfix, it's fully sendmail compatible a lot easier to use/administer.
Here are some informations/howto :
- http://www.marlow.dk/site.php/tech/postfix
- http://workaround.org/articles/ispmail-sarge/
- http://www.littleboboy.net/?2005/04/15/54-postfix-courier-imap (french)
- http://high5.net/postfixadmin/ (This is a nice tool for managing postfix from a webinterface)
Then you'll have to check what you really needs. As it's just relaying/filtering without deserving to any local mailbox, it should be slightly different then these howto's.
If i add to do it, i would use postfix to get the mail, amavis to filter them (with clamav and spamassassin) and then I don't know which is best :
- Taking them to a local account and pop them with a Exchange connector.
- Forward directly to the exchange server.
GL ;)
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.