Restart Postfix as root, then send a test email. # Enable Transport Layer Security (TLS), i.e. Smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd # Enable SASL authentication in the Postfix SMTP client. If any of the following keys already exist in your configuration comment them out, and include the following at the bottom of the config file. I was not able to route mail to the Gmail SMTP servers over IPv6, so force only IPv4 connections by searching for the inet_protocols key and updating the value. Next we need to edit the Postfix configuration found in /etc/postfix/main.cf. Use the postmap command to update the SASL credentials in Postfix. Make sure to replace EMAIL with your email address, and PASSWORD with your Gmail password, properly escaping any colons in it. Note that enclosing hostnames with square brackets – – tells Postfix to avoid doing an MX lookup. Update the contents to include the following. To set up authentication you will need to edit the /etc/postfix/sasl_passwd file. SASL AuthenticationĬonnecting to the Gmail SMTP server requires both SSL and authentication. If you just need to send emails try running sudo postfix start, and make sure to check your spam for emails – they will likely be flagged as they originate from a local mail server. Everything will need to be executed as root using sudo. A quick howto setup Mac OS X and Postfix to use Gmail as a relay.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |