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.

Mail Routing Settings

Discussion in 'E-mail Discussions' started by LWF, Sep 8, 2011.

  1. LWF

    LWF Member

    Joined:
    Sep 8, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi All,

    Hope your all having a good evening.
    hopefully you can clear up a point for me on Mail Routing Settings in WHM.
    I have had a look online but am still unclear, can someone explain the various choices?

    I have a reseller account and some of my clients have their own mail servers and just point the A-record of their DNS to my IP address some have mail with me.

    The clients just on the A-record, will the PHP mail() function still work or will it get blocked as a possible relay as the mail and mail accounts are not in my control panel?

    Will my own website be able to email clients whose domain is with me but not their mail.
    e.g. will my php emails be delivered locally rather than going externally.
    Will my clients be able to email each other if one account is local and one is external?

    Not sure I am making myself very clear, sorry about that.
    But want to make sure i set it up correctly.

    Many thanks for any help,
    Much appreciated,

    Lance
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Lance,

    These accounts should still be able to use the PHP mail() function to send emails, but they may well be blocked as spam.

    The accounts need to be set as remote mail exchanger. If they are, the domain will be added to /etc/remotedomains and not listed in /etc/localdomains which means if you send email locally, they will still properly send to their remote MX record. You'd simply need to ensure to list the proper MX entry for the domain when setting up the DNS zone.

    Thanks!
     
  3. LWF

    LWF Member

    Joined:
    Sep 8, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Sorry been flat out for a day or so, so not had a chance to reply.
    Thanks very much for this info, Fab.

    I undersatnd the first bit, and yes php mail() is working, but only to other external email addresses.

    I can change to "remote mail exchanger" I am guessing you mean change this on the accounts that are pointing their a record at the ip adress rather than all accounts.

    I didnt really understand this bit?
    You'd simply need to ensure to list the proper MX entry for the domain when setting up the DNS zone.

    can you explain more please.

    Thanks very much,

    Lance
     
  4. LWF

    LWF Member

    Joined:
    Sep 8, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    OK, so I changed "routing" to remote
    and in then in
    WHM >=Edit MX Entry
    Then changed the MX entries to "abc.hosts.co.uk" taken from the existing domain name's mx records

    I sent a couple of tests, but client gone home, so dont know if delivered.

    Hopefully that will sort it, as I have a few clients that only want to point A records and I want to be able to send mail from my website and their own, to their email addresses.

    Thansk for your help, please point out any blunders I may have made.
    L


    Pitbull, DNS is such a big topic, really massive... I'd start here
    www.google.co.uk

    Lance
     
  5. LWF

    LWF Member

    Joined:
    Sep 8, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Client has confirmed, emails arrived.
    So, the full answer for anyone else looking is this.

    Set up your account as normal, on a domain etc.
    Point the A-record to your server ip address
    Set Mail Routing to"remote mail exchanger", this can be done at the time of account creation or via WHM=>Edit MXZone
    Change MX entires to the existing domain name's mx records e.g. "abc.hosts.co.uk" via WHM=>Edit MXZone

    Then php mail() will not only work from your website to external email addresses but you will be able to send mail to that accounts emails from the website and from any other websites in your accounts.

    HTH

    Lance
     
Loading...

Share This Page