[Mailman-Users] Program to Change List Real Name
Mailman Folks, Who do I convert these manual instructions into a program? bin/withlist bar m.real_name='bar' m.Lock() m.Save() m.Unlock() ^D Thanks. Jim -- 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
[Mailman-Users] problem with mailman handling incomming mail
Hi! I have mailman installed on my freebsd server. I am running postfix+dovecot with mysql support for my mail server. Everything is working perfectly except mailman gives error on incomming mail. Here is the error (I replaced my real domain name in the error message with mydomain.org): *This is the mail system at host mail.mydomain.org. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system |/usr/local/mailman/mail/mailman post mailman@mail.mydomain.org (expanded from mail...@mail.mydomain.org): unknown user: |/usr/local/mailman/mail/mailman post mailman* Can someone help me please!! -- Maxime Longuepee -- 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] error on attempting t start mailman
On 6/1/11 10:23 PM, Steven Jones wrote: Starting mailman: Site list is missing: mailman mailmanctl can't find the file /var/lib/mailman/lists/mailman/config.pck. -- 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] problem with mailman handling incomming mail
On 6/1/11 6:50 AM, Maxime Longuepee wrote: The mail system |/usr/local/mailman/mail/mailman post mailman@mail.mydomain.org (expanded from mail...@mail.mydomain.org): unknown user: |/usr/local/mailman/mail/mailman post mailman* Postfix is apparently trying to deliver to the alias via a transport that doesn't do pipe delivery, i.e. some transport other than 'local'. We need to see the output from 'postconf -n' to say more. -- 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
[Mailman-Users] Cannot Lock Mailing Lists
Mailman Gurus, I'm running Mailman 2.1.14 CPanel Version. When I try to update a mailing list with config_list or with_list, the program hangs. # ../bin/withlist fuustl-coffeehourchat_lists.firstuustlouis.org Loading list fuustl-coffeehourchat_lists.firstuustlouis.org (unlocked) The variable `m' is the fuustl-coffeehourchat_lists.firstuustlouis.org MailList instance m.real_name = 'fuustl-coffeehourchat' m.Lock() [never returns] I tried retarting Mailman. How do I get Mailman to allow updates? Jim -- 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] Program to Change List Real Name
On 6/1/11 8:51 PM, UUN Hostmaster wrote: Mailman Folks, Who do I convert these manual instructions into a program? bin/withlist bar m.real_name='bar' m.Lock() m.Save() m.Unlock() ^D First of all, that is wrong. the m.Lock() will reload the list object and undo the m.real_name='bar'. Just add -l to the withlist command and don't do either m.Lock() or m.Unlock(). To make a script, put something like def rename_list(mlist): if not mlist.Locked(): mlist.Lock() mlist.real_name = mlist.internal_name() mlist.Save() mlist.Unlock() in a file named rename_list.py in Mailman's bin/ directory and then you can run bin/withlist -r rename_list bar However, if this is cPanel there may be problems with the above. -- 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] Cannot Lock Mailing Lists
On 6/2/11 8:00 AM, UUN Hostmaster wrote: # ../bin/withlist fuustl-coffeehourchat_lists.firstuustlouis.org Loading list fuustl-coffeehourchat_lists.firstuustlouis.org (unlocked) The variable `m' is the fuustl-coffeehourchat_lists.firstuustlouis.org MailList instance m.real_name = 'fuustl-coffeehourchat' m.Lock() [never returns] Lock() never returns because the list is already locked by another (possibly defunct) process. See the FAQ at http://wiki.list.org/x/noA9 for what to do. -- 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] problem with mailman handling incomming mail
Hi Mark! Thanks for your reply! Here is the output of postconf -n: address_verify_map = btree:/var/spool/postfix/address_verify broken_sasl_auth_clients = yes command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/spool/postfix debug_peer_level = 2 disable_vrfy_command = yes html_directory = no inet_interfaces = $myhostname, localhost invalid_hostname_reject_code = 450 mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man maps_rbl_reject_code = 450 mydestination = mail.mydomain.org, localhost.mydomain.org, localhost, mail myhostname = mail.mydomain.org mynetworks = 127.0.0.1, mail.mydomain.org mynetworks_style = host myorigin = mail.mydomain.org newaliases_path = /usr/local/bin/newaliases non_fqdn_reject_code = 450 owner_request_special = no queue_directory = /var/spool/postfix readme_directory = no recipient_delimiter = + sample_directory = /usr/local/etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = maildrop smtp_tls_cert_file = /etc/ssl/server.crt smtp_tls_key_file = /etc/ssl/server.key smtp_tls_security_level = may smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_tls_session_cache smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce,permit smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticatedpermit_tls_clientcerts reject_unauth_destinationreject_invalid_helo_hostname reject_non_fqdn_senderreject_non_fqdn_recipient reject_rbl_client cbl.abuseat.orgreject_rbl_client list.dsbl.org reject_rbl_client opm.blitzed.orgreject_rbl_client sbl.spamhaus.orgreject_rbl_client bl.spamcop.net reject_rbl_client dnsbl.sorbs.net=127.0.0.2reject_rbl_client dnsbl.sorbs.net=127.0.0.3reject_rbl_client dnsbl.sorbs.net=127.0.0.4reject_rbl_client dnsbl.sorbs.net=127.0.0.5reject_rbl_client dnsbl.sorbs.net=127.0.0.7reject_rbl_client dnsbl.sorbs.net=127.0.0.9reject_rbl_client dnsbl.sorbs.net=127.0.0.11reject_rbl_client dnsbl.sorbs.net=127.0.0.12 smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_tls_ask_ccert = yes smtpd_tls_cert_file = /etc/ssl/server.crt smtpd_tls_key_file = /etc/ssl/server.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_session_cache tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 virtual_alias_maps = mysql:$config_directory/mysql_virtual_alias_maps.cf,hash:/usr/local/mailman/data/aliases virtual_gid_maps = static:6 virtual_mailbox_base = /usr/vmail virtual_mailbox_domains = mysql:$config_directory/mysql_virtual_domains_maps.cf virtual_mailbox_maps = mysql:$config_directory/mysql_virtual_mailbox_maps.cf virtual_minimum_uid = 143 virtual_transport = dovecot virtual_uid_maps = static:143 On Thu, 02 Jun 2011 07:40:43 -0700, Mark Sapiro m...@msapiro.net wrote: On 6/1/11 6:50 AM, Maxime Longuepee wrote: The mail system |/usr/local/mailman/mail/mailman post mailman@mail.mydomain.org (expanded from mail...@mail.mydomain.org): unknown user: |/usr/local/mailman/mail/mailman post mailman* Postfix is apparently trying to deliver to the alias via a transport that doesn't do pipe delivery, i.e. some transport other than 'local'. We need to see the output from 'postconf -n' to say more. -- 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] problem with mailman handling incomming mail
On 6/2/11 8:13 AM, Maxime Longuepee wrote: Here is the output of postconf -n: [...] virtual_alias_maps = mysql:$config_directory/mysql_virtual_alias_maps.cf,hash:/usr/local/mailman/data/aliases This is wrong. You need to add hash:/usr/local/mailman/data/aliases to alias_maps, not to virtual_alias_maps. Probably something like alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases Then you need virtual_alias_maps = mysql:$config_directory/mysql_virtual_alias_maps.cf,hash:/usr/local/mailman/data/virtual-mailman and if it isn't already there, you need POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail.mydomain.org'] in mm_cfg.py, and if that wasn't already there, you need to run Mailman's bin/genaliases to create the virtual-mailman* files. -- 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] error on attempting t start mailman
So the file is there.how to I get it to find it again? Also I suspect its the same with all the lists. regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 2:34 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/1/11 10:23 PM, Steven Jones wrote: Starting mailman: Site list is missing: mailman mailmanctl can't find the file /var/lib/mailman/lists/mailman/config.pck. -- 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] error on attempting t start mailman
On 6/2/2011 12:55 PM, Steven Jones wrote: So the file is there.how to I get it to find it again? Also I suspect its the same with all the lists. Probably it is all lists. The first thing mailmanctl does is set its user and group to those of Mailman. So there are two possibilities. Either 'mailman' doesn't have sufficient access to even 'see' /var/lib/mailman/lists/*/config.pck. The permissions and ownership on /var/lib/mailman should be drwxrwsr-x mailman mailman check that, and if that doesn't solve your issue, run Mailman's bin/check_perms -f as root. If that still doesn't solve it, look at Mailman/Defaults.py for the definition of PREFIX and VAR_PREFIX to ensure they are what you think they are. -- 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] Program to Change List Real Name
On 6/1/11 8:51 PM, UUN Hostmaster wrote: Mailman Folks, Who do I convert these manual instructions into a program? bin/withlist bar m.real_name='bar' m.Lock() m.Save() m.Unlock() ^D First of all, that is wrong. the m.Lock() will reload the list object and undo the m.real_name='bar'. Just add -l to the withlist command and don't do either m.Lock() or m.Unlock(). To make a script, put something like def rename_list(mlist): if not mlist.Locked(): mlist.Lock() mlist.real_name = mlist.internal_name() mlist.Save() mlist.Unlock() in a file named rename_list.py in Mailman's bin/ directory and then you can run bin/withlist -r rename_list bar However, if this is cPanel there may be problems with the above. Mark, Thank you. What kinds of problems do you anticipate with cPanel Mailman? I looked at the config_list of a CPanel Mailman mailing list: list-name_domain-name.tld. It appears like a normal Mailing installation except that the real_name = list-name Otherwise, the folders and files are named list-name_domain-name.tld I am migrating some Majordomo Mailing lists to a CPanel Mailman installation. Thanks. Jim Jim -- 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] Program to Change List Real Name
On 6/2/2011 2:13 PM, UUN Hostmaster wrote: Mark Sapiro wrote: However, if this is cPanel there may be problems with the above. What kinds of problems do you anticipate with cPanel Mailman? I looked at the config_list of a CPanel Mailman mailing list: list-name_domain-name.tld. It appears like a normal Mailing installation except that the real_name = list-name Otherwise, the folders and files are named list-name_domain-name.tld That's the point. The script I posted with mlist.real_name = mlist.internal_name() will set real_name to the list-name_domain-name.tld name rather than just list-name. I am migrating some Majordomo Mailing lists to a CPanel Mailman installation. So what are you really trying to accomplish? If you create the lists with cPanel's list create process (as opposed to Mailman's bin/newlist) they should get the appropriate real_name. If you explain in more detail what you are doing and what needs to be fixed about the lists' real_name, I can give you a script to do it. If the issue is that you have lists with real_name = list-name_example.com and you want to change real_name to just list-name, put the following script in /usr/local/cpanel/3rdparty/mailman/bin/rename_list.py def rename_list(mlist): if not mlist.Locked(): mlist.Lock() listfullname = mlist.internal_name() last_underscore = listfullname.rfind('_'); if last_underscore 0: listname = listfullname[0:last_underscore] else: listname = listfullname mlist.real_name = listname mlist.Save() mlist.Unlock() You can then run that with bin/withlist -r rename_list foo_example.com to do the foo_example.com list or bin/withlist -r rename_list -a to do all 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] error on attempting t start mailman
Fixed the first one.tried restarting, same message.did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start. PREFIX = /usr/lib/mailman VAR_PREFIX = /var/lib/mailman I think these are correct regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 8:54 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/2011 12:55 PM, Steven Jones wrote: So the file is there.how to I get it to find it again? Also I suspect its the same with all the lists. Probably it is all lists. The first thing mailmanctl does is set its user and group to those of Mailman. So there are two possibilities. Either 'mailman' doesn't have sufficient access to even 'see' /var/lib/mailman/lists/*/config.pck. The permissions and ownership on /var/lib/mailman should be drwxrwsr-x mailman mailman check that, and if that doesn't solve your issue, run Mailman's bin/check_perms -f as root. If that still doesn't solve it, look at Mailman/Defaults.py for the definition of PREFIX and VAR_PREFIX to ensure they are what you think they are. -- 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] error on attempting t start mailman
To add mailman will not start, still. regards From: mailman-users-bounces+steven.jones=vuw.ac...@python.org [mailman-users-bounces+steven.jones=vuw.ac...@python.org] on behalf of Steven Jones [steven.jo...@vuw.ac.nz] Sent: Friday, 3 June 2011 10:58 a.m. To: Mark Sapiro Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman Fixed the first one.tried restarting, same message.did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start. PREFIX = /usr/lib/mailman VAR_PREFIX = /var/lib/mailman I think these are correct regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 8:54 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/2011 12:55 PM, Steven Jones wrote: So the file is there.how to I get it to find it again? Also I suspect its the same with all the lists. Probably it is all lists. The first thing mailmanctl does is set its user and group to those of Mailman. So there are two possibilities. Either 'mailman' doesn't have sufficient access to even 'see' /var/lib/mailman/lists/*/config.pck. The permissions and ownership on /var/lib/mailman should be drwxrwsr-x mailman mailman check that, and if that doesn't solve your issue, run Mailman's bin/check_perms -f as root. If that still doesn't solve it, look at Mailman/Defaults.py for the definition of PREFIX and VAR_PREFIX to ensure they are what you think they are. -- 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/steven.jones%40vuw.ac.nz -- 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] error on attempting t start mailman
On 6/2/2011 3:58 PM, Steven Jones wrote: Fixed the first one.tried restarting, same message.did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start. PREFIX = /usr/lib/mailman VAR_PREFIX = /var/lib/mailman I think these are correct What does sudo -u mailman ls -l /var/lib/mailman/lists/mailman/config.pck do? -- 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] error on attempting t start mailman
-rw-rw. 1 mailman mailman 3902 Jun 2 12:00 /var/lib/mailman/lists/mailman/config.pck From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 11:12 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/2011 3:58 PM, Steven Jones wrote: Fixed the first one.tried restarting, same message.did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start. PREFIX = /usr/lib/mailman VAR_PREFIX = /var/lib/mailman I think these are correct What does sudo -u mailman ls -l /var/lib/mailman/lists/mailman/config.pck do? -- 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] error on attempting t start mailman
On 6/2/2011 4:54 PM, Steven Jones wrote: -rw-rw. 1 mailman mailman 3902 Jun 2 12:00 /var/lib/mailman/lists/mailman/config.pck So it looks like the 'mailman' user can access the config.pck. So, how are you starting Mailman. Are you running /var/lib/mailman/bin/mailmanctl start Or something like service mailman start If the latter, what does the /etc/init.d/mailman script do? -- 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] error on attempting t start mailman
Hi, Service mailman restart Here is the startup script, = #!/bin/sh # # mailmanThis shell script starts and stops GNU Mailman. # # Copyright (C) 2001-2003 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Copy this file to /etc/init.d/ (or /etc/rc.d/init.d/ depending on # your system) and activate it as such: # # On Debian, type update-rc.d mailman defaults # On RedHat, and derivatives, install with chkconfig --add mailman # # chkconfig: - 98 12 # description: Mailman is the GNU Mailing List Manager, a program that \ # manages electronic mail discussion groups. For more \ # on GNU Mailman see http://www.list.org # processname: mailmanctl # config: /usr/lib/mailman/Mailman/mm_cfg.py # pidfile: /var/run/mailman/master-qrunner.pid ### BEGIN INIT INFO # Provides: mailman # Required-Start: $local_fs $remote_fs $network $named # Should-Start: httpd # Required-Stop: $local_fs $remote_fs $network # Default-Stop: 0 1 3 4 5 6 # Short-Description: start and stop Mailman # Description: Mailman is the GNU mailing list manager. ### END INIT INFO MAILMANHOME=/usr/lib/mailman MAILMANCTL=$MAILMANHOME/bin/mailmanctl # We used to install the mailman cron jobs when the mailman rpm was # installed, irrespective of whether mailman was actually being # run. Although the cron jobs didn't create any problems if someone # wasn't running mailman some users complained about the cron log file # filling up, resource usage, and power consumption since systems # wouldn't really idle. It really only makes sense to run the mailman # cron jobs if the mailman service is turned on and not just merely # having the rpm installed. This init.d script is an obvious place to # install or remove the cron jobs based on the service being enabled # or not. SRC_CRON_SCRIPT=$MAILMANHOME/cron/crontab.in DST_CRON_SCRIPT=/etc/cron.d/mailman function InstallCron() { install -m644 -o root -g root $SRC_CRON_SCRIPT $DST_CRON_SCRIPT } function RemoveCron() { cat $DST_CRON_SCRIPT EOF # DO NOT EDIT THIS FILE! # # Contents of this file managed by /etc/init.d/mailman # Master copy is /usr/lib/mailman/cron/crontab.in # Consult that file for documentation EOF } # Source function library. . /etc/rc.d/init.d/functions RETVAL=0 prog=mailman function start() { echo -n $Starting $prog: mailman-update-cfg daemon $MAILMANCTL -s -q start RETVAL=$? if [ $RETVAL -eq 0 ] then touch /var/lock/subsys/$prog InstallCron else RETVAL=6 fi echo return $RETVAL } function stop() { if [ -f /var/lock/subsys/$prog ] then echo -n $Shutting down $prog: mailman-update-cfg daemon $MAILMANCTL -q stop RETVAL=$? if [ $RETVAL -eq 0 ] then rm -f /var/lock/subsys/$prog RemoveCron fi echo else echo $$prog already stopped. RETVAL=0 fi return $RETVAL } function restart() { stop start RETVAL=$? return $RETVAL } case $1 in 'start') start RETVAL=$? ;; 'stop') stop RETVAL=$? ;; 'restart'|'force-reload') restart RETVAL=$? ;; 'condrestart'|'try-restart') $MAILMANCTL -q -u status retval=$? if [ $retval -eq 0 ] then restart RETVAL=$? fi ;; 'status') output=$($MAILMANCTL -u status) RETVAL=$? if [ $RETVAL -eq 3 -a -f /var/lock/subsys/$prog ] then echo $$prog dead but subsys locked RETVAL=2 else echo $output fi ;; *) echo $Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status} RETVAL=2 ;; esac exit $RETVAL = regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 12:03 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/2011 4:54 PM, Steven Jones wrote: -rw-rw. 1 mailman mailman 3902 Jun 2 12:00 /var/lib/mailman/lists/mailman/config.pck So it looks like the 'mailman' user can access the config.pck. So, how are you starting Mailman. Are you running /var/lib/mailman/bin/mailmanctl start Or something like service mailman start If the latter, what does the
Re: [Mailman-Users] error on attempting t start mailman
On 6/2/2011 6:03 PM, Steven Jones wrote: Here is the startup script, [...] MAILMANHOME=/usr/lib/mailman MAILMANCTL=$MAILMANHOME/bin/mailmanctl ASo your script is starting /usr/lib/mailman/bin/mailmanctl rather than /var/lib/mailman/bin/mailmanctl. Presumably the insatllation in /usr/lib/mailman has no 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] Program to Change List Real Name
On 6/2/2011 2:13 PM, UUN Hostmaster wrote: Mark Sapiro wrote: I am migrating some Majordomo Mailing lists to a CPanel Mailman installation. So what are you really trying to accomplish? If you create the lists with cPanel's list create process (as opposed to Mailman's bin/newlist) they should get the appropriate real_name. Mark, I can't use the cPanel Web Interface because I have too many mailing lists to create. If I use the Mailman newlist command to create list-name_domain-name.tld, I need to change the real_name from list-name_domain-name.tld to list-name. Also, I have to create my own entries in the /etc/valiases/domain-name.tld file. I found a program that will extract the needed information from the Majordomo files: majordomo2mailman.pl. I had to modify parts of the program to add the real_name and host_name, so I could create the list-name_domain-name.tld for the newlist command. I modified your python program to fit my needs: def rename_list(mlist): if not mlist.Locked(): mlist.Lock() mlist.real_name = mlist.internal_name().split(_ + mlist.host_name)[0] mlist.Save() mlist.Unlock() It works. Jim -- 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] error on attempting t start mailman
Yes, the lists themselves are under /var.the mailman binaries are under /usr regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 1:08 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/2011 6:03 PM, Steven Jones wrote: Here is the startup script, [...] MAILMANHOME=/usr/lib/mailman MAILMANCTL=$MAILMANHOME/bin/mailmanctl ASo your script is starting /usr/lib/mailman/bin/mailmanctl rather than /var/lib/mailman/bin/mailmanctl. Presumably the insatllation in /usr/lib/mailman has no 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] error on attempting t start mailman
On 6/2/11 6:44 PM, Steven Jones wrote: Yes, the lists themselves are under /var.the mailman binaries are under /usr OK. What does /usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck return. Does it dump a bunch of data that looks like the attributes of a list or something else? -- 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] error on attempting t start mailman
true and false things, 0's 1's etc send_welcome_msg : True, etc so yes its looks like attributes. regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 2:54 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/11 6:44 PM, Steven Jones wrote: Yes, the lists themselves are under /var.the mailman binaries are under /usr OK. What does /usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck return. Does it dump a bunch of data that looks like the attributes of a list or something else? -- 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] error on attempting t start mailman
I have a nasty feeling about selinux will check regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 2:54 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/11 6:44 PM, Steven Jones wrote: Yes, the lists themselves are under /var.the mailman binaries are under /usr OK. What does /usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck return. Does it dump a bunch of data that looks like the attributes of a list or something else? -- 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] error on attempting t start mailman
Looks like it was selinuxi set it to permissive, rebooted and mailman appears to be up... :/ regards From: mailman-users-bounces+steven.jones=vuw.ac...@python.org [mailman-users-bounces+steven.jones=vuw.ac...@python.org] on behalf of Steven Jones [steven.jo...@vuw.ac.nz] Sent: Friday, 3 June 2011 3:04 p.m. To: Mark Sapiro Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman I have a nasty feeling about selinux will check regards From: Mark Sapiro [m...@msapiro.net] Sent: Friday, 3 June 2011 2:54 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/11 6:44 PM, Steven Jones wrote: Yes, the lists themselves are under /var.the mailman binaries are under /usr OK. What does /usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck return. Does it dump a bunch of data that looks like the attributes of a list or something else? -- 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/steven.jones%40vuw.ac.nz -- 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