Is this what you are after, Mathew?
This configuration tells Postfix which email addreses are local recipients
for which it should accept and deliver mail.
in main.cf
=======
local_recipient_maps = mysql:/etc/postfix/mailbox.cf
where mailbox.cf looks like this:
====================
user = dbmail
password = dbmail
dbname = dbmail
hosts = localhost
table = dbmail_aliases
select_field = alias
where_field = alias
Mike
I know the Postfix people keep saying never to add virtual domains to
$mydestination. I never quite figured out why, nor did I find a
thorough explanation anywhere. And this is the first example I've seen
of any other configuration that looks like it would actually function
with DBMail.
So my question is, if DBMail is exclusively used for mailboxes on a
virtual host system, what reasons are there for using the above scheme
instead of just adding all the virtual domains to $mydestination? Under
the latter scheme, you can still configure it so that mail to
non-existent addresses still rejects, only local deliveries are allowed,
etc. which seems to be what you need to prevent open relaying.
Just wondering...
--
Will Berry
Co-founder, Second Brain website hosting
http://www.secondbrainhosting.com/