Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Почтовый сервер
  • Search

Не отправляются письма после обновления PHP и MySQL

Вопросы по работе Почтовый сервера
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
TurbOS
Posts: 14
Joined: Sat Nov 21, 2015 9:07 pm

Не отправляются письма после обновления PHP и MySQL
  • Quote

Post by TurbOS » Sat Feb 18, 2017 8:22 am

Уважаемые форумчане, необходима помощь в решении проблемы- перестала уходить почта в мир. Внутри сервера между разными доменами гуляет нормально.
Centos 6.7 / Vesta 0.9.8 (x86_64) / обновлено PHP 5.6.30, MySQL 5.6.35. PTR-запись имеется.
Наличия IP в СПАМ базах нет.
Отправил на четыре разных ящика, к моему удивлению пришло на mail.ru, но сразу в спам. До обновления было наоборот приходило всем, кроме mail.ru, пока не добавил PTR-запись.

/var/log/exim/main.log
SpoilerShow

Code: Select all

2017-02-18 13:11:38 exim 4.72 daemon started: pid=2603, -q1h, listening for SMTP on port 25 (IPv6 and IPv4) port 587 (IPv6 and IPv4) port 2525 (IPv6 and IPv4) and for SMTPS on port 465 (IPv6 and IPv4)
2017-02-18 13:11:38 Start queue run: pid=2604
2017-02-18 13:11:38 End queue run: pid=2604
2017-02-18 13:14:15 1cf4q7-0000vH-IR <= [email protected] U=admin P=local S=1971 [email protected]
2017-02-18 13:14:17 1cf4q7-0000vH-IR ** [email protected] R=dnslookup T=remote_smtp: retry time not reached for any host after a long failure period
2017-02-18 13:14:18 1cf4qA-0000vS-0I <= <> R=1cf4q7-0000vH-IR U=exim P=local S=2804
2017-02-18 13:14:18 1cf4q7-0000vH-IR Completed
2017-02-18 13:14:18 1cf4qA-0000vS-0I => admin <[email protected]> R=localuser T=local_delivery
2017-02-18 13:14:18 1cf4qA-0000vS-0I Completed
2017-02-18 13:15:21 1cf4rB-000104-Jq <= [email protected] U=admin P=local S=1967 [email protected]
2017-02-18 13:15:22 1cf4rB-000104-Jq Remote host mta6.am0.yahoodns.net [66.196.118.37] closed connection in response to initial connection
2017-02-18 13:15:22 1cf4rB-000104-Jq Remote host mta6.am0.yahoodns.net [66.196.118.33] closed connection in response to initial connection
2017-02-18 13:15:22 1cf4rB-000104-Jq Remote host mta5.am0.yahoodns.net [98.138.112.35] closed connection in response to initial connection
2017-02-18 13:15:22 1cf4rB-000104-Jq Remote host mta7.am0.yahoodns.net [98.136.216.25] closed connection in response to initial connection
2017-02-18 13:15:22 1cf4rB-000104-Jq == [email protected] R=dnslookup T=remote_smtp defer (-18): Remote host mta7.am0.yahoodns.net [98.136.216.25] closed connection in response to initial connection
2017-02-18 13:18:16 1cf4u0-00010h-Bj <= [email protected] U=admin P=local S=1998 [email protected]
2017-02-18 13:18:18 1cf4u0-00010h-Bj Remote host mxa-0014fe01.gslb.pphosted.com [67.231.144.99] closed connection in response to initial connection
2017-02-18 13:18:18 1cf4u0-00010h-Bj == [email protected] R=dnslookup T=remote_smtp defer (-18): Remote host mxa-0014fe01.gslb.pphosted.com [67.231.144.99] closed connection in response to initial connection
2017-02-18 13:22:30 1cf4y6-00015h-SU <= [email protected] U=admin P=local S=1991 [email protected]
2017-02-18 13:22:41 1cf4y6-00015h-SU => [email protected] R=dnslookup T=remote_smtp H=mxs.mail.ru [217.69.139.150] X=UNKNOWN:AES256-GCM-SHA384:256
2017-02-18 13:22:41 1cf4y6-00015h-SU Completed
2017-02-18 13:48:27 1cf5ND-0001Uj-IV <= [email protected]=admin P=local S=1418 [email protected]
2017-02-18 13:48:32 1cf5ND-0001Uj-IV ** [email protected] R=dnslookup T=remote_smtp: retry time not reached for any host after a long failure period
2017-02-18 13:48:32 1cf5NI-0001V0-CK <= <> R=1cf5ND-0001Uj-IV U=exim P=local S=2251
2017-02-18 13:48:32 1cf5ND-0001Uj-IV Completed
2017-02-18 13:48:32 1cf5NI-0001V0-CK => admin <[email protected]> R=localuser T=local_delivery
2017-02-18 13:48:32 1cf5NI-0001V0-CK Completed
2017-02-18 14:11:38 Start queue run: pid=7209
2017-02-18 14:11:39 1cf4rB-000104-Jq Remote host mta7.am0.yahoodns.net [66.196.118.35] closed connection in response to initial connection
2017-02-18 14:11:39 1cf4rB-000104-Jq Remote host mta6.am0.yahoodns.net [66.196.118.34] closed connection in response to initial connection
2017-02-18 14:11:39 1cf4rB-000104-Jq Remote host mta5.am0.yahoodns.net [98.138.112.37] closed connection in response to initial connection
2017-02-18 14:11:39 1cf4rB-000104-Jq == [email protected] R=dnslookup T=remote_smtp defer (-18): Remote host mta5.am0.yahoodns.net [98.138.112.37] closed connection in response to initial connection
2017-02-18 14:11:43 1cf4u0-00010h-Bj Remote host mxb-0014fe01.gslb.pphosted.com [208.86.201.212] closed connection in response to initial connection
2017-02-18 14:11:43 1cf4u0-00010h-Bj == [email protected] R=dnslookup T=remote_smtp defer (-18): Remote host mxb-0014fe01.gslb.pphosted.com [208.86.201.212] closed connection in response to initial connection
2017-02-18 14:11:43 End queue run: pid=7209
/var/log/exim/reject.log - пустой
/var/log/dovecot.log
SpoilerShow

