[BlueOnyx:13658] php mail problem (revisited)

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Wed Sep 11 12:22:35 -05 2013


We have a customer who has been using php mail scripts on his server for 
some time.  The server is BlueOnyx 5106R using SolarSpeed PHP.

# /home/solarspeed/php/bin/php -v
PHP 5.2.17 (cli) (built: Jan  9 2011 05:50:14)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
     with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by 
ionCube Ltd., and
     with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend 
Technologies


Beginning Monday, September 9, all php mail functions stopped working. 
It looks as though instead of using a specified email address the server 
is simply appending everything as from apache at hostname, which of course 
is then failing because apache@ the hostname doesn't actually exist (and 
there is no way to make it exist).

I have counseled the customer about alternative methods of sending mail 
from PHP, but he counters that it should not have worked before and then 
suddenly not work now.   To force all of his customers to suddenly 
re-write their scripts is not feasible.   I see his point.

Can you help us get his scripts working again as they ought to?

This line is in his php.ini:
sendmail_path = /usr/sausalito/sbin/phpsendmail -t -i -f real at email.address

And that should force all email out as from that real at email.address. 
But it isn't, as seen from the logs.

 From /var/log/maillog:

Sep 11 15:47:12 europa logger: sendmail-wrapper-php: 
site=www.tocbeadz.co.uk, client=208.77.151.18, 
script=/home/.sites/143/site40/web/contact.html, uid=48, user=tocbeadz
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4D005162: from=apache, 
size=337, class=0, nrcpts=1, 
msgid=<201309111447.r8BElC4D005162 at europa.ip-action.com>, 
relay=apache at localhost
Sep 11 15:47:12 europa sendmail[5165]: STARTTLS=server, relay=localhost 
[127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, 
bits=256/256
Sep 11 15:47:12 europa sendmail[5162]: STARTTLS=client, 
relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, 
cipher=DHE-RSA-AES256-SHA, bits=256/256
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfZ005165: 
ruleset=check_mail, arg1=<apache at europa.ip-action.com>, relay=localhost 
[127.0.0.1], reject=550 5.1.1 <apache at europa.ip-action.com>... User unknown
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4D005162: 
to=customerservices at tocbeadz.co.uk, ctladdr=apache (48/48), 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30337, 
relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4D005162: r8BElC4E005162: 
DSN: Service unavailable
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfZ005165: 
from=<apache at europa.ip-action.com>, size=337, class=0, nrcpts=0, 
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfa005165: 
ruleset=check_rcpt, arg1=<apache at europa.ip-action.com>, relay=localhost 
[127.0.0.1], reject=550 5.1.1 <apache at europa.ip-action.com>... User unknown
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: to=apache, 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31361, 
relay=[127.0.0.1], dsn=5.1.1, stat=User unknown
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfa005165: from=<>, 
size=1361, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost 
[127.0.0.1]
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: r8BElC4F005162: 
return to sender: User unknown
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfc005165: 
ruleset=check_rcpt, arg1=<postmaster at europa.ip-action.com>, 
relay=localhost [127.0.0.1], reject=550 5.1.1 
<postmaster at europa.ip-action.com>... User unknown
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4F005162: to=postmaster, 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32385, 
relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfc005165: from=<>, 
size=2385, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost 
[127.0.0.1]
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: Losing 
./qfr8BElC4E005162: savemail panic
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: SYSERR(apache): 
savemail: cannot save rejected email anywhere




-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list