Results 1 to 10 of 10

Thread: External mail server

  1. #1
    Registered Member
    Join Date
    May 2004
    Posts
    56

    Default External mail server

    On a CPanel server, I have one account where mx records are configured to route all the e-mails to external mail server. Everything works great, except when the e-mail is from another account on the same CPanel server, it doesn't reach external mail server, I think it goes to e-mail box on CPanel server.
    Is there a way to fix it? (How to send e-mails from the CPanel server to external mail server?)
    Last edited by labahost; 06-27-2007 at 10:52 AM.

  2. #2
    NiN
    NiN is offline
    Registered Member
    Join Date
    Apr 2003
    Location
    Braga, Portugal
    Posts
    29

    Default

    Remove the domains from your /etc/localdomains
    ~ DM

  3. #3
    Registered Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by NiN View Post
    Remove the domains from your /etc/localdomains
    ... and put it in your /etc/remotedomains

  4. #4
    Registered Member
    Join Date
    May 2004
    Posts
    56

    Default

    thank you, it worked (but only after exim restart)

  5. #5
    Registered Member
    Join Date
    Apr 2003
    Posts
    20

    Default

    We have to do this from time to time and we always do it in the shell. Does someone know if there is a WHM option for this?

  6. #6
    Registered Member
    Join Date
    May 2004
    Location
    Florida
    Posts
    26

    Default

    Bump for you host4all - same question here.
    Changing the mx record is something built in to and allowed by cPanel but it causes another problem that the cPanel or at least the WHM should be able to fix.
    I have some accounts littered with mail generated by the website on that domain on the server. With third party mail becoming more and more common, such as google apps for your domain, this should be a big priority for the WHM guys to fix / redesign.

    Plus it will prevent the bigger headache of lost emails!

  7. #7
    Registered Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    1,168
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by MediaHound View Post
    Bump for you host4all - same question here.
    Changing the mx record is something built in to and allowed by cPanel but it causes another problem that the cPanel or at least the WHM should be able to fix.
    I have some accounts littered with mail generated by the website on that domain on the server. With third party mail becoming more and more common, such as google apps for your domain, this should be a big priority for the WHM guys to fix / redesign.

    Plus it will prevent the bigger headache of lost emails!
    It's already fixed. If you properly set your MX to a remote MX server now, you'll have the option to still allow the server to accept mail for the domain locally or NOT. Just select not to do so.

    If your mail for a domain is done by another MX remote from your server, make sure that the domain is NOT in /etc/localdomains and IS in /etc/remotedomains. Then, when your website on the server sends out mail to an email address within the domain, it will be sent to the remote MX.

    Mike

  8. #8
    Registered Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    1,168
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by host4all View Post
    We have to do this from time to time and we always do it in the shell. Does someone know if there is a WHM option for this?
    No, but in the customer's Cpanel it can be done - under 'MX Entry'. Just set the MX to a remote MX and do not checkmark the box that says Always accept mail locally even if the primary mx does not point to this server

    This will effectively remove the domain from /etc/localdomains and add it to /etc/remotedomains.

    Mike

  9. #9
    Registered Member
    Join Date
    May 2004
    Location
    Florida
    Posts
    26

    Default

    Thanks mtindor, I was unaware this was resolved already.
    None of my servers' installations have that option.
    I've disabled auto updates and since I did that life on the surface is much better.

  10. #10
    Registered Member
    Join Date
    May 2006
    Posts
    9

    Default

    This really isn't working that well...

    Example...

    - The MX MUST be a FQDN and not an IP
    - My client does not have other domain, only "myclientdomain.com"
    - A new "mail1.myclientdomain.com" A record to a external IP was created
    - MX was setup to "mail1.myclientdomain.com"
    - The email still gets delivered on the local server, even if the FQDN on the MX points to an not local IP

Similar Threads

  1. using external mail server
    By teamideamine in forum E-mail Discussions
    Replies: 4
    Last Post: 02-12-2013, 09:06 AM
  2. external mail server and php mail function
    By yoseman in forum E-mail Discussions
    Replies: 1
    Last Post: 05-04-2012, 01:30 PM
  3. cPanel 11 and External Mail Server
    By Abbas in forum E-mail Discussions
    Replies: 11
    Last Post: 06-11-2007, 10:08 AM
  4. External Mail Server
    By oscillate in forum E-mail Discussions
    Replies: 2
    Last Post: 04-02-2006, 04:48 PM
bargain