Changes

From Amahi Wiki
Jump to: navigation, search
170 bytes removed ,  23:22, 27 October 2011
no edit summary
Add the following to the bottom of the file /etc/postfix/main.cf.
You do not need to change anything else in it, as the last setting for any option is the one that is saved.
{{Text|Text=<nowiki>#### </nowiki> Gmail SSL SMTP Relay
relayhost = [smtp.gmail.com]:587
#authsmtp_sasl_auth_enable <nowiki>=#</nowiki> authsmtp_sasl_auth_enable = yessmtp_sasl_password_maps <nowiki>=</nowiki> hash:/etc/postfix/sasl_passwd
#tlssmtp_use_tls <nowiki>=#</nowiki> tlssmtp_use_tls = yessmtp_sasl_security_options <nowiki>=</nowiki> noanonymoussmtp_sasl_tls_security_options <nowiki>=</nowiki> noanonymoussmtp_tls_note_starttls_offer <nowiki>=</nowiki> yestls_random_source <nowiki>=</nowiki> dev:/dev/urandomsmtp_tls_scert_verifydepth <nowiki>=</nowiki> 5smtp_tls_key_file <nowiki>=</nowiki> /etc/pki/tls/gmail_relay/server.keysmtp_tls_cert_file <nowiki>=</nowiki> /etc/pki/tls/gmail_relay/server.pemsmtpd_tls_ask_ccert <nowiki>=</nowiki> yessmtpd_tls_req_ccert <nowiki>=</nowiki> nosmtp_tls_enforce_peername <nowiki>=</nowiki> no}}
Create /etc/postfix/sasl_passwd file with your Gmail login credentials that looks like below:
{{Text|Text=gmail-smtp.l.google.com user@gmail.com:password
12,424

edits