3 Replies Latest reply: Feb 9, 2014 4:20 PM by Camelot
starion Level 1 (85 points)

We have multiple static IP's.  I would like to set up mail so that a particular virtual domain has it's own IP address.


How do I go about doing that?

  • Camelot Level 8 (46,580 points)

    Get a second (additional) server and set it up as the mail host for the domain in question.


    The problem you're going to run into using a single server is that all outgoing mail is going to go via the same route, and likely mapped to the same public IP address by your NAT device (firewall, router, etc.) therefore there's no trivial way to differentiate outgoing mail from domain1 vs domain2, as far as the public IP address is concerned. The only way to do that is with a second machine, with a separate NAT rule at your network edge.

  • MacSmoke Level 1 (0 points)

    Bind9 - available in macports


    Used to define where email should be sent to and at what priority. Must point to an A record, not a CNAME. Multiple MX records can exist if multiple mail servers are responsible for that domain.


            IN    MX  10    mail.example.com.          [...]  mail    IN    A
  • Camelot Level 8 (46,580 points)

    I'm confused, Smoke - how does that help the original poster's question?


    MX records in DNS handle incoming mail routing - i.e. where remote mail servers will attempt to deliver mail for any given domain, but the OP wants separate addresses for each domain. Multiple MX records won't help with outgoing mail, and all outgoing traffic from the server will have the same public IP address.