help! particular domain not receiving email sent by php script

scorched

Member
Aug 23, 2008
10
0
51
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
 

britsenigma

Well-Known Member
Dec 14, 2008
85
0
56
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 [email protected]

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.
 

scorched

Member
Aug 23, 2008
10
0
51
thank you for your reply. will do as advised.

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 [email protected]

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.
 

scorched

Member
Aug 23, 2008
10
0
51
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


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 [email protected]

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.
 

InstaCarma_Tech

Well-Known Member
Apr 22, 2009
227
1
68
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
Please check whether the domain is present in the '/etc/localdomains' file on the server.