LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-29-2005, 06:35 PM   #1
Killer Bassist
LQ Newbie
 
Registered: Mar 2005
Location: Vancouver, BC
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
Question Need Advice; 3 NIC's; High Volume Mail Server; Sendmail; Iptables?


Good day
Hello again to the linux questions community.
I am seeking advice as to how I should set up a High Volume Mail Server with sendmail. The unit has 3 Intel 1000 Pro NIC's that I have already set up, and are working fine as far as connectivity is concerned. Two of them have static addresses, and one (that I use for administrative duties only) is DHCP. Perhaps in the future I'll set it up as a failsafe device.

Here is the desired outcome. I would like to set up the machine so one of the NIC's exclusively sends mail to the outside relay. I dont want it to accept any traffic aside from whatever is needed for reverse dns lookups (if any?). The second NIC I would like to accept incoming SMTP connections.

I have already put a line in my .mc reading
Code:
DAEMON_OPTIONS(`Port=smtp,Addr=IP_ADDR, Name=MTA')dnl
If I am not mistaken, this will tell sendmail to only listen on the one adapter for smtp connections. To limit the connectivity on the other device, should I use IPTables? Any advice? An alternate suggestion on how I should set up this system? Is it sendmail that stipulates the outgoing device, or is it another daemon of sorts?

Any advice that you are willing to give, I'll listen to.

Thanks, Dylan
 
Old 12-02-2005, 03:02 PM   #2
XOR007
Member
 
Registered: May 2005
Location: Africa
Distribution: Ubuntu, Redhat 6.2 to 9, Centos 4, Suse 8 Ent.,Suse 9 Ent.
Posts: 51

Rep: Reputation: 15
U R on track : DAEMON_OPTIONS(`Port=smtp,Addr=IP_TO_LISTEN_ON, Name=MTA')dnl should B enough. But if I were U I would drop port 25 traffic on the other eths using iptables. Good luck!
 
Old 12-02-2005, 04:33 PM   #3
Killer Bassist
LQ Newbie
 
Registered: Mar 2005
Location: Vancouver, BC
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks a bundle =D
 
Old 12-05-2005, 12:40 AM   #4
XOR007
Member
 
Registered: May 2005
Location: Africa
Distribution: Ubuntu, Redhat 6.2 to 9, Centos 4, Suse 8 Ent.,Suse 9 Ent.
Posts: 51

Rep: Reputation: 15
Quote:
Originally Posted by Killer Bassist
Good day
... Two of them have static addresses, and one (that I use for administrative duties only) is DHCP...

...
I have already put a line in my .mc reading
Code:
DAEMON_OPTIONS(`Port=smtp,Addr=IP_ADDR, Name=MTA')dnl
If I am not mistaken, this will tell sendmail to only listen on the one adapter for smtp connections...
Since you are talking about a high volume mail server, notice that if the two static addresses are public and reachable through a router, the DAEMON_OPTIONS line almost changes nothing. The DAEMON_OPTIONS line only tells sendmail to handle packets that have destination address IP_ADDR only.

Also remember to restrict relaying through the /etc/mail/access.

Quote:
To limit the connectivity on the other device, should I use IPTables? Any advice? An alternate suggestion on how I should set up this system? Is it sendmail that stipulates the outgoing device, or is it another daemon of sorts?

Any advice that you are willing to give, I'll listen to.

Thanks, Dylan
Do you have multiple routes to the internet with bandwith constraints?

Routing of any internet protocol traffic is done by the kernel, more precisely netfilter. Which you can administrate through iptables.

You can never say it to much: an open relay will not last a few hours on the internet before being suspended by the ISP for abuse.

Good luck
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using sendmail to relay mail to ISP mail server Swift&Smart Linux - Software 26 11-09-2008 04:00 PM
seeking advice on best mail server configuration clau_bolson Linux - Server 5 03-05-2007 12:59 PM
Slackware Mail Server advice needed please. Lintoon Slackware 12 09-09-2005 06:57 PM
Sendmail performance - high volume incoming mail. 360 Linux - Software 2 11-24-2002 05:45 PM
can anyone help need a advice on mail server DemisK Linux - General 1 04-04-2002 03:44 PM


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