- 论坛徽章:
- 0
|
用这个方法:
- /home/vpopmail/bin/vmoddomlimits -g r b.com
复制代码
但这样可能发送到a.com也不行了,没有测试过……
如果是为了完全隔离b.com,让他不能往a.com发邮件也是必要的。因为可以避免b.com-->a.com--->internet;
个人理解,看你的具体需求了。
参看一下:
- # /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 )
- 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 )
复制代码
使用该命令后会在你所在b.com/路径下生成一个文件.qmailadmin-limits
你也可以:
- # cp /home/vpopmail/etc/vlimits.default /home/vpopmail/domains/b.com/.qmailadmin-limits
复制代码
然后取消掉下面这行的注释:
disable_external_relay
[ 本帖最后由 busyant 于 2006-11-10 11:19 编辑 ] |
|