[CentOS] Help Getting Postfix relaying via Gmail

Eero Volotinen eero.volotinen at iki.fi
Fri Dec 28 13:39:07 UTC 2012


2012/12/28 Clint Dilks <clint.dilks at gmail.com>:
> Sorry was doing this at 2am in the morning and didn't realise I mis-copied
>
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/libexec/postfix
> data_directory = /var/lib/postfix
> debug_peer_level = 3
> html_directory = no
> inet_interfaces = localhost
> inet_protocols = all
> mail_owner = postfix
> mailq_path = /usr/bin/mailq.postfix
> manpage_directory = /usr/share/man
> mydestination = $myhostname, localhost.$mydomain, localhost
> newaliases_path = /usr/bin/newaliases.postfix
> queue_directory = /var/spool/postfix
> readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
> relayhost = [smtp.gmail.com]:587
> sample_directory = /usr/share/doc/postfix-2.6.6/samples
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> smtp_sasl_auth_enable = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
> smtp_sasl_type = cyrus
> smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
> smtp_tls_mandatory_ciphers = high
> smtp_tls_mandatory_protocols = TLSv1
> smtp_tls_secure_cert_match = nexthop
> smtp_tls_security_level = secure
> smtp_use_tls = yes
> smtpd_sasl_path = smtpd
> unknown_local_recipient_reject_code = 550

remember to postmap /etc/postfix/sasl_passwd and then restart the
postfix. then provide log entries from postfix after trying to send
mail..

--
Eero



More information about the CentOS mailing list