summaryrefslogtreecommitdiff
path: root/src/mailman/queue/outgoing.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-05-17 15:30:37 -0400
committerBarry Warsaw2011-05-17 15:30:37 -0400
commitae5fe445251b22aaed0a986600b982a27279b2c7 (patch)
tree7332d251c61ad8c6a40ee68826d8b1c13e505dcd /src/mailman/queue/outgoing.py
parentb8e977bfe7b144c690c30a4bc0b94d74a35faeac (diff)
downloadmailman-ae5fe445251b22aaed0a986600b982a27279b2c7.tar.gz
mailman-ae5fe445251b22aaed0a986600b982a27279b2c7.tar.zst
mailman-ae5fe445251b22aaed0a986600b982a27279b2c7.zip
Diffstat (limited to 'src/mailman/queue/outgoing.py')
-rw-r--r--src/mailman/queue/outgoing.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mailman/queue/outgoing.py b/src/mailman/queue/outgoing.py
index dfa60a02d..6a8e2b08d 100644
--- a/src/mailman/queue/outgoing.py
+++ b/src/mailman/queue/outgoing.py
@@ -89,13 +89,12 @@ class OutgoingRunner(Runner, BounceMixin):
# There was a problem connecting to the SMTP server. Log this
# once, but crank up our sleep time so we don't fill the error
# log.
- port = int(config.mta.port)
+ port = int(config.mta.smtp_port)
if port == 0:
- port = 'smtp'
- # Log this just once.
+ port = 'smtp' # Log this just once.
if not self._logged:
log.error('Cannot connect to SMTP server %s on port %s',
- config.mta.host, port)
+ config.mta.smtp_host, port)
self._logged = True
return True
except SomeRecipientsFailed as error: