cb-wizard, stephdl et al
I'm still thinking that we could provide a nfr about this, the behaviour to allow or not an account to get mails.
There is another way to control user accounts to prevent them from sending any emails.
If you put a users email address in
/var/qmail/control/badmailfrom
This will stop them sending email messages (both locally & externally).
The E-mail WBL panel supports this in the Black List section, in the qmail badmailfrom field.
Obviously intended to block external users from sending spam etc, but it will also block internal users.
Note this only reads the senders email address, so if they spoof their address (change it to something else in the email client that is acceptable to sme server) then they will still be able to send emails. Most users would not know that.
Use this in combination with setting the Visible internal property for that user & I believe that will stop them sending or receiving email messages, both locally & externally.
Unfortunately there is no simple answer (that I know of) to the original question of "allow internal only email for some users & internal & external for other users". I think that may require Postfix or similar.
Actually there may be some ways to achieve what is desired (ie internal mail only & no external), but you will need to experiment & test a bit etc.
See this thread
http://forums.contribs.org/index.php?topic=40449.5& read it all particularly the last few posts, Charlie has some good pointers what to try.