[Mailman-Users] true virtual hosting with mailman-2.1.5

Christian Anton mail at christiananton.de
Fri Mar 18 15:40:27 CET 2005


Mark Sapiro wrote:

>>Over the UI i can't create a List either. I have the following in my 
>>mm_cfg.py:
>>
>>##################################################
>># Put YOUR site-specific settings below this line.
>>
>>DELIVERY_MODULE = 'SMTPDirect'
>>SMTPHOST = 'localhost'
>>SMTPPORT = 10025
>>SMTP_MAX_RCPTS = 1000
>>MTA = 'Postfix'
>>
>>DEFAULT_EMAIL_HOST = 'gentix.de'
>>DEFAULT_URL_HOST = 'lists.gentix.de'
>>DEFAULT_URL_PATTERN = 'http://%s/mailman/'
>>
>>DEFAULT_SERVER_LANGUAGE = 'de'
>>IMAGE_LOGOS = '/mailmanicons/'
>>
>>POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.citservice.de']
>>
>>I configured a virtual host http://lists.citservice.de and i can access 
>>the cgi's of mailman under the URL http://lists.citservice.de/mailman/. 
>>When I access http://lists.citservice.de/mailman/create and want to 
>>create a new list 'testlist' i get an error:  Error: Unknown virtual 
>>host: lists.citservice.de. What am i doing wrong?
>>    
>>
>
>DEFAULT_URL_PATTERN = 'http://%s/mailman/'
>
>is not needed in mm_cfg.py because it doesn't change the default from
>Defaults.py. However, you need all of the following in mm_cfg.py after
>the DEFAULT_URL_HOST line.
>
>VIRTUAL_HOSTS.clear()
>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>add_virtualhost('lists.citservice.de', 'citservice.de')
>
>assuming that citservice.de is the correct e-mail host to go with
>lists.citservice.de. Also, the POSTFIX_STYLE_VIRTUAL_DOMAINS should be
>['citservice.de'] unless the e-mail host really is
>'lists.citservice.de' in which case the second add_virtualhost()
>should be
>
>add_virtualhost('lists.citservice.de', 'lists.citservice.de')
>
>--
>Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
>San Francisco Bay Area, California    better use your sense - B. Dylan
>
>
>  
>
I updated my config as follows:

DELIVERY_MODULE = 'SMTPDirect'
SMTPHOST = 'localhost'
SMTPPORT = 10025
SMTP_MAX_RCPTS = 1000
MTA = 'Postfix'

DEFAULT_EMAIL_HOST = 'gentix.de'
DEFAULT_URL_HOST = 'lists.gentix.de'

VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('lists.citservice.de', 'lists.citservice.de')

DEFAULT_SERVER_LANGUAGE = 'de'
IMAGE_LOGOS = '/mailmanicons/'

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.citservice.de']

I really want to use 'lists.citservice.de' as email host. Adding a new 
list with the shell command
'newlist liste2 at lists.citservice.de' creates a new list, very fine. I 
get the message from mailman that my new list is created. But the 
automatically created virtual_mailman file is wrong format:

liste2-lists.citservice.de at lists.citservice.de              
liste2-lists.citservice.de
liste2-lists.citservice.de-admin at lists.citservice.de        
liste2-lists.citservice.de-admin
liste2-lists.citservice.de-bounces at lists.citservice.de      
liste2-lists.citservice.de-bounces
liste2-lists.citservice.de-confirm at lists.citservice.de      
liste2-lists.citservice.de-confirm
liste2-lists.citservice.de-join at lists.citservice.de         
liste2-lists.citservice.de-join
liste2-lists.citservice.de-leave at lists.citservice.de        
liste2-lists.citservice.de-leave
liste2-lists.citservice.de-owner at lists.citservice.de        
liste2-lists.citservice.de-owner
liste2-lists.citservice.de-request at lists.citservice.de      
liste2-lists.citservice.de-request
liste2-lists.citservice.de-subscribe at lists.citservice.de    
liste2-lists.citservice.de-subscribe
liste2-lists.citservice.de-unsubscribe at lists.citservice.de  
liste2-lists.citservice.de-unsubscribe

when it would have to be
liste2 at lists.citservice.de  liste2-lists.citservice.de
liste2-admin at lists.citservice.de  liste2-lists.citservice.de-admin

Can you tell me what i didn't understand?

Thank you very much


Christian



More information about the Mailman-Users mailing list