LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-11-2006, 09:57 AM   #1
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 89

Rep: Reputation: 16
Linux Mailing with Exchange


I currently have a registered domain, sample.com which has its MX records pointing to my Linux box. My Linux box is part of my sample.local domain which runs Exchange 2003.

When all email arrives on my Linux box I use mailertable to forward all email for sample.com over to my Exchange server, exchange.sample.local

I really want to utilise my Linux box more. I use IMF and RBL on Exchange but nothing beats (In my eyes) Spam Assasin and feel I owuld be in more control. Sure OWA is pretty and you can't deny its probably got the best functions of all web clients.

My exchange server is its own SMTP server.

Should I get all mail delivered to my Linux box where procmail can do it's thing with Spamassasin and what ever.
Then use the virtual user table to forward on email to username.sample.local.

On the Exchange side I will use my Linux Box as a smart host and get Linux to Masquerade sample.local to be sample.com

What is the normal way of acheiving this
 
Old 04-11-2006, 10:17 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
On the linux side of thing, I have used postfix for the MTA, then set a transport in postfix to push the mail directed at "sample.com" to an exchange server. The exchange server still thinks it is the MX for that domain, the emails sent to it are scanned by the linux box, and everything is happy. You could even point the exchange server to the linux box as a smart host so that all email coming out of the exchange server also gets scanned by your linux box.
 
Old 04-11-2006, 11:17 AM   #3
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 89

Original Poster
Rep: Reputation: 16
Any chance you could give me some pointers in doing this. I am running FC5 using sendmail as my MTA, I know I can change the /etc/alternatives to start using Postfix. Will I need to completly change my mail configuration files eg. Not use Sendmail.mc anymore and use different ones.
 
Old 04-11-2006, 01:06 PM   #4
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Yep. If you go to postfix, you would have to completely reconfigure your mail subsystem using the configuration files in /etc/postfix.
 
Old 04-17-2006, 04:59 PM   #5
CDollmont
Member
 
Registered: Feb 2006
Distribution: Ubuntu/OpenSuSE
Posts: 33

Rep: Reputation: 15
The Postfix Basic Configuration Guide shows how to do this:

http://www.postfix.org/BASIC_CONFIGURATION_README.html

I've done this with sendmail, but Postfix is much easier to configure.
 
Old 04-17-2006, 11:14 PM   #6
300c_plot
LQ Newbie
 
Registered: Apr 2006
Location: Idaho, USA
Distribution: FC4, DSL2.2, RHES3,4
Posts: 1

Rep: Reputation: 0
Lapthorn,
I would also, if your new to this, recommend that you download webmin. It gives you a web page to configure everything. Beats digging through text files that you might mess up the syntax.

I typically use a linux box to filter a clients email in & out going. For heavy sites (my 2 cents) use postfix, spamassassin, procmail, Rayzor or Phazor and if clients are going to login dovecot or cypress for imap and pop3 connections. We set up a honey pot server(email black hole) and it captures almost 5000 spam an hour, we then use the Rayzor database it creates, for all the real servers. Sendmail (again my 2 cents), spamassassin, procmail, Rayzor or Phazor and if clients are going to login dovecot this combo works well for smaller sites, however it allows better forwarding. It will look at a host file instead of a full fledge dns server. Postfix wants the dns.

WARNING: If you do not set it up correctly the Linux box will forward your emails without scanning them, It thinks the next server should scan them.

I have not had a Microsoft exchange server directly on the internet for more then three years. I see 18 servers on a regular basis...Last one a brand new 2003, was on the net for 3-4 hours before it was compromised. Was also running Symantec Corp. Edition, don't think much of it eather.

Favorite RBL's:
spamhaus.org
spamcop.org

Remember: The more you learn, the more you can help others.
 
Old 05-02-2006, 05:27 AM   #7
deeztech
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Do you need a guide on doing this?

Quote:
Originally Posted by lapthorn
Any chance you could give me some pointers in doing this. I am running FC5 using sendmail as my MTA, I know I can change the /etc/alternatives to start using Postfix. Will I need to completly change my mail configuration files eg. Not use Sendmail.mc anymore and use different ones.
I have done it successfully many times with Exchange 2003. I have used the Linux box as a relay with spam and AV scanning and then sent the mail over to exchange for delivery. The Exchange server used the linux box as the SMTP server also. If you need to know how to do this, let me know and I'll point you to a guide I've written.

Last edited by deeztech; 05-02-2006 at 05:28 AM.
 
Old 05-02-2006, 03:15 PM   #8
andy77
LQ Newbie
 
Registered: Jul 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 23

Rep: Reputation: 15
deeztech: I would appreciate it if you could point me to that guide. Thanks.
 
Old 05-03-2006, 11:07 AM   #9
deeztech
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Here's the guide.

E-mail me at dinoatdeeztechdotcom and I'll send you the link. I'm unable to post links to these forums since I'm so new.
 
Old 05-03-2006, 11:09 AM   #10
deeztech
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Actually, here it is:

I guess you only need 3 posts to be able to post URLs:

Here's the link to the guide:

http://forums.theonpc.com/viewtopic.php?t=11

I'm still writing the very last part. This should get you on your way though. By the time you get to the last part, I can probably walk you through it or I may even be done with it.
 
Old 05-03-2006, 11:43 AM   #11
andy77
LQ Newbie
 
Registered: Jul 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 23

Rep: Reputation: 15
Thanks! I'll give it a go.
 
  


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 Mailing DARSHAND Linux - Software 1 12-15-2005 07:34 AM
Linux USPS.com Mailing Label Printing Workaround AwesomeMachine General 2 08-20-2005 09:25 AM
most contibuted forums and mailing lists in linux developement umeshbabu Linux - General 1 06-18-2005 10:57 PM
Linux mailing lists moger Linux - General 5 01-17-2004 01:17 PM
redhat linux mailing list keevitaja Linux - Security 1 03-20-2003 06:16 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:12 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