<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
Chris,
<br />
<br />I'm no expert, and I didn't spend the night at some magical hotel...
<br />
<br />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.
<br />
<br />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.
<br />
<br />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.
<br />
<br />Good luck.
<br />
<br />
<br />
<br />Chuck
<br />
<br /><font size="2">
<br />
<br /><b>---------- Original Message
-----------</b>
<br />
From: Chris Gebhardt - VIRTBIZ Internet <cobaltfacts@virtbiz.com>
<br />
To: Blueonyx@mail.blueonyx.it
<br />
Sent: Wed, 11 Sep 2013 12:22:35 -0500
<br />
Subject: [BlueOnyx:13658] php mail problem (revisited)
<br />
<br />> We have a customer who has been using php mail scripts on his server
for
<br />>
some time. The server is BlueOnyx 5106R using SolarSpeed PHP.
<br />>
<br />>
# /home/solarspeed/php/bin/php -v
<br />>
PHP 5.2.17 (cli) (built: Jan 9 2011 05:50:14)
<br />>
Copyright (c) 1997-2010 The PHP Group
<br />>
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
<br />>
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by
<br />>
ionCube Ltd., and
<br />>
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend
<br />>
Technologies
<br />>
<br />>
Beginning Monday, September 9, all php mail functions stopped working.
<br />>
It looks as though instead of using a specified email address the server
<br />>
is simply appending everything as from apache@hostname, which of course
<br />>
is then failing because apache@ the hostname doesn't actually exist (and
<br />>
there is no way to make it exist).
<br />>
<br />>
I have counseled the customer about alternative methods of sending mail
<br />>
from PHP, but he counters that it should not have worked before and then
<br />>
suddenly not work now. To force all of his customers to suddenly
<br />>
re-write their scripts is not feasible. I see his point.
<br />>
<br />>
Can you help us get his scripts working again as they ought to?
<br />>
<br />>
This line is in his php.ini:
<br />>
sendmail_path = /usr/sausalito/sbin/phpsendmail -t -i -f real@email.address
<br />>
<br />>
And that should force all email out as from that real@email.address.
<br />>
But it isn't, as seen from the logs.
<br />>
<br />>
From /var/log/maillog:
<br />>
<br />>
Sep 11 15:47:12 europa logger: sendmail-wrapper-php:
<br />>
site=www.tocbeadz.co.uk, client=208.77.151.18,
<br />>
script=/home/.sites/143/site40/web/contact.html, uid=48, user=tocbeadz
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4D005162: from=apache,
<br />>
size=337, class=0, nrcpts=1,
<br />>
msgid=<201309111447.r8BElC4D005162@europa.ip-action.com>,
<br />>
relay=apache@localhost
<br />>
Sep 11 15:47:12 europa sendmail[5165]: STARTTLS=server, relay=localhost
<br />>
[127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA,
<br />>
bits=256/256
<br />>
Sep 11 15:47:12 europa sendmail[5162]: STARTTLS=client,
<br />>
relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL,
<br />>
cipher=DHE-RSA-AES256-SHA, bits=256/256
<br />>
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfZ005165:
<br />>
ruleset=check_mail, arg1=<apache@europa.ip-action.com>, relay=localhost
<br />>
[127.0.0.1], reject=550 5.1.1 <apache@europa.ip-action.com>... User
unknown
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4D005162:
<br />>
to=customerservices@tocbeadz.co.uk, ctladdr=apache (48/48),
<br />>
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30337,
<br />>
relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4D005162: r8BElC4E005162:
<br />>
DSN: Service unavailable
<br />>
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfZ005165:
<br />>
from=<apache@europa.ip-action.com>, size=337, class=0, nrcpts=0,
<br />>
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
<br />>
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfa005165:
<br />>
ruleset=check_rcpt, arg1=<apache@europa.ip-action.com>, relay=localhost
<br />>
[127.0.0.1], reject=550 5.1.1 <apache@europa.ip-action.com>... User
unknown
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: to=apache,
<br />>
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31361,
<br />>
relay=[127.0.0.1], dsn=5.1.1, stat=User unknown
<br />>
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfa005165: from=<>,
<br />>
size=1361, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost
<br />>
[127.0.0.1]
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: r8BElC4F005162:
<br />>
return to sender: User unknown
<br />>
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfc005165:
<br />>
ruleset=check_rcpt, arg1=<postmaster@europa.ip-action.com>,
<br />>
relay=localhost [127.0.0.1], reject=550 5.1.1
<br />>
<postmaster@europa.ip-action.com>... User unknown
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4F005162: to=postmaster,
<br />>
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32385,
<br />>
relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
<br />>
Sep 11 15:47:12 europa sendmail[5165]: r8BElCfc005165: from=<>,
<br />>
size=2385, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost
<br />>
[127.0.0.1]
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: Losing
<br />>
./qfr8BElC4E005162: savemail panic
<br />>
Sep 11 15:47:12 europa sendmail[5162]: r8BElC4E005162: SYSERR(apache):
<br />>
savemail: cannot save rejected email anywhere
<br />>
<br />>
--
<br />>
Chris Gebhardt
<br />>
VIRTBIZ Internet Services
<br />>
Access, Web Hosting, Colocation, Dedicated
<br />>
<a target="_blank" href="http://www.virtbiz.com/">www.virtbiz.com</a> | toll-free
(866) 4 VIRTBIZ
<br />>
_______________________________________________
<br />>
Blueonyx mailing list
<br />>
Blueonyx@mail.blueonyx.it
<br />>
<a target="_blank" href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a>
<br /><b>------- End of Original Message
-------</b>
<br />
</font>
</BODY>
</HTML>