Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

3 Answers 3

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

share|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

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).

share|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

Multi-homed hosts are in the majority; it is straightforward to implement qmail or any other MTA to implement a system where a IPs and certificates are specific to a vdomain.

Qmail is not an elegant system nonetheless it can be retrofitted - there are some patches floating around.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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