From 5cfcdd437814ca5cf95cb9df9ccaac751d979c7f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 29 Nov 2009 12:58:16 -0500 Subject: Put square brackets around the host name to prevent Postfix from doing an MX lookup. --- src/mailman/mta/postfix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2