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 with Debian 6 (Squeeze), running Postfix, Dovecot, and using MySQL as the backing store for virtual email accounts.

For my domain, I have a ‘catch-all’ that forwards to

I want to allow an authenticated user to log in as to use SMTP (and thus take advantage of SPF validation and DKIM signing), but not allow Postfix to deliver mail sent to to Dovecot. Configuring a ‘full’ account in the MySQL database causes this to happen, so far as I can tell.

How can I do this? Am I approaching this in the wrong way?

share|improve this question
up vote 2 down vote accepted

Postfix is intelligent enough to not deliver mail to Dovecot if you are forwarding mail for that address.

In practice, this means a minimum of four records are required in the MySQL database:

forwardings: ->
forwardings: ->
users:, somepassword

With this configuration, Postfix will deliver all mail to to, but still allow to log in via SMTP and send outgoing mail, enabling that mail to, e.g. be signed for DKIM.

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.