| Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-18-2011, 03:59 PM
|
#1
|
|
Member
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 93
Rep:
|
SMTP Server Help
Hi Guys,
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.
|
|
|
|
12-15-2011, 05:21 AM
|
#2
|
|
Member
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224
Rep:
|
Which mailserver are you using ?
|
|
|
|
12-15-2011, 05:21 AM
|
#3
|
|
Member
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 93
Original Poster
Rep:
|
I am using postfix.
|
|
|
|
12-15-2011, 07:06 AM
|
#4
|
|
Member
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224
Rep:
|
Setup of a secondary mx host:
Code:
# DNS entry
IN MX 10 exchange-server.dominio.com.
IN MX 20 postfix-server.dominio.com.
Add the relay to /etc/postfix/main.cf:
Code:
relay_domains = dominio.com
smtpd_recipient_restrictions = permit_mynetworks
check_relay_domains
|
|
|
|
12-15-2011, 10:10 AM
|
#5
|
|
Member
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 118
Rep:
|
off-site backup MX, spam+AV, relay to Exchange
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.
http://www.packetnexus.com/kb/greyar...757:32027.html
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|