Results 1 to 6 of 6

Thread: Using an offsite mail server (locally sent mail fails)

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    12

    Default Using an offsite mail server (locally sent mail fails)

    I'm using google for domains with one of my domains (has worked pretty well so far). I just moved this domain to a server that I admin directly. I edited the dns zone so that it looked the same as the other server (for the mx entries) before initiating the transfer. The site is resolving to the new server fine. I can recieve mail from other servers to the google mail and send mail from home (pops to pop.gmail.com) fine, but when sending mail from the local server (php mail() etc) the mail just gets stuck in the que. So I suspect that somehow exim or whatever is trying to use the local server instead of sending the mail to google. The results of tail -f /var/log/exim_mainlog:

    Code:
    2
    006-10-21 18:26:06 1GbPI6-0003bQ-4O <= nobody@********.com U=nobody P=local S=932
    2006-10-21 18:26:06 1GbPI6-0003bQ-4O ** ***@*****.com R=virtual_aliases: No Such User Here
    2006-10-21 18:26:06 1GbPI6-0003bT-J7 <= <> R=1GbPI6-0003bQ-4O U=mailnull P=local S=1842
    Thanks in advance

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    165

    Default

    remove the domain from /etc/localdomains and add it to /etc/remotedomains
    search is your friend!
    cPanel Specialist Certification::Technical

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    12

    Default

    That seems to have done it! Thanks bunches

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    6

    Default Does that take effect immediately?

    I had this same issue, and moved the domain from the one file to the other. How long does this take to work? Is it immediate? Do I need to restart BIND, and /or exim? Thank you.

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    165

    Default

    It should work straight away without any restart of any of the daemons needed.
    search is your friend!
    cPanel Specialist Certification::Technical

  6. #6
    Member
    Join Date
    Nov 2006
    Posts
    6

    Default

    You're right - it was working. I just didn't have an email address to test with, so I wasn't sure the tests were going through. When my client got back in the office, they said all the form mails came through. Thanks!

Similar Threads

  1. Replies: 1
    Last Post: 08-25-2009, 11:04 AM
  2. Replies: 0
    Last Post: 02-11-2009, 09:10 PM
  3. Replies: 5
    Last Post: 01-16-2008, 01:05 PM
  4. Mail send locally
    By CTC in forum New User Questions
    Replies: 3
    Last Post: 12-05-2006, 08:54 AM
  5. Can't Send Mail Locally
    By celliott in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 11-21-2006, 03:33 PM