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.

help! particular domain not receiving email sent by php script

Discussion in 'E-mail Discussions' started by scorched, May 29, 2009.

  1. scorched

    scorched Member

    Joined:
    Aug 23, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    hi all,

    here's the scenario:
    (1) using WEBMAIL on server1, sending from domain1 to domain2, domain3 and domain4 is OK.

    (2) using PHP MAIL FUNCTION on server1, sending from domain1 to domain2 FAILS, but sending to domain3 and domain4 is OK.

    has anyone here encountered the same problem? what could possibly be the reason why message sending fails on (2)?

    more details:
    domain1 is on server1 (running on whm/cpanel)
    domain2 is on server2 (running on whm/cpanel)
    domain3/4 are additional 3rd party domains used to check if mails are received.

    domain2 has spamfilter, boxtrapper disabled


    many thanks
     
  2. britsenigma

    britsenigma Well-Known Member

    Joined:
    Dec 14, 2008
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    You need to study the logs in real time.

    Get to a shell prompt.

    Try these commands (the locations of the files might vary depending on your os).

    tail -f /var/log/maillog
    tail -f /var/log/exim_mainlog

    "-f" is short for follow.

    If you know what email address to expect. Do this:
    tail -f /var/log/exim_mainlog | grep mic@rosoft.com

    Exim is SMTP maillog is for IMAP/POP3.

    The error is what you should be interested in. Also, have you tried running the delivery troubleshooter, and making sure when you enter the email address specificed in the php script, that the server can actually mail it.
     
  3. scorched

    scorched Member

    Joined:
    Aug 23, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    thank you for your reply. will do as advised.

     
  4. scorched

    scorched Member

    Joined:
    Aug 23, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    hi. i got this line pertaining to the target email address:

    {date time} {message id} {email address} R=lookuphost T=remote_smtp defer (-44): SMTP error from remote email mail server after RCPT TO:{email address}: host {email domain name} {IP address}: 451 Temporary local problem - please try later


    how do i fix this error on the recipient server? where do i look?

    many thanks


     
  5. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    Please check whether the domain is present in the '/etc/localdomains' file on the server.
     
  6. scorched

    scorched Member

    Joined:
    Aug 23, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1

    what do you mean? the recipient domain should be in the localdomains file in the sending server?

    thanks
     
  7. scorched

    scorched Member

    Joined:
    Aug 23, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    already resolved this. had something to do with the exim configuration.
     
Loading...

Share This Page