599 acc.setPassword(self.__pwhash(password)) |
599 acc.setPassword(self.__pwhash(password)) |
600 acc.save(self.__Cfg.get('maildir', 'name'), |
600 acc.save(self.__Cfg.get('maildir', 'name'), |
601 self.__Cfg.getboolean('services', 'smtp'), |
601 self.__Cfg.getboolean('services', 'smtp'), |
602 self.__Cfg.getboolean('services', 'pop3'), |
602 self.__Cfg.getboolean('services', 'pop3'), |
603 self.__Cfg.getboolean('services', 'imap'), |
603 self.__Cfg.getboolean('services', 'imap'), |
604 self.__Cfg.getboolean('services', 'managesieve')) |
604 self.__Cfg.getboolean('services', 'sieve')) |
605 self.__mailDirMake(acc.getDir('domain'), acc.getUID(), acc.getGID()) |
605 self.__mailDirMake(acc.getDir('domain'), acc.getUID(), acc.getGID()) |
606 |
606 |
607 def aliasAdd(self, aliasaddress, targetaddress): |
607 def aliasAdd(self, aliasaddress, targetaddress): |
608 alias = self.__getAlias(aliasaddress, targetaddress) |
608 alias = self.__getAlias(aliasaddress, targetaddress) |
609 alias.save(long(self._postconf.read('virtual_alias_expansion_limit'))) |
609 alias.save(long(self._postconf.read('virtual_alias_expansion_limit'))) |