I just moved a Mailman setup from one server to another.  This is
Mailman 2.1.12, with one modification, described in this message:[1]
Basically, I change the Sender header in SMTPDirect.py so it comes
from the -admin address rather than the -bounce address:

    # msg['Sender'] = envsender
    msg['Sender'] = mlist.getListAddress('admin')

The new server has two network interfaces.  Each interface has its own
IP.  The second interface has a single IP, call it 127.0.0.2, with two
hostnames mapped to it:

  intranet.foo.org. A 127.0.0.2
  lists.foo.org A 127.0.0.2

The reverse DNS mapping for 127.0.0.2 points to intranet.foo.org.

I've set the host_name for all the lists to be 'lists.foo.org'.  I
also set DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST to 'lists.foo.org'.
I also ran fix_url for all the lists.

Everything is working fine, except for one problem: the Sender: header
in messages is '[email protected]' rather than the
desired '[email protected]'.

I added this to mm_cfg.py, but it didn't help:

  DEFAULT_EMAIL_HOST = 'lists.foo.org'
  DEFAULT_URL_HOST = 'lists.foo.org'
  add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)


The weird thing is that if I use withlist, it tells me the list
address is 'lists.foo.org' (I've obfuscated the hostname consistent
with the rest of this message):

$ withlist -l test
Loading list test (locked)
The variable `m' is the test MailList instance
>>> m.getListAddress('admin')
'[email protected]'
>>> m.getListAddress()
'[email protected]'
>>>

I undid my patch as a sanity check, but it does what I'd expect: the
Sender: header is now "[email protected]" rather than
"[email protected]", but not "[email protected]".

Any ideas?  Thanks.

-David

[1] http://mail.python.org/pipermail/mailman-users/2009-March/065568.html

-- 
David Eisner     http://cradle.brokenglass.com
------------------------------------------------------
Mailman-Users mailing list [email protected]
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

Reply via email to