[Mailman-Users] Getting started with Postfix virtual domains

Mark Sapiro msapiro at value.net
Mon Oct 31 01:05:17 CET 2005


Brian Parish wrote:
>
>OK - my problem is obviously with something that feeds bin/genaliases.  I was 
>interrupted and forgot that this step had problems.  When I run it I get:
>
>Traceback (most recent call last):
>  File "bin/genaliases", line 116, in ?
>    main()
>  File "bin/genaliases", line 106, in main
>    MTA.create(mlist, nolock=True, quiet=quiet)
>  File "/var/mailman/Mailman/MTA/Postfix.py", line 230, in create
>    if mlist and mlist.host_name in mm_cfg.POSTFIX_STYLE_VIRTUAL_DOMAINS:
>TypeError: 'in <string>' requires character as left operand
>
>In mm_cfg.py:
>
>DEFAULT_URL_HOST   = 'www.univexsystems.com'
>DEFAULT_EMAIL_HOST = 'univexhosting.com'
>MTA = 'Postfix'
>POSTFIX_STYLE_VIRTUAL_DOMAINS = 'univexhosting.com'

POSTFIX_STYLE_VIRTUAL_DOMAINS is a list, not a string. You need

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['univexhosting.com']

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




More information about the Mailman-Users mailing list