[Mailman-Users] Virtual domains

hjalmar hjalmar.janos at gmail.com
Mon Nov 19 17:32:49 CET 2007


Hi Mark

Thanks for your replay!


Mark Sapiro skrev:
>> We have two domains domain1.com and domain2.com.
>> domain1.com is the primary domain and domain2.com is the virtual one.
>>
>> In my /etc/mailman/mm_cfg.py config I have the following:
>>
>> MTA='Postfix'
>> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.domain1.com', 'lists.domain2.com']
>>     
>
>
> You may or may not want the primary domain listed here. If it is truly
> the primary domain in Postfix, you don't need virtual alias maps for
> that domain.
>
> I suggest you want
>
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.domain2.com']
>
> or if I look at what you have below, I think you want
>
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domain2.com']
>
> i.e., the domain you want there is the virtual email domain.
>   
ok, will test it.

>> In postfix:
>> mydomain = domain1.com
>> myhost = mail.domain1.com
>> mydestination = $myhost, localhost.$mydomain
>> recipient_delimiter = +
>> recive_override_options = no_address_mappings
>>     
>
> I don't think you want the above line.
>   

why? the mailman doc. says to add this line to main.cf.

>> alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
>> alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
>>     
>
> No. You want only
>
> alias_database = hash:/etc/aliases
>
>   
>> virtual_alias_maps = hash:/etc/postfix/virtual,
>> hash:/var/lib/mailman/data/virtual-mailman
>>     
>
>
> You also want
>
> virtual_alias_domains = domain2.com
>
>   
>> Files:
>> /etc/postfix/virtual
>> list-tow at domain2.com     list-tow
>>     
>
> You don't want the above here, you want it below.
>   
>> ...
>>
>> /var/lib/mailman/data/virtual-mailman
>> list-one at domain1.com     list-one
>>     
>
> and you don't want the above here at all. You just want the 10
> addresses per list for the domain2 lists. Mailman will do this for you.
>   

Ok, thanks.


/hj



More information about the Mailman-Users mailing list