Настройка Gmail в качестве Postfix SMTP relay (Postfix: Configure Gmail as Relay )

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]

0 thoughts on “Настройка Gmail в качестве Postfix SMTP relay (Postfix: Configure Gmail as Relay )

Leave a Reply

Ваш адрес email не будет опубликован. Обязательные поля помечены *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>