[Mailman-Users] Change Listname Suffix Separator?
mark at msapiro.net
Tue Feb 12 21:25:47 CET 2013
On 2/12/2013 6:48 AM, Dennis Putnam wrote:
> I have a mail provider that does not allow dashes in mailbox names. I
> have been forced to set up addresses of the form listname.request, etc.
> Since I am using fetchmail I can easily route those addresses to the
> normal mailboxes with the dashes. However, all the mailman messages and
> web addresses are wrong. I am guessing there is no easy way to fix that
> but what is the best way and what files are involved? TIA.
It *think* there are only 3 modules that need changing to do this.
1) If you are using Mailman aliases on your Mailman server (the above
seems to say you might be), there are two places in Mailman/MTA/Utils.py
where you need to change '%s-%s' to '%s.%s' although you probably aren't
using maildir delivery so only the one in the definition of
_makealiases_mailprog really needs to be changed.
2) For the site list, in the definition of get_site_email in
return '%s-%s@%s' % (mm_cfg.MAILMAN_SITE_LIST, extra, hostname)
return '%s.%s@%s' % (mm_cfg.MAILMAN_SITE_LIST, extra, hostname)
3) For the rest, in the definition of getListAddress in
return '%s-%s@%s' % (self.internal_name(), extra, ...
return '%s.%s@%s' % (self.internal_name(), extra, ...
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users