LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 03-13-2008, 09:17 PM   #1
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
Virtual IPs and Postfix SMTP


Ok this post is a two parter. First of all I've never assigned multiple IP addresses to a single physical network device in linux before. I know it can be done and I'd imagine it's pretty straight forward, but if someone could give me a few quick notes/pointers it would be much appreciated.

Now the second part (and why this is in the Server section and not Networking :P), I'd like to setup a Postfix mail server that utilized multiple domain names and multiple IP Addresses on a single server with a single network card.

In the past I've configured Postfix to handle e-mail for multiple domains, so that part shouldn't be too tricky. But is there a way for Postfix to bind each domain name with its own virtual ip address?

Any help would be much appreciated. Cheers!
 
Old 03-13-2008, 10:05 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
First thought - have you thought about running multiple instances of postfix?

Second thought - why? If you have postfix listening on all addresses, and have MX records for each domain correct, and postfix set up as per normal multi-domain setup, why do you need to bind domains at the IP end? If it's a sending issue, I'm sure you could arrange for each domain to deliver via the relevant IP.

Last edited by billymayday; 03-13-2008 at 10:06 PM.
 
Old 03-14-2008, 08:29 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Yeah I'd agree with billmayday.

Have Postfix listen on all interfaces. Setup MX records to point to each IP for each domain. When mail is delivered, it should use that domains IP associated with it.
 
Old 03-14-2008, 02:56 PM   #4
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
Thanks for the fast replies. LQ is the best!

Here's a little more info about our situation. My company has paying customers that sign up for monthly newsletters. We can send as many as 600,000 emails per day, and we're currently doing it through 6 physical Windows servers running MailEnable mail software.

ISPs are starting to crack down and are warning us that we'll soon end up on their black lists for spammers. Again this is legitimate mail, but we can't speak with anyone from companies like comcast or yahoo to be placed on any kind of a white list.

So the folks in charge were wondering if it would help to spread our mail load across more IP addresses and domain names. At the same time, they don't want to purchase more physical servers.

So I could either Setup 2 - 3 VM's per physical box, or I could do a single Linux installation and try to configure the MTA software to send email out through multiple domain names and IP addresses.

I'd like to assign up to 5 virtual ip addresses to the single network card that installed in the servers, and then configure postfix to send email for 5 separate domain names. We're hoping that spreading our mail load across multiple domains/ips that the ISPs will loosen up a little bit and stop threatening to black list us as a spammer.

Did that make any sense? :P
 
Old 03-14-2008, 04:15 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So it's sending? I don't know if you can load balance acoss smtp instances, but as mentioned, you could certainly run multiple postfix's. Virtual machines sounds like overkill

Can't say if that will necessarily help your problem.
 
Old 03-14-2008, 06:39 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm getting out of my depth here, btu maybe this helps

http://www.linux-foundation.org/en/Net:Iproute2
 
Old 03-15-2008, 09:20 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Your company may want to look into a possible commercial solution as well to help deliver email. Maybe look into PowerMTA, from http://port25.com
 
Old 10-30-2008, 03:22 AM   #8
femitha
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Per domain sender IP

"Have Postfix listen on all interfaces. Setup MX records to point to each IP for each domain. When mail is delivered, it should use that domains IP associated with it."

Is this step working?

Thanks.
 
  


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
name based virtual hosting with two ips nephish Linux - Server 3 07-05-2007 08:29 AM
Adding virtual ips to fedora 3 linchat Linux - Networking 2 09-17-2005 08:31 PM
IP aliases (Virtual IPs) and arp not playing well together rmanoc Linux - Networking 5 08-20-2004 10:32 AM
Configuring smtp to listen in all ips? petecg_76 Linux - Networking 1 04-06-2004 01:28 PM
Simulating multiple virtual IPs. vsg123 Linux - Networking 2 07-17-2003 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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