Thanks Mark for your reply. It is a great help to understand some basic things about mailman.
--- Mark Sapiro <[EMAIL PROTECTED]> wrote: > bijayant kumar wrote: > > > >I have postfix configure for virtual domain. > Whenever > >i add a new list for a new domain, it takes the > >[EMAIL PROTECTED] as a email address for > >newly created list and all the aliases being > generated > >on the basis of previousdomain.com. When i change > the > >default host this list prefers setting from the > >interface, then mails are started to bounce saying > >user unknown in virtual mailbox table. I will > explain > >my problem with the example... > >I have three virtual domain dom1.com, > >dom2.com,dom3.com > >in mm_cfg.py i have > >POSTFIX_STYLE_VIRTUAL_DOMAINS = ['dom1.com'] > >add_virtualhost('lists.bijayant.com', 'dom1.com') > > > >It works fine. lists created takes the address > >[EMAIL PROTECTED] > > > >But when i add a new list say list2 like > > > >POSTFIX_STYLE_VIRTUAL_DOMAINS = > >['dom1.com','dom2.com'] > >add_virtualhost('lists.bijayant.com', 'dom1.com') > >add_virtualhost('lists.bijayant.com', 'dom2.com') > > > >The newly created list2 takes the address > >[EMAIL PROTECTED] > > > Are you sure it isn't the other way around? When you > have > > add_virtualhost('lists.bijayant.com', 'dom1.com') > add_virtualhost('lists.bijayant.com', 'dom2.com') > > The second entry effectively replaces the first > because what they do is > add entries to a Python dictionary (a hash table). > The first argument > is the key and the second is the value. So the first > above makes an > entry with key 'lists.bijayant.com' and value > 'dom1.com' and the > second replaces the value for key > 'lists.bijayant.com' with 'dom2.com' I am not sure about this functionality of python, but what you are saying seems to right. After this explanation, it is little bit clear to me now why the second domain is taking the previous value. But i dont have any other option because i have to use only one url i.e 'lists.bijayant.com'. So all the lists created have to take the same url 'lists.bijayant.com'. > > >when i update hostname setting from the list2 > >Administrative interface, mail start bouncing. > > > If you run Mailman's bin/genaliases after editing > the list's host_name, > that should fix the virtual maps. I have not tried this yet, because list creator is creating the list via the web-interface and he do not have access the box where the mailman is running. I will try this and let you know. > > -- > Mark Sapiro <[EMAIL PROTECTED]> The highway is > for gamblers, > San Francisco Bay Area, California better use > your sense - B. Dylan > > Bijayant Kumar Send instant messages to your online friends http://uk.messenger.yahoo.com ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp