VirtualMailManager/VirtualMailManager.py
changeset 88 b3debcfea7bc
parent 87 f9090d1a0730
child 90 1734eb5101c6
--- a/VirtualMailManager/VirtualMailManager.py	Tue Sep 16 20:03:09 2008 +0000
+++ b/VirtualMailManager/VirtualMailManager.py	Wed Sep 17 02:43:16 2008 +0000
@@ -63,6 +63,7 @@
             self.__Cfg.check()
             self.__cfgSections = self.__Cfg.getsections()
             self.__scheme = self.__Cfg.get('misc', 'passwdscheme')
+            self._postconf = Postconf(self.__Cfg.get('bin', 'postconf'))
         if not sys.argv[1] in ['cf', 'configure']:
             self.__chkenv()
 
@@ -601,7 +602,7 @@
 
     def aliasAdd(self, aliasaddress, targetaddress):
         alias = self.__getAlias(aliasaddress, targetaddress)
-        alias.save()
+        alias.save(long(self._postconf.read('virtual_alias_expansion_limit')))
         gid = self.__getDomain(alias._dest._domainname).getID()
         if gid > 0 and not VirtualMailManager.accountExists(self.__dbh,
         alias._dest) and not VirtualMailManager.aliasExists(self.__dbh,