Problem With PHP mail()

doublea

Verified User
Joined
May 21, 2007
Messages
5
The php function mail() uses sendmail, so I created a symbolic link to exim per many discussions online suggestions.

I now get the following when I tail /var/log/exim/mainlog
2007-05-28 20:20:46 1HsqOE-0006KN-VN <= [email protected] U=apache P=local S=411 T="Test php email" from <[email protected]> for [email protected]
2007-05-28 20:20:47 1HsqOE-0006KN-VN ** [email protected] F=<[email protected]> R=lookuphost T=remote_smtp: SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1445: host mx1.optonline.net [167.206.4.77]: 550 5.1.8 invalid/host-not-in-DNS return address not allowed
2007-05-28 20:20:47 1HsqOF-0006KQ-FA <= <> R=1HsqOE-0006KN-VN U=mail P=local S=1429 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2007-05-28 20:20:47 1HsqOE-0006KN-VN Completed
2007-05-28 20:20:47 1HsqOF-0006KQ-FA == [email protected] R=localuser T=local_delivery defer (13): Permission denied: cannot create /home/apache/Maildir/
2007-05-28 20:20:47 1HsqOF-0006KQ-FA ** [email protected]: retry timeout exceeded
2007-05-28 20:20:47 1HsqOF-0006KQ-FA [email protected]: error ignored
2007-05-28 20:20:47 1HsqOF-0006KQ-FA Completed


The Main get's bounced back and fails to write to a non existant appache MailDir, which I guess is OK. But what about:
F=<[email protected]> R=lookuphost T=remote_smtp: SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1445: host mx1.optonline.net [167.206.4.77]: 550 5.1.8 invalid/host-not-in-DNS return address not allowed

Any Help much appreciated.
 
Back
Top