I want to set up multiple mail servers within one dedicated virtual server in Mediatemple.

For example, my server's primary ip address is 203.156.0.xx. My server has another IP address 203.156.0.yy. The server's outgoing mail server is 203.156.0.xx.

Currently, all domains regardless of which IP address they use have 203.156.0.xx as their mail server. Is it possible that the domains under 203.156.0.xx use 203.156.0.xx for their mail server and domains under 203.156.0.yy use 203.156.0.yy for their mail server?

Any advice will be appreciated.

link|improve this question

25% accept rate
feedback

2 Answers

Yes, just point the MX records for the respective domains to their respective mail servers.

link|improve this answer
That would work only for incoming. For outgoing you need to fiddle the smarthost setting fo the various clients. – Alien Life Form Oct 12 '11 at 14:31
@ceejayoz: I tried sending an email using 203.156.0.yy as my smtp host. It sends successfully. However, when I check the email's header it says "from: 203.156.0.xx". – Dave Oct 12 '11 at 14:41
@Alien Life Form: Can I do this in Plesk? – Dave Oct 12 '11 at 14:44
I never used plesk so I cannot tell. It should be possible though, as the task is pretty commonplace. – Alien Life Form Oct 14 '11 at 8:21
feedback

While you can set up multiple IPs & domains and have mail sending through them, the (dv)'s configuration (and most servers) will handle all mail by default through one IP. Trying to set up multiple mail servers is very complicated & requires altering the core qmail configurations. I'm curious as to why you're wanting/needing to have this sort of set up? The best way to achieve something like this is to just set up a completely different server for the domain(s).

link|improve this answer
@sara: I just need to differentiate the outgoing IP addresses for my websites. What I need to do is accomplished by this patch: digitaldaemon.com/FreeBSD/qmail/index.html. However, I'm not sure how to recompile Qmail myself. Can you point me to a guide in recompiling qmail for mediatemple dv? Thanks. – Dave Oct 31 '11 at 8:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.