My postfix setup sends all emails through google. Now trying to route some of them through dreamhost.
AUTH from [gmail-smtp.l.google.com]:587 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH AUTH from [smtp.dreamhost.com]:587 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN To send through google, I have this line in main.cf smtp_sasl_mechanism_filter = xoauth2 which breaks sending through dreamhost. I get (SASL authentication failed: server smtp.dreamhost.com[64.90.62.162] offered no compatible authentication mechanisms for this type of connection security) If I remove that line it works through dreamhost, but not through google. I think this could work setting up something like: smtp_sasl_mechanism_filter = hash:/etc/postfix/smtp_mechs but not sure what the "key value" format needs to be. Redirection through google or dreamhost is handle through relayhost = [gmail-smtp.l.google.com]:587 smtp_tls_policy_maps = hash:/etc/postfix/tls_policy smtp_use_tls = yes smtp_tls_security_level = may smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_sender_dependent_authentication = yes sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay /etc/postfix/tls_policy contains the single line: [gmail-smtp.l.google.com]:587 encrypt /etc/postfix/sasl_passwd contains lines like senderN@domain0 login0@domain0:password and [gmail-smtp.l.google.com]:587 login1@domain1:password [smtp.dreamhost.com]:587 longin2@domain2:password /etc/postfix/sender_relay contains lines like senderN@domain0 [gmail-smtp.l.google.com]:587 sender1@domain1 [smtp.dreamhost.com]:587 I've tried in /etc/postfix/smtp_mechs [gmail-smtp.l.google.com]:587 xoauth2 [smtp.dreamhost.com]:587 login, plain but that breaks at least google, didn't try dreamhost. -- Henrique