在建立用户(aabbcc)时使用:
./create_mail_user_MySQL.sh xxx.com aabbcc
然后出让你在MYSQL中导入output.sql,内容为:
INSERT INTO mailbox (username, password, name, storagebasedirectory, maildir, quota, domain, active)
VALUES (’aabbcc@it.bond520.com’, ‘$1$PUwpks0V$65/rto/ZgYz8vcqLSB8Ns.’, ‘aabbcc’, ‘/var/vmail/vmail01′, ‘xxx.com/a/aa/aab/aabbcc-2010.04.15.14.57.40/’, ‘100′, ‘xxx.com’, ‘1′);
导入之后,你会发现根本没法使用,这时你只要再导入以下这句话就可以用了。
INSERT INTO alias(address,goto, domain, active)
VALUES (’aabbcc@xxx.com’,'aabbcc@xxx.com’, xxx.com’, ‘1′)
附件:一个修改后的SH执行句,可以方便一次性导入,解决iRedMail本身mailbox,alias设计问题的BUG

