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.

Problem with server emails getting bounced

Discussion in 'E-mail Discussions' started by bmett, Jul 18, 2013.

  1. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi there,

    I have an interesting problem with one of our servers. Some (not all, that's the strange part) of the server emails (e.g. cron reports, lfd, csf mails, etc) are bounced and create a Mail Delivery failed email (which gets delivery fine, funny enough)

    Here is the Mail Delivery failed message;
    As you can see, ourdomain.com seems to be unable to send to itself :confused:

    If I check the exim log, I can see the following:
    I should also mention that all emails in Edit System Mail Preferences are set to an external email address, on a external mailserver which we use for all our servers.

    The strange thing is that this is only effecting some emails and not all.

    Also, if I try to use the command line to mail to root@ourdomain.com it happens too. The mail gets frozen with above error in the log.

    Anyone out there that has an idea on how to fix this?

    Cheers,
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    At this hour (4:45 am) I would say it's strange that the address is "root@ourdomain.com", I think it should be like "root@host.ourdomain.com", where "host.ourdomain.com" is the server's hostname.
     
  3. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi quietFinn,

    I'm in Australia, it's midday here :)

    Of course you are right. the email address is root@host.ourdomain.com. I just replaced it with something that came to mind.

    Any idea though what could cause this problem?

    Cheers,
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you getting any email from this server, to that external account? Is that external account a gmail account by chance?

    Check your "domain.com" for any issues here:
    /http://www.intodns.com/
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,786
    Likes Received:
    665
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please check the following file:

    Code:
    /etc/localdomains
    Move your domain name (or hostname) out of this file and into the /etc/remotedomains file if email for it is handled on a remote mail server.

    Thank you.
     
  6. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, AU
    Hi guys,

    Thanks for the replies.

    I tried the localdomains / remotedomains files before with no success, but I was able to fix the issue myself.
    I simply removed the MX record from the DNS zone file for hostname. After doing that, emails to root@hostname are being forwarded to the external email set in Edit System Mail Preferences no problem.
    The external email is no gmail account btw, but I don't think that it'll make a difference.

    Thanks again guys.

    Cheers,
    Bjorn
     
Loading...

Share This Page