Code: Select all

Feb 18 13:10:58 master: Warning: Killed with signal 15 (by pid=3961 uid=0 code=kill)
Feb 18 13:11:37 master: Info: Dovecot v2.0.9 starting up (core dumps disabled)
Feb 18 13:13:05 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3531, secured
Feb 18 13:13:05 imap([email protected]): Info: Disconnected: Logged out bytes=195/845
Feb 18 13:13:05 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3533, secured
Feb 18 13:13:05 imap([email protected]): Info: Disconnected: Logged out bytes=44/497
Feb 18 13:13:05 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3536, secured
Feb 18 13:13:05 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3538, secured
Feb 18 13:13:05 imap([email protected]): Info: Disconnected: Logged out bytes=233/836
Feb 18 13:13:05 imap([email protected]): Info: Disconnected: Logged out bytes=292/4275
Feb 18 13:13:21 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3540, secured
Feb 18 13:13:21 imap([email protected]): Info: Disconnected: Logged out bytes=304/1182
Feb 18 13:13:23 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3542, secured
Feb 18 13:13:23 imap([email protected]): Info: Disconnected: Logged out bytes=290/4994
Feb 18 13:13:29 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3544, secured
Feb 18 13:13:29 imap([email protected]): Info: Disconnected: Logged out bytes=301/1182
Feb 18 13:13:36 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3546, secured
Feb 18 13:13:36 imap([email protected]): Info: Disconnected: Logged out bytes=50/404
Feb 18 13:13:37 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3548, secured
Feb 18 13:13:37 imap([email protected]): Info: Disconnected: Logged out bytes=32/384
Feb 18 13:13:37 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3550, secured
Feb 18 13:13:37 imap([email protected]): Info: Disconnected: Logged out bytes=44/497
Feb 18 13:14:15 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3554, secured
Feb 18 13:14:15 imap([email protected]): Info: Disconnected: Logged out bytes=1887/499
Feb 18 13:14:16 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3556, secured
Feb 18 13:14:16 imap([email protected]): Info: Disconnected: Logged out bytes=44/497
Feb 18 13:14:16 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3559, secured
Feb 18 13:14:16 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3560, secured
Feb 18 13:14:16 imap([email protected]): Info: Disconnected: Logged out bytes=196/770
Feb 18 13:14:16 imap([email protected]): Info: Disconnected: Logged out bytes=50/404
Feb 18 13:14:30 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3566, secured
Feb 18 13:14:30 imap([email protected]): Info: Disconnected: Logged out bytes=554/2539
Feb 18 13:14:37 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3568, secured
Feb 18 13:14:37 imap([email protected]): Info: Disconnected: Logged out bytes=464/4077
Feb 18 13:14:37 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3571, secured
Feb 18 13:14:37 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3572, secured
Feb 18 13:14:37 imap([email protected]): Info: Disconnected: Logged out bytes=120/634
Feb 18 13:14:37 imap([email protected]): Info: Disconnected: Logged out bytes=54/705
Feb 18 13:14:57 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3574, secured
Feb 18 13:14:57 imap([email protected]): Info: Disconnected: Logged out bytes=44/497
Feb 18 13:14:57 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3577, secured
Feb 18 13:14:57 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3578, secured
Feb 18 13:14:57 imap([email protected]): Info: Disconnected: Logged out bytes=120/634
Feb 18 13:14:57 imap([email protected]): Info: Disconnected: Logged out bytes=291/1254
Feb 18 13:15:00 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3580, secured
Feb 18 13:15:00 imap([email protected]): Info: Disconnected: Logged out bytes=32/384
Feb 18 13:15:00 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3582, secured
Feb 18 13:15:00 imap([email protected]): Info: Disconnected: Logged out bytes=44/497
Feb 18 13:15:21 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3851, secured
Feb 18 13:15:21 imap([email protected]): Info: Disconnected: Logged out bytes=1885/500
Feb 18 13:15:22 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3854, secured
Feb 18 13:15:22 imap([email protected]): Info: Disconnected: Logged out bytes=44/497
Feb 18 13:15:22 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3857, secured
Feb 18 13:15:22 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3858, secured
Feb 18 13:15:22 imap([email protected]): Info: Disconnected: Logged out bytes=120/634
Feb 18 13:15:22 imap([email protected]): Info: Disconnected: Logged out bytes=291/1254
Feb 18 13:15:29 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3860, secured
Feb 18 13:15:29 imap([email protected]): Info: Disconnected: Logged out bytes=353/2025
Feb 18 13:15:33 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3862, secured
Feb 18 13:15:33 imap([email protected]): Info: Disconnected: Logged out bytes=353/2025
Feb 18 13:15:34 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3864, secured
Feb 18 13:15:34 imap([email protected]): Info: Disconnected: Logged out bytes=353/2025
Feb 18 13:15:34 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3866, secured
Feb 18 13:15:34 imap([email protected]): Info: Disconnected: Logged out bytes=353/2025
Feb 18 13:15:35 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3868, secured
Feb 18 13:15:35 imap([email protected]): Info: Disconnected: Logged out bytes=353/2025
Feb 18 13:15:50 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3870, secured
$ hostname
SpoilerShow

