aboutsummaryrefslogtreecommitdiffstats
path: root/bin/genaliases
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2011-04-16 09:40:26 -0700
committerMark Sapiro <msapiro@value.net>2011-04-16 09:40:26 -0700
commite45a9c8bed898479b44326d09efc5a22bf42f2c5 (patch)
tree45a14859067787eb8d0b5c92b6751f91b6ff0cc0 /bin/genaliases
parentfa589b5e9dfaa1a90255dff2448e4998353ce389 (diff)
downloadmailman2-e45a9c8bed898479b44326d09efc5a22bf42f2c5.tar.gz
mailman2-e45a9c8bed898479b44326d09efc5a22bf42f2c5.tar.xz
mailman2-e45a9c8bed898479b44326d09efc5a22bf42f2c5.zip
Changed bin/genaliases to only call the POSTFIX_*_CMD commands once when
MTA = 'Postfix'. Bug #266408.
Diffstat (limited to '')
-rw-r--r--bin/genaliases6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/genaliases b/bin/genaliases
index 0a1a3dae..77bc2907 100644
--- a/bin/genaliases
+++ b/bin/genaliases
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2011 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -113,8 +113,10 @@ def main():
# Be verbose for only the first printed list
quiet = True
finally:
- os.umask(omask)
lock.unlock(unconditionally=True)
+ # Postfix has not been updating the maps. This call will do it.
+ MTA.create(None, quiet=True)
+ os.umask(omask)