Last active
January 30, 2023 11:14
-
-
Save HueJack/4c93a9aa1e0a5cb2a92824c3ba8cf00c to your computer and use it in GitHub Desktop.
Настройка smtp yandex на msmtp на веб-окружении Битрикс
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Применительно к веб-окружению Битрикс: | |
Из главного меню окружения: | |
6. Manage sites.... | |
затем | |
4. Change email settings on site | |
Забиваем поля по любой доступной инструкции. Если почта не отправляется, переходим в /home/bitrix и открываем на редактирование | |
конфиг .msmtprc, содержание: | |
#Яндекс | |
logfile /home/bitrix/msmtp_domain.ru.log | |
host smtp.yandex.ru | |
port 465 | |
from [email protected] | |
keepbcc on | |
auth on | |
user [email protected] | |
password smtppassword | |
tls on | |
tls_starttls off | |
tls_certcheck off | |
#Gmail | |
Если возникает ошибка "535-5.7.8 Username and Password not accepted." дополнительно нужно настроить доступы к небезопасным приложениям, либо отключить защиту на странице https://myaccount.google.com/lesssecureapps?pli=1 | |
logfile /home/bitrix/msmtp_sitename.ru.log | |
host smtp.gmail.com | |
port 587 | |
from [email protected] | |
keepbcc on | |
auth on | |
user [email protected] | |
password your_password | |
tls on | |
tls_starttls on | |
tls_certcheck off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gmail отключил эту опцию "https://myaccount.google.com/lesssecureapps?pli=1"