wiki:proxmox_gmail_notifier
proxmox gmail notifier
apt install libsasl2-modules mailutils
echo "smtp.gmail.com keper84@gmail.com:yourpassword" > /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwdpostmap hash:/etc/postfix/sasl_passwd
mcedit /etc/postfix/main.cf
Добавляем следующее в конец файла:
relayhost = smtp.gmail.com:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_security_options = smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_tls_CAfile = /etc/ssl/certs/Entrust_Root_Certification_Authority.pem smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache smtp_tls_session_cache_timeout = 3600s
Комментируем relayhost=
#relayhost=
Перезапуск postfix
postfix reload
TEST
echo "sample message" | mail -s "sample subject" keper84@gmail.com
wiki/proxmox_gmail_notifier.txt · Последнее изменение: — odmin
