Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server which will try to send mails directly to destination MX servers. But some of them are rejecting the mails due to MTA's poor reputations(thats what they say).

I did every thing to improve reputation, and have no option left.

Only a couple of servers are rejecting our mails. So I thought to use Postmark for sending such mails.

But I need to configure Postfix to use sasl auth only for fallback_relay and not for direct mails to MX server.

Some MX servers are giving error due to this sasl authentication(like hotmail). Google servers are accepting without problem.

#my configuration
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:key:key
smtp_sasl_security_options = noanonymous
fallback_relay = []:25
share|improve this question
up vote 1 down vote accepted

This is expected behavior when you use a "static" map. Following the manual you need to configure at least a hash map for smtp_sasl_password_maps.

The hash map file should contain one line with   user:password

This uses the sasl only for the specified host.

share|improve this answer
Thank you very much for the answer. I was not aware of this maps till now. I got it working. – Rajesh Jan 9 '12 at 1:53

I ran into the same issue. Just to expand on mailq's answer, and give it a little more detail, here is exactly what I did to solve my issue.

# old
smtp_sasl_password_maps = static:username:password

# new
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_password_maps

To generate the smtp_sasl_password_maps.db file, you need to create a text file with the following: = username:password

Note the lack of the "static" prefix here. From there, you just run (as root):

postmap /etc/postfix/smtp_sasl_password_maps
service postfix restart

The key here is that if there is not hostname match in the SASL password map, then it proceeded without authentication.

If no username:password entry is found, then the Postfix SMTP client will not attempt to authenticate to the remote host.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.