Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > Mail

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2009, 12:32 PM
Registered User
 
Join Date: Aug 2008
Posts: 7
scorched is on a distinguished road
Question help! particular domain not receiving email sent by php script

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-29-2009, 12:50 PM
Registered User
 
Join Date: Dec 2008
Posts: 45
britsenigma is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-01-2009, 02:08 PM
Registered User
 
Join Date: Aug 2008
Posts: 7
scorched is on a distinguished road
thank you for your reply. will do as advised.

Quote:
Originally Posted by britsenigma View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-01-2009, 02:22 PM
Registered User
 
Join Date: Aug 2008
Posts: 7
scorched is on a distinguished road
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


Quote:
Originally Posted by britsenigma View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-01-2009, 11:28 PM
Registered User
 
Join Date: Apr 2009
Posts: 225
InstaCarma_Tech is on a distinguished road
Quote:
Originally Posted by scorched View Post
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.
__________________
InstaCarma
Outsourced Web Hosting Technical Support and Server Management

To visit out Blog , click here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-04-2009, 12:33 PM
Registered User
 
Join Date: Aug 2008
Posts: 7
scorched is on a distinguished road
Quote:
Originally Posted by InstaCarma_Tech View Post
Please check whether the domain is present in the '/etc/localdomains' file on the server.

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

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-01-2010, 09:09 AM
Registered User
 
Join Date: Aug 2008
Posts: 7
scorched is on a distinguished road
Smile

already resolved this. had something to do with the exim configuration.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
email

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
One Domain not Receiving Email - SPAMD issue? ambition13 Mail 1 04-09-2009 03:08 PM
PHP script sends email as Nobody lemonsensation cPanel and WHM Discussions 5 11-07-2004 06:00 PM
Receiving email for joe@domain.com and joe@domain.net in one inbox, how to do this? AbeFroman cPanel and WHM Discussions 8 03-11-2004 10:50 PM
Piping email to a PHP script results in two copies of the email being processed Chen cPanel and WHM Discussions 1 06-20-2003 01:57 PM


All times are GMT -5. The time now is 06:22 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc