Tanstaafl wrote:

>On 2010-05-10 7:20 PM, Mark Sapiro wrote:
>> It turns out there was a Bug/Patch at
>> <https://bugs.launchpad.net/mailman/+bug/328907> which is related to
>> this. I've fixed that for MM 2.1.14 with the attached patch which
>> allows you to specify VIRTUAL_MAILMAN_LOCAL_HOST in mm_cfg.py, and if
>> you do, it will be appended to the local addresses in virtual-mailman.
>
>Great! Assuming you meant VIRTUAL_MAILMAN_LOCAL_DOMAIN (that's what the
>patch refers to),


Yes, that's what I meant. Sorry.


>I have two questions (sorry ;( hopefully these will be
>the last on this topic)...
>
>In order to accomplish my goal, of lists working as
>listn...@example.com, but the local domain in the mail headers showing
>as listn...@lists.example.com instead of the postfix host name of
>listn...@smtp.example.com,
>
>1. Would I set
>
>VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'lists'
>
>or
>
>VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'lists.example.com'
>
>Maybe the comments in mm_cfg.py for this option should provide an
>example for something other than just plain 'localhost'?


All of these would depend on Postfix. If you set

VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'lists'

you will get virtual maps like

listn...@example.com  listn...@lists

and if you set

VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'lists.example.com'

you will get virtual maps like

listn...@example.com  listn...@lists.example.com

and if you set

VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'i_dont_know_what_im_doing'

you will get virtual maps like

listn...@example.com  listn...@i_dont_know_what_im_doing

I would hope that that would be clear from the comment added to
Defaults.py(.in). I'll add a bit more to try to clarify it.



>and
>
>2. Does this require any mods to postfix/main.cf?


Probably. What I think you want is

VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'lists.example.com'

plus whatever is necessary in Postfix to ensure that Postfix treats
lists.example.com as a local domain, i.e. it must directly or
indirectly be in mydestination.

If you were to put

VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'lists'

in mm_cfg.py, I'm gussing that Postfix would append mydomain and try to
deliver to listn...@lists.smtp.example.com in your case which would
probably fail, unless you also added lists to mydestination in which
case, Postfix might be able to deliver to listn...@lists and would
identify it as such in logs and Received: headers.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
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

Reply via email to