Amit Dalia wrote:
There is a option in vqadmin for "Disable email relay".
That's interesting. I don't even have vqadmin installed because it has
some problems with updating things.
After a little digging, I see that the vmoddomlimits command (CLI) can
do some interesting domain related things:
# /home/vpopmail/bin/vmoddomlimits
vmoddomlimits: usage: [options] domain
options: -v ( display the vpopmail version number )
-d ( use the vlimits.default file, instead of domain )
-S ( show current settings )
-D ( delete limits for this domain, i.e. switch to default limits)
-Q quota-in-megabytes ( set domain disk quota, '100' = 100 MB )
-q quota-in-bytes ( set default user quota, '10M' = 10 MB )
-M count ( set domain max msg count )
-m count ( set default user max msg count )
-P count ( set max amount of pop accounts )
-A count ( set max amount of aliases )
-F count ( set max amount of forwards )
-R count ( set max amount of autoresponders )
-L count ( set max amount of mailing lists )
the following options are bit flags in the gid int field
-g "flags" (set flags, see below)
gid flags:
u ( set no dialup flag )
d ( set no password changing flag )
p ( set no pop access flag )
s ( set no smtp access flag )
w ( set no web mail access flag )
i ( set no imap access flag )
r ( set no external relay flag )
c ( set no spamassasssin flag )
x ( set delete spam flag )
the following options are bit flags for non postmaster admins
-p "flags" (set pop account flags)
-a "flags" (set alias flags)
-f "flags" (set forward flags)
-r "flags" (set autoresponder flags)
-l "flags" (set mailinglist flags)
-u "flags" (set mailinglist users flags)
-o "flags" (set mailinglist moderators flags)
-x "flags" (set quota flags)
-z "flags" (set default quota flags)
perm flags:
a ( set deny all flag )
c ( set deny create flag )
m ( set deny modify flag )
d ( set deny delete flag )
Note, I'm sure that message quota settings don't work. This should be
fixed when we upgrade to vpopmail 5.5.x
I suppose that turning off smtp access must be for submission, since
inbound messages wouldn't be authenticating. I wonder if this actually
works. Has anyone used or tested this?
This reminds me of the vmoduser command:
# ./vmoduser
vmoduser: usage: [options] email_addr or domain (for each user in domain)
options: -v ( display the vpopmail version number )
-n ( don't rebuild the vpasswd.cdb file )
-q quota ( set quota )
-c comment (set the comment/gecos field )
-e encrypted_passwd (set the password field )
-C clear_text_passwd (set the password field )
the following options are bit flags in the gid int field
-x ( clear all flags )
-d ( don't allow user to change password )
-p ( disable POP access )
-s ( disable SMTP AUTH access )
-w ( disable webmail [IMAP from localhost*] access )
( * full list of webmail server IPs in vchkpw.c )
-i ( disable non-webmail IMAP access )
-b ( bounce all mail )
-o ( user is not subject to domain limits )
-r ( disable roaming user/pop-before-smtp )
-a ( grant qmailadmin administrator privileges )
-S ( grant system administrator privileges - access all domains )
-E ( grant expert privileges - edit .qmail files )
-f ( disable spamassassin)
-F ( delete spam)
[The following flags aren't used directly by vpopmail but are]
[included for other programs that share the user database.]
-u ( set no dialup flag )
-0 ( set V_USER0 flag )
-1 ( set V_USER1 flag )
-2 ( set V_USER2 flag )
-3 ( set V_USER3 flag )
It appears that SMTP AUTH processing can be disabled on a per-user
basis. This might be preferable to changing the passwords, provided it
works. Once again, I know that quotas don't work (reliably). Does anyone
know if all the other functions work? I haven't used or tested any of them.
--
-Eric 'shubes'
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]