I am trying to setup our web server so that it can send emails from various web apps to reset password etc. Our mail is hosted by Gmail with a custom domain eg.
Right now emails going to various domains just sit in the mail queue. Anything that is sent to
firstname.lastname@example.org doesn't even make it to the queue.
How do I route the SMTP server through Gmail?
This is what I've added to `/etc/postfix/main.cf` relayhost = smtp.mydomain.com:587 smtp_tls_security_level = verified smtp_tls_mandatory_protocols = TLSv1 smtp_tls_mandatory_ciphers = high smtp_tls_secure_cert_match = nexthop smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous
relayhost be set to
smpt.gmail.com? Do I need to change the DNS?