Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm running an Exchange server, and I want to add some redundancy to it. So I have a colocated box in a datacenter running a debian VM. So far so good.
I want to:
Add redundancy to the network by setting up a MX record with a priority lower than the main on-site mail server so all mail is relayed through the colocated box first.
Allow the on-site mail server to relay outgoing mail through the debian box (the debian box has proper rDNS etc set up, and due to the circumstances I can't set rDNS on the connection for the on-site mail server, so relaying through a mailserver with the appropriate rDNS etc is what I want to set up). Edit: I've managed to get (2) working by adding my IP (with a /32 subnet so only MY ip is allowed) to "mynetworks" in the main.cf for postfix.
[ OPTIONAL STEP ] Spam + Virus filtering.
I've searched the web and can find some guides for some very old versions of Ubuntu etc, but nothing current! And I'm not clued up enough to build my own all-in-one setup.
How do I go about allowing incoming relaying (from the internet through the colocated mail server and then to the on-site mail server?
Thanks in advance!
Last edited by brokenpromises; 11-18-2011 at 04:40 PM.
brokenpromises,
You can get spamassassin and Clam AV in deb packages from Debian. Optional within spamassassin are DNSBLs, URIBLs, Razor2 servers, and DCC. So you want the Debian box to have an MX preference of 10, and you want to use the Exchange server as a backup MX with a preference of 20. You can set up Postfix as a relay, but it isn't a good idea to have an Exchange box talking SMTP directly with Internet clients, unless it is Exchange 2010 and you have a separate server with the "Edge Role" up front and relaying inward to the real Exchange server that's on your domain (however, I think that costs you an extra Exchange server license). So why not set up an additional Linux box at your primary site, similarly configured as the one at your colo site, and have it protect Exchange?
Here is a link to an article on setting up the config files in /etc/postfix and making Postfix a mail gateway that relays to your Exchange.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.