summaryrefslogtreecommitdiff
path: root/src/mailman/mta/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/mta/base.py')
-rw-r--r--src/mailman/mta/base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mailman/mta/base.py b/src/mailman/mta/base.py
index 2f1470d56..e90fbcf8f 100644
--- a/src/mailman/mta/base.py
+++ b/src/mailman/mta/base.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2010 by the Free Software Foundation, Inc.
+# Copyright (C) 2009-2011 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
@@ -49,9 +49,12 @@ class BaseDelivery:
def __init__(self):
"""Create a basic deliverer."""
+ username = (config.mta.smtp_user if config.mta.smtp_user else None)
+ password = (config.mta.smtp_pass if config.mta.smtp_pass else None)
self._connection = Connection(
config.mta.smtp_host, int(config.mta.smtp_port),
- int(config.mta.max_sessions_per_connection))
+ int(config.mta.max_sessions_per_connection),
+ username, password)
def _deliver_to_recipients(self, mlist, msg, msgdata, recipients):
"""Low-level delivery to a set of recipients.