Code: Select all

mydomain.com
$ netstat -lnp | grep :25
SpoilerShow

Code: Select all

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:2525                0.0.0.0:*                   LISTEN      -                   
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      -                   
tcp        0      0 :::2525                     :::*                        LISTEN      -                   
tcp        0      0 :::25                       :::*                        LISTEN      -
Ответ 1
SpoilerShow

Code: Select all

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    retry time not reached for any host after a long failure period

------ This is a copy of the message, including all the headers. ------

Return-path: <[email protected]>
Received: from admin by mydomain.com with local (Exim 4.72)
    (envelope-from <[email protected]>)
    id 1cf4q7-0000vH-IR
    for [email protected]; Sat, 18 Feb 2017 13:14:15 +0000
To: [email protected]
Subject: Lorem ipsum
X-PHP-Originating-Script: 0:rcube.php
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="=_569affc719474815e8bafb7b38ed66f6"
Date: Sat, 18 Feb 2017 18:14:15 +0500
From: [email protected]
Message-ID: <[email protected]>
X-Sender: [email protected]
User-Agent: Roundcube Webmail/1.1.3

--=_569affc719474815e8bafb7b38ed66f6
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Заранее благодарен!
Top

TurbOS
Posts: 14
Joined: Sat Nov 21, 2015 9:07 pm

