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 just setup my debian mailserver using postfix, dovecot and SASL as explained in this excellent tutorial. I have used postfixadmin to setup a virtual list of aliases for sending to their email (for example, This works for receiving but for sending out with their new email I need to authenticate them. Question is, where does this authentication come from? Because they're aliases they do not have an account on the server! Can anyone help?

share|improve this question

You need to do three things, create a file (or DB) with domain username:password style entries, postmap (or create a query that will find the info) that file, then tell postfix to use those entries when sending to servers who need them:

smtp_sasl_auth_enable = yes # you should have this already
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_passwd # this is the postmap variety smtp_sasl_password_maps = mysql:/etc/postfix/mysql_sasl_passwd # MySQL version

Read more Here

share|improve this answer
I have smtpd_sasl_auth_enable = yes, but not without the d! – ing0 Mar 18 '13 at 15:12
Thanks for the help, attempting now! :D – ing0 Mar 18 '13 at 15:12
Yeah, just create a table, and follow the model of other tables and queries.. I'm trying to find out what postfix wants in terms of responses. – NickW Mar 18 '13 at 15:15
Cool thanks. I'm probably going to use the postmap just because our Mysql server is not localhost. Trying not to complicate things! – ing0 Mar 18 '13 at 15:19
There's something for you to follow here:… in the comments :) – NickW Mar 18 '13 at 15:22

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.