summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw2009-11-29 12:58:16 -0500
committerBarry Warsaw2009-11-29 12:58:16 -0500
commit5cfcdd437814ca5cf95cb9df9ccaac751d979c7f (patch)
tree5ba413e7239181685027282241690e9c968f086c
parentbf6073e9aed5536565f0b822b7b0b901b13bde67 (diff)
downloadmailman-5cfcdd437814ca5cf95cb9df9ccaac751d979c7f.tar.gz
mailman-5cfcdd437814ca5cf95cb9df9ccaac751d979c7f.tar.zst
mailman-5cfcdd437814ca5cf95cb9df9ccaac751d979c7f.zip
-rw-r--r--src/mailman/mta/postfix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/mta/postfix.py b/src/mailman/mta/postfix.py
index 56ede5b45..df5419515 100644
--- a/src/mailman/mta/postfix.py
+++ b/src/mailman/mta/postfix.py
@@ -126,13 +126,13 @@ class LMTP:
# len('-subscribe') + '@'.
longest = len(list_name + domain) + 10
print >> fp, """\
-{0}@{1:{3}}lmtp:{2.mta.lmtp_host}:{2.mta.lmtp_port}""".format(
+{0}@{1:{3}}lmtp:[{2.mta.lmtp_host}]:{2.mta.lmtp_port}""".format(
list_name, domain, config,
# Add 1 because the bare list name has no dash.
longest + 1)
for destination in SUBDESTINATIONS:
print >> fp, """\
-{0}-{1}@{2:{4}}lmtp:{3.mta.lmtp_host}:{3.mta.lmtp_port}""".format(
+{0}-{1}@{2:{4}}lmtp:[{3.mta.lmtp_host}]:{3.mta.lmtp_port}""".format(
list_name, destination, domain, config,
longest - len(destination))
print >> fp