0

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 example.com, I have a ‘catch-all’ @example.com that forwards to [email protected].

I want to allow an authenticated user to log in as [email protected] to use SMTP (and thus take advantage of SPF validation and DKIM signing), but not allow Postfix to deliver mail sent to [email protected] 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?

1 Answer 1

2

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:

domains: example.com
forwardings: @example.com -> [email protected]
forwardings: [email protected] -> [email protected]
users: [email protected], somepassword

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .