Hi,

I have a virtual mailbox environment and mailboxes are mapped into postfix
from mysql with the following map:

        virtual_mailbox_maps = proxy:mysql:.../mysql_virtual_mailbox_maps.cf

The map queries the database as such:

        SELECT maildir FROM mailbox WHERE username='%s' AND active = '1'

Right now, when a user is disabled (by setting active = 0), the mailbox is
not given to postfix and a 5.1.1 / unknown user in virtual mailbox table
rejection occurs.  Can someone help or point me in the right direction to
figure out how to check for these disabled boxes and instead send a 4.2.1 or
5.2.1 mailbox disabled reply instead?

Thank you,

Fred Kilbourn

Reply via email to