LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 02: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, 03: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-04-2005, 11:40 PM   #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



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 03:00 PM
seeking advice on best mail server configuration clau_bolson Linux - Server 5 03-05-2007 11:59 AM
Slackware Mail Server advice needed please. Lintoon Slackware 12 09-09-2005 05:57 PM
Sendmail performance - high volume incoming mail. 360 Linux - Software 2 11-24-2002 04:45 PM
can anyone help need a advice on mail server DemisK Linux - General 1 04-04-2002 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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