Re: Mailman "unkown user" issues. Fixed.
"Simon J. Blandford" <[email protected]>
| Newsgroups | gmane.mail.jamm.user |
|---|---|
| Message-ID | <[email protected]> |
OK I found out where I was going wrong. I was mixing up the alias maps with the virtual alias maps in main.cf. I also didn't know how Mailman handled Postfix virtual domains. Firstly, a line needs to be added to mailman's config file mm_cfg.py... POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domain1.co.uk','domain2.com'] where domain1.co.uk and domain2.com are names of the _virtual_ domains you want Mailman to handle. This is a bit of a pain because it's a manual command-line operation, Jamm won't do it for you. But then, why would it? The lines required in Postfix main.cf are... virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, ldap:accountsmap, ldap:aliases ...and... alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases Check the location of the virtual-mailman and mailman aliases files. The above is true for Mandrake 10. In Mandrake I found the permissions of the mailman alias files either caused Mailman to break during web-based list creation or Postfix to fail due to executing the mailman scripts as the wrong user (Postfix uses the owner of the aliases file to determin the GID of the user). So here is the /var/lib/mailman/data directory listing and owners... -rw-r----- 1 root mail 41 May 31 18:24 adm.pw -rw-rw---- 1 root mail 1865 Jun 10 13:49 aliases -rw-rw---- 1 mail apache 49152 Jun 10 13:49 aliases.db -rw-rw---- 1 mail mail 5 Jun 5 19:39 master-qrunner.pid -rw-r--r-- 1 root mail 14110 May 20 21:27 sitelist.cfg -rw-rw---- 1 root mail 1657 Jun 10 13:45 virtual-mailman -rw-r----- 1 apache mail 49152 Jun 10 13:49 virtual-mailman.db Hope all this helps someone one day... SimonB > I have installed Mailman 2.1.4 from Mandrake 10 Official RPM on my Jamm > server which is based on Mandrake 10 components. > > When I send mail to a list or the list sends welcome messages etc to > Jamm/LDAP users it bounces back with an "unkown user" message because > the list name is not recognised as a user of the virtual domain. It > can"t find (example) listname@virtual_domain_name.com. > > Mailman aliases don"t seem to work with the LDAP domains. > > > One line in main.cf seems to relate to mailman... > alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases > > > The contents of this file is auto-generated by Mailman and seems to be > similar to what I have seen Mailman generate before e.g (extract).... > # CREATED: Mon May 31 19:04:58 2004 > freds_soap_box: "|/usr/lib/mailman/mail/mailman post > freds_soap_box" > freds_soap_box-admin: "|/usr/lib/mailman/mail/mailman admin > freds_soap_box" > freds_soap_box-bounces: "|/usr/lib/mailman/mail/mailman bounces > freds_soap_box" > freds_soap_box-confirm: "|/usr/lib/mailman/mail/mailman confirm > freds_soap_box" > freds_soap_box-join: "|/usr/lib/mailman/mail/mailman join > freds_soap_box" > freds_soap_box-leave: "|/usr/lib/mailman/mail/mailman leave > freds_soap_box" > freds_soap_box-owner: "|/usr/lib/mailman/mail/mailman owner > freds_soap_box" > freds_soap_box-request: "|/usr/lib/mailman/mail/mailman request > freds_soap_box" > freds_soap_box-subscribe: "|/usr/lib/mailman/mail/mailman subscribe > freds_soap_box" > freds_soap_box-unsubscribe: "|/usr/lib/mailman/mail/mailman > nsubscribe > freds_soap_box" > # STANZA END: freds_soap_box > > ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org