[sclug] Php mail

Peter Brewer p.w.brewer at reading.ac.uk
Mon Nov 28 16:54:18 UTC 2005


Dear SCLUG,

I'm having problems using the mail() function in Php on my server.  I 
can successfully send an email from the command line like so:

echo "This message works" | mail -s "Testing message" 
somebody at somewhere.co.uk

However, if I try and send an email in php I get the following error 
recorded in mail.log:

Nov 28 16:51:06 localhost postfix/pickup[2834]: 8A91CA0064: uid=33 
from=<www-data>
Nov 28 16:51:06 localhost postfix/cleanup[2944]: 8A91CA0064: 
message-id=<20051128165106.8A91CA0064 at localhost.localdomain>
Nov 28 16:51:06 localhost postfix/qmgr[2835]: 8A91CA0064: 
from=<www-data at rdg.ac.uk>, size=596, nrcpt=1 (queue active)
Nov 28 16:51:23 localhost postfix/smtp[2946]: 8A91CA0064: 
to=<c.l.pearson at reading.ac.uk>, 
relay=mailhost-slb.rdg.ac.uk[134.225.2.32], delay=17, status=bounced 
(host mailhost-slb.rdg.ac.uk[134.225.2.32] said: 550-Verification failed 
for <www-data at reading.ac.uk> 550-Unrouteable address 550 Sender verify 
failed (in reply to RCPT TO command))
Nov 28 16:51:24 localhost postfix/cleanup[2944]: 5A09EA0065: 
message-id=<20051128165124.5A09EA0065 at localhost.localdomain>
Nov 28 16:51:24 localhost postfix/qmgr[2835]: 5A09EA0065: from=<>, 
size=2611, nrcpt=1 (queue active)
Nov 28 16:51:24 localhost postfix/qmgr[2835]: 8A91CA0064: removed
Nov 28 16:51:28 localhost postfix/smtp[2946]: 5A09EA0065: 
to=<www-data at rdg.ac.uk>, relay=mailhost-slb.rdg.ac.uk[134.225.2.32], 
delay=4, status=bounced (host mailhost-slb.rdg.ac.uk[134.225.2.32] said: 
550 unknown local address (in reply to RCPT TO command))
Nov 28 16:51:29 localhost postfix/qmgr[2835]: 5A09EA0065: removed


I'm almost certain the Php is fine as the identical script works fine on 
another server.  Anyone got any ideas what's going wrong?

Cheers again.

Pete



More information about the Sclug mailing list