При попытке отправить сообщение: # echo «This is a test.» | mail -s «test message» world5607@yandex.ru В логах пишется:
May 2 15:30:04 poyuzd postfix/pickup[23899]: 7D8ED832BE65: uid=0 from=<root>
May 2 15:30:04 poyuzd postfix/cleanup[24039]: 7D8ED832BE65: message-id=<2017050 2123004.7D8ED832BE65@poyuzd>
May 2 15:30:04 poyuzd postfix/qmgr[22568]: 7D8ED832BE65: from=<root@poyuzd.loca ldomain>, size=1554, nrcpt=1 (queue active)
May 2 15:30:04 poyuzd postfix/error[22583]: 7D8ED832BE65: to=<root@poyuzd.local domain>, orig_to=<root>, relay=none, delay=0.02, delays=0.02/0/0/0, dsn=4.4.3, s tatus=deferred (delivery temporarily suspended: Host or domain name not found. N ame service error for name=smtp.gmail.com type=AAAA: Host not found, try again)
В /etc/postfix/main.cf Добавил inet_protocols = all и
myhostname = poyuzd
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous