We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Почта Yanex
-
- Posts: 7
- Joined: Thu Feb 14, 2013 7:56 pm
Почта Yanex
У меня почта работает через Yandex (подключен домен). Что нужно настроить в панели?
Re: Почта Yanex
Для того, чтобы почта заработала нужно настроить MX записи. Если dns управляется сервером, то это можно сделать в панели управления в соответсвующем разделе.
Re: Почта Yanex
У меня при подключении домена через яндекс.почту всплыла такая проблема: яндекс блочит все письма, генерируемые скриптами при отправки на е-мейл домена. Т.е.
- Скрипт генерит емыл о поздравлении с регистрацией нового юзера на форуме forum.ru.
- одно письмо отправляется юзеру о его регистрации на емыл [email protected] (письмо доходит)
- одно письмо отправляется админу, что зарегился новый юзер [email protected] (письмо из-за чего-то зарезается)
скрипт отправляет письма, используя почтовик на сервере.
в MX записи в качестве почтового указан сервер яндекса
- Скрипт генерит емыл о поздравлении с регистрацией нового юзера на форуме forum.ru.
- одно письмо отправляется юзеру о его регистрации на емыл [email protected] (письмо доходит)
- одно письмо отправляется админу, что зарегился новый юзер [email protected] (письмо из-за чего-то зарезается)
скрипт отправляет письма, используя почтовик на сервере.
в MX записи в качестве почтового указан сервер яндекса
Code: Select all
forum.ru MX mx.yandex.ru 10
forum.ru TXT v=spf1 a redirect=_spf.yandex.ru
Re: Почта Yanex
Проверьте не находится ли ip сервера в блоклистах. Важно чтобы hostname на сервере был пингуемым доменом и у ip адреса была PTR запись.
Re: Почта Yanex
ip в блоклистах нет и hostname пингуемый. тут явно дело еще в каких-то настройках или в заголовке писем.
подозреваю что яндекс рубит письма из-за того, что при использовании скриптами функции sendmail (или аналогичной) создаются поля "Return-path:", "Sender:" где указывается hostname, а не домен с которого отсылается письмо.
т.е. в Sender ожидается: [email protected] (имя домена)
а вписывается к примеру: [email protected] (имя хоста)
подозреваю что яндекс рубит письма из-за того, что при использовании скриптами функции sendmail (или аналогичной) создаются поля "Return-path:", "Sender:" где указывается hostname, а не домен с которого отсылается письмо.
т.е. в Sender ожидается: [email protected] (имя домена)
а вписывается к примеру: [email protected] (имя хоста)
Re: Почта Yanex
Да, видимо дело в чем-то другом. Надо посмотреть что видно в логе /var/log/exim/main.log при отправке писем, сервер яндекса должен написать о причине.
Re: Почта Yanex
=> [email protected] R=localuser T=local_deliveryskid wrote:Да, видимо дело в чем-то другом. Надо посмотреть что видно в логе /var/log/exim/main.log при отправке писем, сервер яндекса должен написать о причине.
Completed
не уходит письмо дальше сервера что ли получается?
Re: Почта Yanex
Ага понятно. Значит домен создан локально все отправленные письма приходили не в яндекс, а складывались локально. Удалите домен из вкладки mail и все должно заработать.
Re: Почта Yanex
Да, домен создан локально.
Но вот если его удалить из вкладки mail в логах появляются ошибки:
<= email U=user P=local
SMTP error from remote mail server after end of data: host mx.yandex.ru
== R=dnslookup T=remote_smtp defer (-46)
----------------------------
Если домен создать, но ящик локально не создавать
<= email U=user P=local
** email: Unrouteable address
Но вот если его удалить из вкладки mail в логах появляются ошибки:
<= email U=user P=local
SMTP error from remote mail server after end of data: host mx.yandex.ru
== R=dnslookup T=remote_smtp defer (-46)
----------------------------
Если домен создать, но ящик локально не создавать
<= email U=user P=local
** email: Unrouteable address
Re: Почта Yanex
Ни домена ни ящика быть не должно, иначе exim будет пытаться доставить письмо локально.
Кстати судя по коментариям на хабре, яндекс может использовать технологию greylisting и в таком случае ошибка remote_smtp defer (-46) вполне легетимна. Сервер доставит письмо но не с первой попытки.
Кстати судя по коментариям на хабре, яндекс может использовать технологию greylisting и в таком случае ошибка remote_smtp defer (-46) вполне легетимна. Сервер доставит письмо но не с первой попытки.