diff -r 971577b89d26 -r c2e8eab2616d VirtualMailManager/cli/subcommands.py --- a/VirtualMailManager/cli/subcommands.py Tue Aug 10 01:02:21 2010 +0000 +++ b/VirtualMailManager/cli/subcommands.py Tue Aug 10 04:10:54 2010 +0000 @@ -207,6 +207,12 @@ ctx.hdlr.domain_add(ctx.args[2].lower()) else: ctx.hdlr.domain_add(ctx.args[2].lower(), ctx.args[3]) + if not ctx.cget('domain.auto_postmaster'): + return + ctx.scmd = 'useradd' + ctx.args = [prog, ctx.scmd, u'postmaster@' + ctx.args[2].lower()] + ctx.argc = 3 + user_add(ctx) def domain_delete(ctx):