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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-13-2008, 09:17 PM
|
#1
|
Member
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465
Rep:
|
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!
|
|
|
03-13-2008, 10:05 PM
|
#2
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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.
|
|
|
03-14-2008, 08:29 AM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
03-14-2008, 02:56 PM
|
#4
|
Member
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465
Original Poster
Rep:
|
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
|
|
|
03-14-2008, 04:15 PM
|
#5
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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.
|
|
|
03-14-2008, 06:39 PM
|
#6
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
I'm getting out of my depth here, btu maybe this helps
http://www.linux-foundation.org/en/Net:Iproute2
|
|
|
03-15-2008, 09:20 AM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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
|
|
|
10-30-2008, 03:22 AM
|
#8
|
LQ Newbie
Registered: Oct 2008
Posts: 1
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:48 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
|
|