On Thu, Apr 07, 2011 at 12:53:45AM +0300, Tolga wrote:
> I'm planning to stuff a few domains, and I am currently adding
> users/domains virtually (in a mysql table). What I want to do is,
> when I have a user bob and have two domains like example.com and
> example.net, accept e-mail for b...@example.com and reject for
> b...@example.net. How is this possible? Below is my postconf -n
> output:
> 
snip
> virtual_mailbox_domains = bilgisayarciniz.org kunduz.org
> virtual_mailbox_maps = hash:/etc/postfix/vmailbox

If your virtual_mailbox_maps (which, BTW, is *not* in a 
mysql_table(5) lookup) lists for bob@bilgisayarciniz..., but doesn't 
list bob@kunduz..., mail for bob@bilgisayarciniz... is accepted, and 
mail for bob@kunduz... will be rejected as "User unknown in virtual 
mailbox table".

References:
    http://www.postfix.org/VIRTUAL_README.html
    http://www.postfix.org/ADDRESS_CLASS_README.html#virtual_mailbox_class
    http://www.postfix.org/MYSQL_README.html
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to