The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is the proper way to set up external mail server in cpanel?

Discussion in 'E-mail Discussions' started by eglwolf, Feb 28, 2008.

  1. eglwolf

    eglwolf Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    I have a new client that hosts his own exchange server. I have the server IP, and have set up a subdomain of mail.domain.com to point to that IP.I have then set up the mx entry to use mail.domain.com


    However it is not routing there. I removed the domain from the localdomain list and moved it to the remotedomains list.

    What I am doing wrong - I really your feedback and help on this.
     
  2. BlueZebra

    BlueZebra Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    what does
    dig MX domain.com give?
     
  3. eglwolf

    eglwolf Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    ; <<>> DiG 9.2.4 <<>> mx domain.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17089
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

    ;; QUESTION SECTION:
    ;domain.com. IN MX

    ;; ANSWER SECTION:
    domain.com. 11374 IN MX 0 domain.com.

    ;; AUTHORITY SECTION:
    domain.com. 83374 IN NS ns1.equivity.com.
    domain.com. 83374 IN NS ns2.equivity.com.

    ;; ADDITIONAL SECTION:
    domain.com. 11374 IN A 76.74.146.42
    ns1.equivity.com. 94661 IN A 76.74.146.42
    ns2.equivity.com. 106784 IN A 76.74.146.43

    ;; Query time: 1 msec
    ;; SERVER: 76.74.146.39#53(76.74.146.39)
    ;; WHEN: Fri Feb 29 11:00:03 2008
    ;; MSG SIZE rcvd: 139
     
  4. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    shouldn't that be
    domain.com. 11374 IN MX 0 mail.domain.com.
     
  5. eglwolf

    eglwolf Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    I changed the MX to point to mail.domain.com, and then create a CNAME for both the mail and www.mail and still nothing.

    The mail log reads:
    2008-02-29 11:20:44 H=gv-out-0910.google.com [216.239.58.185] F=<> temporarily rejected RCPT <hairedbw8@domain.com>: lowest numbered MX record points to local host
     
  6. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I think it's an A record that you need. I have a number of these setup and they are all...

    domain.com. 14400 IN MX 0 mail.domain.com.
    mail 14400 IN A 11.22.333.444

    and then move the domain from
    /etc/localdomains

    to
    /etc/remotedomains
     
  7. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
  8. pjmignone

    pjmignone Member

    Joined:
    Nov 19, 2007
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Does cpanel then process mail?

    In this set up forwarding mail to exchange do you still set up mailbox so nonexistant addresses are rejected and is mail still filtered for spam & anti-virus
    Thanks!
    PEte
     
  9. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    In the setup mentioned above all mail gets automaticaly redirected to your external exchange server, without affecting your cPanel exim mail server
     
  10. pjmignone

    pjmignone Member

    Joined:
    Nov 19, 2007
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Thank You!
    Pete
     
  11. pjmignone

    pjmignone Member

    Joined:
    Nov 19, 2007
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Apparently uncheck this box
    Always accept mail locally even if the primary mx does not point to this server. (Domain owned by phillibe)
    in dns editing moves the domain from localdomain to remote. Thanks you for your assistance it worked.
     
  12. smksa

    smksa Member

    Joined:
    Aug 1, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1

    Hi,

    May i know if by setting up MX record to use the external mailserver, does it forward all the email sent using sendmail Eg: php mail() script to use the external mail server ?

    Or it only works fior the user who use SMTP or IMAP to sent out email only ?
    :confused:
     
Loading...

Share This Page