Results 1 to 15 of 15

Thread: Two Mx Record

  1. #1
    Join Date
    Aug 2002
    Posts
    1,632

    Two Mx Record

    Hi

    i have a customer that want use tow Mx record:

    MX1 localhost

    MX2 newserverip


    how can i setup it in the dns zone?

    thanks

  2. #2
    Join Date
    Apr 2002
    Posts
    86
    Just create a second MX entry?

  3. #3
    Join Date
    Aug 2002
    Posts
    1,632
    i get:

    near 'xx.xx.xx.xx': not a valid number

  4. #4
    You will need to setup this with 2 dfferent priorities for both the records. Do you have a control panel on your server or can you do it from SSH ?

    If you have a control panel then let us know which one it is so that we can give you step by step information to add multiple MX records.

  5. #5
    Join Date
    Aug 2002
    Posts
    1,632
    i use WHM but if u prefer i can do it also from ssh

    thank u

  6. #6
    Edit DNS zone from SSH from /var/named/domainame.db and copy the line with existing MX entry and paste it just below the existing one. Edit that line and set priority 20 for it and the default that your customer wants to be should be set to be 10 or less than that. It will show you 0 right now and you can leave it as it is.

  7. #7
    Join Date
    Aug 2002
    Posts
    1,632
    ok i have set it now with


    domain.com. IN MX 0 domain.com.

    domain.com. IN MX 10 281.44.xx.xx.

    correct?

  8. #8
    Join Date
    Dec 2003
    Location
    Sunny So. Calif.
    Posts
    204
    What I normally do is first add an A record for the 2nd host

    mail.otherhost.com IN A 281.44.xx.xx

    then add the MX

    domain.com. IN MX 10 mail.otherhost.com

    The one with lower priority number will be tried first.

    The 'mail.otherhost.com' should reflect the fqdn of the host server which is associated with the IP

  9. #9
    Join Date
    May 2002
    Location
    Manchester, UK
    Posts
    289
    i'm pretty sure an MX record isnt meant to be an ip address, but should be a proper hostname - ie

    Code:
    MX	10	mail.openhosting.co.uk
    MX	20	mx2.openhosting.co.uk.
    
    mail	A	195.242.214.131
    mx2	A	63.223.71.233
    Technical Director, M247

    Premium web and Internet infrastructure services from M247.com
    M247 is actively buying Helm3 customer base - cash waiting.

  10. #10
    Join Date
    Jul 2005
    Posts
    62
    MX record has to be a proper host name.

    Technically, the MX weights do not need to be different. Two records with the same weight will be load-balanced. Ensure that your customer doesn't want to start load-balancing his inbound mail. Unless your a big shop running multiple in-bound servers, this usually isn't the case.

    As a side note, one of the newer anti spam-technologies is "Reverse MX." In an nutshell, all mail should originate from a system that's listed as a mail exchanger for a given domain, and that mail exchanger needs valid forward and reverse entries - they must match. Meaning no CNAME records. In practice, Sender-ID is more likely to go places, but RMX is worthy of mention.

  11. #11
    Join Date
    Aug 2002
    Posts
    1,632
    umm after that i have add a second mx i can't receive anymore the emails:

    [email protected]
    SMTP error from remote mail server after RCPT TO:<[email protected]>:
    host domain.com [ip]: 550-host.server.com[serverip] is currently not permitted to relay
    550-through this server. Perhaps you have not logged into the pop/imap server
    550-in the last 30 minutes or do not have SMTP Authentication turned on in your
    550 email client.

  12. #12
    Join Date
    May 2002
    Location
    Manchester, UK
    Posts
    289
    whats the full email address you're trying to send to?
    Technical Director, M247

    Premium web and Internet infrastructure services from M247.com
    M247 is actively buying Helm3 customer base - cash waiting.

  13. #13
    Join Date
    Aug 2002
    Posts
    1,632

  14. #14
    Join Date
    May 2002
    Location
    Manchester, UK
    Posts
    289
    this isnt going to work...

    there is only 1 MX record set up, and this points to an ip address of '127.0.0.1'

    appart from not even being a hostname, this basically means that any remote mail server will try and deliver your mail to itself...

    127.0.0.1 is also technically a private IP address...

    i'm a bit confused about what you're trying to do

    catch me on msn on chris 'at' oh2.co.uk and i'll set it up for you
    Technical Director, M247

    Premium web and Internet infrastructure services from M247.com
    M247 is actively buying Helm3 customer base - cash waiting.

  15. #15
    Join Date
    Aug 2002
    Posts
    1,632
    i have fix the problem the domain name was missing from /etc/localdomains thank u anyaway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •