branch | v0.6.x |
changeset 362 | c2e8eab2616d |
parent 361 | 971577b89d26 |
child 366 | d6573da35b5f |
--- 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):