ssmtp не отправляет сообщение, Centos7
При попытке отправить сообщение появляется ошибка:
[root@poyuzd ~]# echo "test_message" | ssmtp -v "example@yandex.ru"
ssmtp: Cannot open smtp.gmail.com:587
TLS_CA_FILE=/etc/pki/tls/certs/ca-bundle.crt
root=example@gmail.com
mailhub=smtp.gmail.com:587
# Where will the mail seem to come from?
rewriteDomain=gmail.com
# The full hostname
hostname=smtp.gmail.com:587
FromLineOverride=YES
UseTLS=YES
AuthMethod=LOGIN
AuthUser=example@gmail.com
UseSTARTTLS=YES
AuthPass=example
# Are users allowed to set their own From: address?
root:example.com:smtp.gmail.com:587
username:example@gmail.com:smtp.gmail.com:587
tail -f /var/log/maillog
May 5 13:12:01 poyuzd sSMTP[25127]: Unable to locate smtp.gmail.com
May 5 13:12:01 poyuzd sSMTP[25127]: Cannot open smtp.gmail.com:587
May 5 13:12:01 poyuzd sSMTP[25126]: Unable to locate smtp.gmail.com
May 5 13:12:01 poyuzd sSMTP[25126]: Cannot open smtp.gmail.com:587
May 5 13:12:01 poyuzd sSMTP[24863]: Unable to locate smtp.gmail.com
May 5 13:12:01 poyuzd sSMTP[24863]: Cannot open smtp.gmail.com:587
May 5 13:12:01 poyuzd sSMTP[24869]: Unable to locate smtp.gmail.com
May 5 13:12:01 poyuzd sSMTP[24869]: Cannot open smtp.gmail.com:587
May 5 13:12:04 poyuzd sSMTP[25158]: Unable to locate smtp.gmail.com
May 5 13:12:04 poyuzd sSMTP[25158]: Cannot open smtp.gmail.com:587