LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-18-2011, 03:59 PM   #1
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 97

Rep: Reputation: 21
Question 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:
  1. 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.
  2. 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.
  3. [ 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.
 
Old 12-15-2011, 05:21 AM   #2
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
Which mailserver are you using ?
 
Old 12-15-2011, 05:21 AM   #3
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 97

Original Poster
Rep: Reputation: 21
I am using postfix.
 
Old 12-15-2011, 07:06 AM   #4
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
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
 
Old 12-15-2011, 10:10 AM   #5
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 118

Rep: Reputation: 22
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
 
  


Reply

Tags
mailserver, postfix, relay, smtp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use sendmail as smtp server instead of my isp smtp server h.haider Red Hat 8 04-07-2011 03:34 AM
Server configuration for small office server, which smtp, pop imap server and backup whitelinux Linux - Server 4 04-06-2010 11:26 AM
How i use my local smtp server and smtp server of my domain registrar simultaniosly Sanjeesh Linux - Networking 5 11-29-2008 05:07 AM
can I use sendmail for SMTP instead of my ISP's SMTP server? fcdev Linux - Networking 1 02-05-2007 01:27 AM


All times are GMT -5. The time now is 02:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration