Skip to content

Instantly share code, notes, and snippets.

@HueJack
Last active January 30, 2023 11:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save HueJack/4c93a9aa1e0a5cb2a92824c3ba8cf00c to your computer and use it in GitHub Desktop.
Save HueJack/4c93a9aa1e0a5cb2a92824c3ba8cf00c to your computer and use it in GitHub Desktop.
Настройка smtp yandex на msmtp на веб-окружении Битрикс
Применительно к веб-окружению Битрикс:
Из главного меню окружения:
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 info@yandexdomain.ru
keepbcc on
auth on
user info@smtpuser.ru
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 user@gmail.com
keepbcc on
auth on
user user@gmail.com
password your_password
tls on
tls_starttls on
tls_certcheck off
@dima731515
Copy link

Gmail отключил эту опцию "https://myaccount.google.com/lesssecureapps?pli=1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment