I have a bit of a problem; I have configured postfix to use dovecot for SMTP AUTH, therefore I had to specify dovecot authentication in the main.cf file. The problem is, I need to also authenticate to my smarthost for outgoing SMTP relaying. I can't seem to do both at once. I can either configure my smart host, or I can configure dovecot auth.
relayhost = relay.jangosmtp.net:2525 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd smtp_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_authenticated_header = yes broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_tls_key_file = /etc/postfix/certs/key.pem smtpd_tls_cert_file = /etc/postfix/certs/cert.pem
I tried to combine the two together, but postfix will not send mail via the smarthost, although it will still authenticate SMTP submission users.
maillog gives the following error:
Sep 16 23:59:00 hg-gv postfix/smtp: warning: unsupported SASL client implementation: dovecot Sep 16 23:59:00 hg-gv postfix/smtp: fatal: SASL library initialization
This makes sense, but I need to have dovecot enabled to authenticate SMTP users.
I have no idea what to do about this.