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 sending mail from PHP

Discussion in 'E-mail Discussions' started by flashweb, Jan 5, 2008.

  1. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    When i send mail from PHP script to a clients domain (that is hosted on some other server), i get following error.


    PHP:
    2008-01-05 10:26:12 cwd=/home/username/public_html 3 args: /usr/sbin/sendmail --i
    2008
    -01-05 10:26:12 1JB6EG-0006Ql-Ri <= username@server28.hoshat.com U=username P=local S=412 T="Test Mail"
    2008-01-05 10:26:12 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1JB6EG-0006Ql-Ri
    2008
    -01-05 10:26:17 1JB6EG-0006Ql-Ri ** enquiries@rcptdomain.co.uk R=lookuphost T=remote_smtpSMTP error from remote mail server after RCPT TO:<enquiries@rcptdomain.co.uk>: host rcptdomain.co.uk [217.112.82.16]: 550-Verification failed for <username@server28.hoshat.com>\n550-The mail server could not deliver mail to username@server28.hoshat.com.  The account or domain may not existthey may be blacklisted, or missing the proper dns entries.\n550 Sender verify failed
    2008
    -01-05 10:26:17 cwd=/var/spool/exim 7 args: /usr/sbin/exim --oem -oi -<> -E1JB6EG-0006Ql-Ri
    2008
    -01-05 10:26:17 1JB6EL-0006Qr-4I <= <> R=1JB6EG-0006Ql-Ri U=mailnull P=local S=1662 T="Mail delivery failed: returning message to sender"
    2008-01-05 10:26:17 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1JB6EL-0006Qr-4I
    2008
    -01-05 10:26:17 1JB6EG-0006Ql-Ri Completed
    Mail is send to enquiries@rcptdomain.co.uk

    Remote mail server says username@server28.hoshat.com can't accept mails.

    PHP runs in suphp mode.

    How do i fix it ?

    Thanks,

    Yujin
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Looks like the remote server is performing a sender verify check and when it finds that the email the message is being sent from is not a real email address (accepts emails), then it rejects the mail.

    The goal should be to send the mail from an address that is an actual address on the server.
     
  3. dzallecomm

    dzallecomm Member

    Joined:
    Feb 27, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    We have similar problem: php mail don't send mails to addresses in other servers, but those in the same server
     
  4. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hmm I have seen this before,

    check spamHaus to see if the server is listed on there.

    May help
     
Loading...

Share This Page