Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
On Fri, 9 Jul 2010 18:20:25 -0700 you wrote: You have only set one host. The default host has web domain 'example.org' and email domain 'lists.example.org'. The only lists for which Mailman will create virtual-mailman entries are those whose email domain is 'example.org' or 'example2.de'. At a minimum, you want to put something like add_virtualhost('www.example2.de', 'example2.de') following the add_virtualhost() for the default domains. OK, again, if I have 3 virtual domains on it: example1.org example2.org example3.org and i want to have for each domain a separate list: list1 on example1.org list2 on example2.org list3 on example3.org The emailhost of each of those lists should be like lists.example1.org lists.example2.org lists.example3.org So is this the right setting: POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example1.org', 'example2.org', 'example3.org'] add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) add_virtualhost('example1.org', 'lists.example1.org') add_virtualhost('example2.org', 'lists.example2.org') add_virtualhost('example3.org', 'lists.example3.org') ? In Postfix i put: alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases relay_domains = lists.example1.org,lists.example2.org,lists.example3.org mydestination = lists.example1.org, lists.example2.org, lists.example3.org, example1.org, example2.org, example3.org, localhost virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf,hash:/var/lib/mailman/data/virtual-mailman is this right? I wonder if i want to add a new virtual domain, now i have to change a lot in mm_cfg.py (mailman) and also in main.cf (postfix). And only then i can run: newlist --urlhost=example4.org --emailhost=lists.example4.org list4 This seems to me much too complicated that i think there must be still many things i didn't get or i set wrong. I think my main problem is, that my origin language is NOT english and i probably just don't understand some important things when i read the doc. And there is NO german doc for mailman. : franc -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
Am Fri, 9 Jul 2010 18:20:25 -0700 schriebst du: Then you could create a list in the example2.de domain either by going to http://www.example2.de/mailman/cgi-bin/create 1. If i want to create a list, there is another mystery, the List creator's password, which i never had given. If i look into the doc in: http://www.list.org/mailman-install/node45.html they send me to (7): http://www.list.org/mailman-install/customizing.html#customizing where there is no mention at all about this. So i had to set it myself with mmsitepass. By the way, it is not .../mailman/cgi-bin but .../cgi-bin/mailman. 3. When i create the new list i get: Bug in Mailman version 2.1.9 We're sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs. But with list_lists i can see that the list was created (without notification mail). Is this true? A bug in Mailman? In the error log of mailman i find: Jul 10 12:07:37 2010 (5257) command failed: /usr/sbin/postmap /var/lib/mailman/data/virtual-mailman (status: 1, Operation not permitted) Jul 10 12:07:37 2010 admin(5257): admin(5257): [- Mailman Version: 2.1.9 -] admin(5257): [- Traceback --] admin(5257): Traceback (most recent call last): admin(5257): File /var/lib/mailman/scripts/driver, line 110, in run_main admin(5257): main() admin(5257): File /usr/lib/mailman/Mailman/Cgi/create.py, line 56, in main admin(5257): process_request(doc, cgidata) admin(5257): File /usr/lib/mailman/Mailman/Cgi/create.py, line 238, in process_request admin(5257): sys.modules[modname].create(mlist, cgi=1) admin(5257): File /usr/lib/mailman/Mailman/MTA/Postfix.py, line 232, in create admin(5257): _update_maps() admin(5257): File /usr/lib/mailman/Mailman/MTA/Postfix.py, line 60, in _update_maps admin(5257): raise RuntimeError, msg % (vcmd, status, errstr) admin(5257): RuntimeError: command failed: /usr/sbin/postmap /var/lib/mailman/data/virtual-mailman (status: 1, Operation not permitted) admin(5257): [- Python Information -] admin(5257): sys.version = 2.5.2 (r252:60911, Jan 20 2010, 21:48:48) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] admin(5257): sys.executable = /usr/bin/python admin(5257): sys.prefix = /usr admin(5257): sys.exec_prefix = /usr admin(5257): sys.path= /usr admin(5257): sys.platform= linux2 admin(5257): [- Environment Variables -] admin(5257):HTTP_COOKIE: ... ... But the rights of virtual-mailman seem ok: ls -l /var/lib/mailman/data/virtual-mailman -rw-rw 1 www-data list 1,6K 2010-07-10 12:07 virtual-mailman But anyway, i can create lists with newlist, i don't need the webinterface, so this is not a big problem. -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
On Sat, 10 Jul 2010, franc walter wrote: 1. If i want to create a list, there is another mystery, the List creator's password, which i never had given. If i look into the doc in: http://www.list.org/mailman-install/node45.html they send me to (7): http://www.list.org/mailman-install/customizing.html#customizing where there is no mention at all about this. So i had to set it myself with mmsitepass. You're right. They should have sent you to section 12 - http://www.list.org/mailman-install/node44.html You'd have already read this if you'd read the manual in sequence. 3. When i create the new list i get: Bug in Mailman version 2.1.9 We're sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs. But with list_lists i can see that the list was created (without notification mail). Is this true? A bug in Mailman? Not in this case. In the error log of mailman i find: Jul 10 12:07:37 2010 (5257) command failed: /usr/sbin/postmap /var/lib/mailman/data/virtual-mailman (status: 1, Operation not permitted) Looks like a permissions problem. But the rights of virtual-mailman seem ok: ls -l /var/lib/mailman/data/virtual-mailman -rw-rw 1 www-data list 1,6K 2010-07-10 12:07 virtual-mailman What about the permissions on /var/lib/mailman/data ? Postmap may not be able to write the output file. Geoff. -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
Am Sat, 10 Jul 2010 14:23:59 +0300 (IDT) schriebst du: What about the permissions on /var/lib/mailman/data ? Postmap may not be able to write the output file. That's it. I put 777 on data and virtual-mailman* and now i can create a list. Thank you for this hint and your patience! But i still have problems: When i create a mailinglist on example2.org test and if i mail to this list, every member should get this mail. But without any error in the logs, this mail just gets swallowed by postfix: This is what i read in mail.log of postfix: Jul 10 14:20:07 example postfix/local[7899]: 62BFB6D0EC00A: to=mail...@lists.example.org, relay=local, delay=0.14, delays=0.01/0.01/0/0.13, dsn=2.0.0, status=sent (delivered to command: /var/lib/mailman/mail/mailman post mailman) Jul 10 14:20:07 example postfix/qmgr[32331]: 62BFB6D0EC00A: removed Jul 10 14:04:52 example postfix/pipe[3852]: 38D176D0EC008: to=t...@example.org, orig_to=t...@lists.example2.de, relay=dovecot, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service) Jul 10 14:04:52 example postfix/qmgr[32331]: 38D176D0EC008: removed instead of given to the command it is given to t...@example.org What could be wrong here? -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
On Sat, 10 Jul 2010, franc walter wrote: OK, again, if I have 3 virtual domains on it: example1.org example2.org example3.org and i want to have for each domain a separate list: list1 on example1.org list2 on example2.org list3 on example3.org The emailhost of each of those lists should be like lists.example1.org lists.example2.org lists.example3.org Do you want the Email addresses for your lists to be listname@lists.example1.org, listname@lists.example2.org, etc? This is what I think you're saying. So is this the right setting: POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example1.org', 'example2.org', 'example3.org'] If what I've written above is indeed what you want, then the postfix_style_virtual_domains will need to include the list. part, as these are the Email host part of the adress. add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) add_virtualhost('example1.org', 'lists.example1.org') add_virtualhost('example2.org', 'lists.example2.org') add_virtualhost('example3.org', 'lists.example3.org') This sets the Email address to be listname@lists.example1.org (etc) and the web URL to be http://example1.org/... Again, is this what you want? In Postfix i put: relay_domains = lists.example1.org,lists.example2.org,lists.example3.org You won't want this. Relay_domains, as I understand them, are domains for which you *relay* mail, not domains you actually host on this host. mydestination = lists.example1.org, lists.example2.org, lists.example3.org, example1.org, example2.org, example3.org, localhost Again, you probably don't want your domains in mydestination if they're virtual. I wonder if i want to add a new virtual domain, now i have to change a lot in mm_cfg.py (mailman) and also in main.cf (postfix). All I have to do when adding a domain is add it to our database via postfixadmin, then edit mm_cfg.py and add a call to add_virtualhost() and also add it to POSTFIX_STYLE_VIRTUAL_DOMAINS. Pretty simple. newlist --urlhost=example4.org --emailhost=lists.example4.org list4 If you have the add_virtual_host items in mm_cfg.py, you should be able to just do: newlist li...@lists.example4.org though I admit to usually using --urlhost and --emailhost anyway just to be sure. HTH, Geoff. -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
Am Thu, 8 Jul 2010 17:19:33 -0700 schriebst du: I'm not sure what you are saying. I just noticed that the path is different. It is the packager, like you said. I.e in the case of the Debian/Ubuntu package, --prefix=/usr/lib/mailman --with-var-prefix=/var/lib/mailman OK, i guess i just have to be careful to doublecheck the right paths. Next difference to Ubuntu is the username, i read in: http://www.list.org/mailman-install/postfix-integration.html Make sure that the owner of the data/aliases and data/aliases.db file is mailman, that the group owner for those files is mailman, or whatever user and group you used in the configure command, and that both files are group writable: % su % chown mailman:mailman data/aliases* % chmod g+w data/aliases* Ubuntu uses list and not mailman. I hope this is not a problem. I thought if the packager (Ubuntu in my case) make such a package available, i just have to install it and all is well, but it is not like this. I have spent many hours till yet to make this work and still it is not running. Now i struggle with the virtual domains: http://www.list.org/mailman-install/postfix-virtual.html -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
On Fri, 9 Jul 2010, franc walter wrote: % chown mailman:mailman data/aliases* % chmod g+w data/aliases* Ubuntu uses list and not mailman. I hope this is not a problem. You will need to chown these files as list.list or at least root.list. I thought if the packager (Ubuntu in my case) make such a package available, i just have to install it and all is well, but it is not like this. This is why I recommended reading the entire manual, skiping only the sections which are obviously irrelevant. For example, the manual will tell you about check_perms. This script is very useful, and good to run at various points during your setup to make sure that everyone is happy. Geoff. -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
franc walter wrote: Am Fri, 9 Jul 2010 19:22:30 +0300 (IDT) schriebst du: Can you post your mm_cfg.py file as it is now? My mm_cfg.py: [...] MAILMAN_SITE_LIST = 'mailman' DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/' PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private' IMAGE_LOGOS = '/images/mailman/' DEFAULT_EMAIL_HOST = 'lists.example.org' DEFAULT_URL_HOST = 'example.org' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) DEFAULT_SERVER_LANGUAGE = 'en' USE_ENVELOPE_SENDER= 0 # Still used? DEFAULT_SEND_REMINDERS = 0 MTA='Postfix' DEFAULT_SERVER_LANGUAGE = 'de' POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.org', 'example2.de'] You have only set one host. The default host has web domain 'example.org' and email domain 'lists.example.org'. The only lists for which Mailman will create virtual-mailman entries are those whose email domain is 'example.org' or 'example2.de'. At a minimum, you want to put something like add_virtualhost('www.example2.de', 'example2.de') following the add_virtualhost() for the default domains. Then you could create a list in the example2.de domain either by going to http://www.example2.de/mailman/cgi-bin/create or via bin/newlist -u www.example2.de and the list will be created with email domain (the list's host_name attribute) example2.de and virtual mappings for the list will be created in data/virtual-mailman (because example2.de is in POSTFIX_STYLE_VIRTUAL_DOMAINS. As it is, your lists are created with email host (host_name) = DEFAULT_EMAIL_HOST = 'lists.example.org' which is not in POSTFIX_STYLE_VIRTUAL_DOMAINS, so no virtual-mailman entries. Do you really want the default lists to have URLs like http://example.org/mailman/cgi-bin/... and email addresses like l...@lists.example.org? If this is the reverse of what you want, you need to reverse your settings for DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST. If you make changes, you will probably need to run fix_url to change the existing lists. -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
franc walter wrote: But i don't send to mail...@lists.example.com but to mail...@example.com, like described in the mailman-welcome-mail. Is this wrong? [...] #- # Default domain for email addresses of newly created MLs DEFAULT_EMAIL_HOST = 'example.org' If you want to use postfix-to-mailman.py as you have set it up, the above needs to be DEFAULT_EMAIL_HOST = 'lists.example.com' (the exact domain in your lists.example.com mailman: entry in /etc/postfix/transport) If you change that and then run /path/to/mailman/bin/withlist -l -a -r fix_url The address in the welcome message will be mail...@lists.example.com. If this is not the domain you want for email, I suggest you forget postfix-to-mailman.py and set up Mailman/Postfix integration as discussed at http://www.list.org/mailman-install/node12.html [..] #- # Uncomment if you use Postfix virtual domains, but be sure to # see /usr/share/doc/mailman/README.Debian first. # fcw: 2010-07-06 Postfix MTA='Postfix' This is irrelevant if you are using postfix-to-mailman.py [...] I think your postconf -n and master.cf are OK for postfix-to-mailman.py as long as you mail to lists @lists.example.com (and change DEFAULT_EMAIL_HOST and run fix_url so your lists know this). -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
franc walter wrote: I am very confused now. Could you indicate me the doc where you followed the installation? I think all you need should be at http://www.list.org/mailman-install/node12.html and the first subsection 6.1.1. -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Recipient address rejected: User unknown invirtualmailbox table
Am Thu, 8 Jul 2010 11:01:13 -0700 schriebst du: I think all you need should be at http://www.list.org/mailman-install/node12.html and the first subsection 6.1.1. OK, i think i won't use this postfix2mailman and do it like you propose. I will tell later if it works, thank you very much till yet!!! yours, franc -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org