Re: Не отправляются письма после обновления PHP и MySQL
  • Quote

Post by TurbOS » Sun Feb 19, 2017 9:06 am

Проверил изменения в файлах exim.conf- идентичные.
Добавил SPF-запись на внешнем DNS сервере v=spf1 ip4:xxx.xxx.xxx.xxx ~all.
Добавил disable_ipv6 = true.
Добавил в HOSTS xxx.xxx.xxx.xxx mydomain.com mydomain
Ребутнул сервак и отправил тестовое письмо. Не успел отправить, как сразу получил обратно эту шляпу-
SpoilerShow

Code: Select all

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    retry time not reached for any host after a long failure period

------ This is a copy of the message, including all the headers. ------

Return-path: <[email protected]>
Received: from admin by mydomain.com with local (Exim 4.72)
    (envelope-from <[email protected]>)
    id 1cfN8P-0000wy-Ts
    for [email protected]; Sun, 19 Feb 2017 08:46:21 +0000
To: [email protected]
Subject: =?UTF-8?Q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0_?=  =?UTF-8?Q?=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F?=
X-PHP-Originating-Script: 0:rcube.php
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
Date: Sun, 19 Feb 2017 13:46:21 +0500
From: [email protected]
Message-ID: <[email protected]>
X-Sender: [email protected]
User-Agent: Roundcube Webmail/1.1.3

Проверка доставки сообщения

exim/main.log
SpoilerShow

Code: Select all

2017-02-19 08:44:09 exim 4.72 daemon started: pid=2632, -q1h, listening for SMTP on port 25 (IPv4) port 587 (IPv4) port 2525 (IPv4) and for SMTPS on port 465 (IPv4)
2017-02-19 08:44:09 Start queue run: pid=2633
2017-02-19 08:44:09 End queue run: pid=2633
2017-02-19 08:46:21 1cfN8P-0000wy-Ts <= [email protected] U=admin P=local S=722 [email protected]
2017-02-19 08:46:22 1cfN8P-0000wy-Ts ** [email protected] R=dnslookup T=remote_smtp: retry time not reached for any host after a long failure period
2017-02-19 08:46:22 1cfN8Q-0000x3-10 <= <> R=1cfN8P-0000wy-Ts U=exim P=local S=1555
2017-02-19 08:46:22 1cfN8P-0000wy-Ts Completed
2017-02-19 08:46:22 1cfN8Q-0000x3-10 => admin <[email protected]> R=localuser T=local_delivery
2017-02-19 08:46:22 1cfN8Q-0000x3-10 Completed
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Не отправляются письма после обновления PHP и MySQL
  • Quote

Post by skurudo » Tue Feb 21, 2017 8:43 am

DNS у вас нормально не работают на сервере или где они у вас,
в /etc/resolv.conf вероятно сбойно работающие записи

Памятка:
viewtopic.php?f=31&t=11280
Top

TurbOS
Posts: 14
Joined: Sat Nov 21, 2015 9:07 pm

Re: Не отправляются письма после обновления PHP и MySQL
  • Quote

Post by TurbOS » Wed Feb 22, 2017 6:34 pm

skurudo, спасибо за ответ!
Уже отладил все, после долгих проб и ошибок)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Не отправляются письма после обновления PHP и MySQL
  • Quote

Post by skurudo » Thu Mar 09, 2017 11:53 am

Отлично же! :)
Другим пользователям, уверен, поможет ваш опыт проб и ошибок, если у вас будет время его опубликовать.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Почтовый сервер”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password