UGSD wrote: > >I got around the DNS issue with /etc/hosts, may not work in your case, i guess
Yeah, I can do that too. I've actually created another domain that way, but I havent gotten back to debugging yet. >After not being able to create a list, I had another issue (not seen in >2.1.7), where the alias file was created in the form of > >lists.domain1.net=list-name-unsubscribe: "|/path/to/mailman unsubscribe >lists.domain1.net=list-name" > >which mailman did not understand and complained that >"lists.domain1.net=list-name" not found. > >The problem was in Mailman/MTA/Utils.py and _makealiases_mailprog() function, >so i just modified it to accept another variable and use it I'm not sure where the '=' comes from, and I don't know if this is the issue, but Mailman/MTA/Utils.py is one of two modules that had a real conflict when I merged the patches with 2.1.13. The attached MTA_Utils.py.patch.txt patch is (I think) the proper fix. The secton at "@@ -48,13 +54,12 @@" is where the problem was. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
diff -ruN -x'.bzr*' mailman-2.1.13/Mailman/MTA/Utils.py vhost/Mailman/MTA/Utils.py --- mailman-2.1.13/Mailman/MTA/Utils.py 2009-12-22 10:00:43.000000000 -0800 +++ vhost/Mailman/MTA/Utils.py 2010-01-28 14:16:45.046875000 -0800 @@ -23,6 +23,10 @@ from Mailman import mm_cfg +_extensions = ('admin', 'bounces', 'confirm', 'join', 'leave', 'owner', + 'request', 'subscribe', 'unsubscribe', ) + + def getusername(): username = os.environ.get('USER') or os.environ.get('LOGNAME') @@ -35,7 +39,9 @@ -def _makealiases_mailprog(listname): +def _makealiases_mailprog(listname, internal_listname=None): + if not internal_listname: + internal_listname = listname wrapper = os.path.join(mm_cfg.WRAPPER_DIR, 'mailman') # Most of the list alias extensions are quite regular. I.e. if the # message is delivered to listname-foobar, it will be filtered to a @@ -48,13 +54,12 @@ # # We escape a few special characters in the list name in the pipe command # to avoid characters that might split the pipe into two commands. - safename = re.sub('([;|&`$])', r'\\\1', listname) + safename = re.sub('([;|&`$])', r'\\\1', internal_listname) # # Seed this with the special cases. aliases = [(listname, '"|%s post %s"' % (wrapper, safename)), ] - for ext in ('admin', 'bounces', 'confirm', 'join', 'leave', 'owner', - 'request', 'subscribe', 'unsubscribe'): + for ext in _extensions: aliases.append(('%s-%s' % (listname, ext), '"|%s %s %s"' % (wrapper, ext, safename))) return aliases @@ -71,8 +76,7 @@ # Note, don't use this unless your MTA leaves the envelope recipient in # Delivered-To:, Envelope-To:, or Apparently-To: aliases = [(listname, maildir)] - for ext in ('admin', 'bounces', 'confirm', 'join', 'leave', 'owner', - 'request', 'subscribe', 'unsubscribe'): + for ext in _extensions: aliases.append(('%s-%s' % (listname, ext), maildir)) return aliases
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org