Hi, Now that 2.0.0 has been released, here is the revised patch for those using dbmail for webmail solutions.
By adding two columns to the users table: webenabled, and popenabled, both boolean fields, you can control access to the mailbox. webenabled = false: no access to the mailbox at all. webenabled = true AND popenabled = false: pop3/imap access only from localhost. popenabled = true: pop3/imap access from anywhere. Useful for temporarily disabling a mailbox, so that mail is still delivered to it, but the user has no access to it. For paid services or users behaving contrary to policy, etc.. dbmail-users cannot be used to change the status, but has to be done thru sql queries, and note that the default values has pop3/imap access disabled completely. Kind regards, John Hansen GeekNET