SMTP relay или что делать если ваш сервер попал в email-блеклист
http://habrahabr.ru/post/59018/
а настраивается так
!!!
http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html
!!!
http://opentodo.net/2013/03/postfix-smtp-relay-to-smtp-gmail-com/
https://rtcamp.com/tutorials/linux/ubuntu-postfix-gmail-smtp/
http://www.kreci.net/linux/how-to-send-mail-in-postfix-through-external-smtp/
nano /etc/postfix/main.cf
# sets gmail as relay
relayhost = [smtp.gmail.com]:587
# use tls
smtp_use_tls=yes
# use sasl when authenticating to foreign SMTP servers
smtp_sasl_auth_enable = yes
# path to password map file
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
# list of CAs to trust when verifying server certificate
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
# eliminates default security options which are imcompatible with gmail
smtp_sasl_security_options =
#debug_peer_list=smtp.gmail.com
#debug_peer_level=3
2. Add Gmail creds to
nano /etc/postfix/sasl_passwd
[smtp.gmail.com]:587 username:password
3. Run sudo postmap /etc/postfix/sasl_passwd
cd /etc/postfix
chown postfix sasl_passwd*
4. Run /etc/init.d/postfix reload
/etc/init.d/postfix reload
echo "Test mail from postfix" | mail -s "Test Postfix" [email protected]
sm1ly says:
привет, а не пробовал то же самое только с yandex? у меня в упор не хочет ехать через tls
admin says:
нет не пробовал, а что не получается ?