diff options
| author | Barry Warsaw | 2011-01-02 23:52:22 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2011-01-02 23:52:22 -0500 |
| commit | 5d0d6a5afa34c61630a6442006e9ff2b87fb0c8d (patch) | |
| tree | 6296162e7f68e2af68f7ed8ab9ccc7f1394ec084 /src/mailman/mta/base.py | |
| parent | 1b8c94f4ad4730b3251c9efd667db27245105b6c (diff) | |
| download | mailman-5d0d6a5afa34c61630a6442006e9ff2b87fb0c8d.tar.gz mailman-5d0d6a5afa34c61630a6442006e9ff2b87fb0c8d.tar.zst mailman-5d0d6a5afa34c61630a6442006e9ff2b87fb0c8d.zip | |
Diffstat (limited to 'src/mailman/mta/base.py')
| -rw-r--r-- | src/mailman/mta/base.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman/mta/base.py b/src/mailman/mta/base.py index d1033eb87..e90fbcf8f 100644 --- a/src/mailman/mta/base.py +++ b/src/mailman/mta/base.py @@ -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. |
