Translations:Notification module/3/en: различия между версиями

Материал из Wiren Board
м (FuzzyBot переименовал страницу Translations:Модуль уведомлений/3/en в Translations:Notification module/3/en без оставления перенаправления: Часть переводимой страницы Модуль уведомлений.)
 
Строка 2: Строка 2:
<syntaxhighlight lang="linux-config">
<syntaxhighlight lang="linux-config">
mailhub=smtp.gmail.com:587
mailhub=smtp.gmail.com:587
AuthUser=robot@contactless.ru
AuthUser=robot@wirenboard.com
AuthPass=qwerty12345
AuthPass=qwerty12345
UseTLS=Yes
UseTLS=Yes

Текущая версия на 17:38, 7 декабря 2023

Определение сообщения (Notification module)
Очистите содержимое ''/etc/ssmtp/ssmtp.conf'' и внесите туда такие строки, заменив данные своими:
<syntaxhighlight lang="linux-config">
mailhub=smtp.gmail.com:587
AuthUser=robot@contactless.ru
AuthPass=qwerty12345
UseTLS=Yes
UseSTARTTLS=Yes
#обязательно оставьте пустую строку в конце файла
#Для отправки писем через Google Mail необходимо разрешить отправку писем от недоверенных приложений для вашего Google-аккаунта 
</syntaxhighlight>
Чтобы проверить, что отправка email заработала, выполните в [[Консоль | консоли]] команду:
<syntaxhighlight lang="bash">
echo 'Test message to check sSMTP new configuration' | ssmtp ivanov@gmail.com
# вместо ivanov@gmail.com подставьте адрес другого своего ящика (например того, куда собираетесь получать уведомления с контроллера)
</syntaxhighlight>
В случае дополнительных вопросов смотрите [http://askubuntu.com/questions/185070/why-i-get-hostname-name-or-service-not-known-error] и [https://wiki.archlinux.org/index.php/SSMTP].

Clear the contents of "/etc/ssmtp/ssmtp.conf" and fill in such lines, replacing the data with your own:

mailhub=smtp.gmail.com:587
AuthUser=robot@wirenboard.com
AuthPass=qwerty12345
UseTLS=Yes
UseSTARTTLS=Yes
#be sure to leave an empty line at the end of the file
#To send emails via Google Mail, you must allow sending emails from untrusted apps to your Google account

To verify that sending email is working, run the console command:

echo 'Test message to check sSMTP new configuration' | ssmtp ivanov@gmail.com
# instead ivanov@gmail.com substitute the address of your other box (for example, where you are going to receive notifications from the controller)

In case of additional questions, see [1] and [2].