M
M
motomac2015-06-30 06:38:30
PHP
motomac, 2015-06-30 06:38:30

How to send mail after updating PHP to 5.6?

Updated PHP on CentOS from 5.3 to 5.6. It seems that everything took off normally, but later I noticed that sending mail from PHP had fallen off. Before the update, DKIM and SPF were used.
Postfix logs look like this:

Jun 28 07:32:30 mysite postfix/smtpd[10838]: connect from unknown[194.63.140.62]
Jun 28 07:32:31 mysite postfix/smtpd[10838]: warning: unknown[194.63.140.62]: SASL LOGIN authentication failed: authentication failure
Jun 28 07:32:31 mysite postfix/smtpd[10838]: lost connection after AUTH from unknown[194.63.140.62]
Jun 28 07:32:31 mysite postfix/smtpd[10838]: disconnect from unknown[194.63.140.62]
Jun 28 07:33:16 mysite postfix/qmgr[2101]: 9EC472A40CF3: from=<[email protected]>, size=7244, nrcpt=1 (queue active)
Jun 28 07:33:46 mysite postfix/smtp[11590]: connect to mx.mrdv.mts.ru[213.87.98.250]:25: Connection timed out
Jun 28 07:34:32 mysite postfix/smtp[11590]: 9EC472A40CF3: host mx2.mrdv.mts.ru[213.87.98.252] refused to talk to me: 550 Host's IP-address 144.XXX.XXX.XXX is listed in local Blacklist.
Jun 28 07:34:32 mysite postfix/smtp[11590]: 9EC472A40CF3: host mx4.mts.ru[213.87.44.6] refused to talk to me: 553 5.7.1 <static.201.5.76.144.clients.your-server.de[144.XXX.XXX.XXX]>: Client host rejected: use your provider relay
Jun 28 07:34:32 mysite postfix/smtp[11590]: 9EC472A40CF3: to=<v***@b***a.mts.ru>, relay=mx2.mts.ru[213.87.44.5]:25, delay=334713, delays=334637/0.01/76/0, dsn=4.7.1, status=deferred (host mx2.mts.ru[213.87.44.5] refused to talk to me: 553 5.7.1 <static.201.5.76.144.clients.your-server.de[144.XXX.XXX.XXX]>: Client host rejected: use your provider relay)
Jun 28 07:35:52 mysite postfix/anvil[10840]: statistics: max connection rate 1/60s for (smtp:194.63.140.62) at Jun 28 13:32:30
Jun 28 07:35:52 mysite postfix/anvil[10840]: statistics: max connection count 1 for (smtp:194.63.140.62) at Jun 28 13:32:30
Jun 28 07:35:52 mysite postfix/anvil[10840]: statistics: max cache size 1 at Jun 28 13:32:30

As a temporary solution, I switched the method of sending from the PHP function to the SMTP server in the site engine. It worked, but I still want to send from PHP as before.
Please help! Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ivankomolin, 2015-06-30
@ivankomolin

Find the following line in /etc/sysconfig/saslauthd
AND replace it with
AND restart
This will enable authentication

S
Sergey, 2015-06-30
@Weidmann

cat /var/log/yum.log
Maybe something besides php has been updated? If in php mail(); that thing works vryatli in it.
echo "test" | sendmail -v -f server_box mail_to_send - what does it say?
check also relayhost in main.cf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question