[BlueOnyx:13659] Re: php mail problem (revisited)

Chuck Tetlow chuck at tetlow.net
Wed Sep 11 12:58:32 -05 2013


Chris,

I'm no expert, and I didn't spend the night at some magical hotel...

But I looked at the man page for sendmail, and that -f switch should work to set the "from" address for a message.  So I'm also puzzled why it isn't working.

In looking at your log output below - I see a lot of STARTTLS lines in it.  Could a sendmail update have taken out your "Relay E-mail from Hosts/Domains/IPs" settings?  That could have forced the server to fall back into SMTP Auth to relay - which would fail.  You might check your SERVER MANAGEMENT / NETWORK SETTINGS / EMAIL under the ADVANCED tab.  Make sure 127.0.0.1 and all your local IPs are listed in there for relaying.  That might solve your problem.

As for the reason it suddenly stopped - I've seen that other times with Yum updates.  One day, something on one server will stop, another day - its something else on a different server.  That's why I've set Yum to only update once a week, and I monitor it each time.  That way, if something stops - I know to roll it back.

Good luck.

Chuck

---------- Original Message -----------
From: Chris Gebhardt - VIRTBIZ Internet <cobaltfacts at virtbiz.com> 
To: Blueonyx at mail.blueonyx.it 
Sent: Wed, 11 Sep 2013 12:22:35 -0500 
Subject: [BlueOnyx:13658]  php mail problem (revisited)

> 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 
> _______________________________________________ 
> Blueonyx mailing list 
> Blueonyx at mail.blueonyx.it 
> http://mail.blueonyx.it/mailman/listinfo/blueonyx 
------- End of Original Message -------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20130911/ffa6904e/attachment.html>


More information about the Blueonyx mailing list