Re: [Mailman-Users] /bin/sh: mailman: command not found
Hi Mark, Thanks for the reply. Here is /etc/cron.d/mailman # # -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- # -- EDIT THE CORRECT FILE - # # This file is copied to /etc/cron.d/mailman from # /usr/lib/mailman/cron/crontab.in when the mailman service is started via its # init.d script and the file /etc/cron.d/mailman is removed when the # service is stopped. Therefore any edits made directly to # /etc/cron.d/mailman will be lost anytime the mailman service # restarts. # # To make changes edit the master copy /usr/lib/mailman/cron/crontab.in and then # restart the service to pick up the changes (/sbin/service mailman restart). # # The reason this is done this way is because the mailman cron jobs # should only be invoked if the mailman service is enabled and not # just as a consequence of installing the rpm as was the case # previously. The file /etc/cron.d/mailman cannot simply be linked to # the master copy in /usr/lib/mailman/cron because for security reasons cron # will not process crontab files that are links or writeable by # anybody else but root, thus the file must be copied into /etc/cron.d # with the right ownership and permissions. # # At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * mailman /usr/lib/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * mailman /usr/lib/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshhold delivery. 0 12 * * * mailman /usr/lib/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * mailman /usr/lib/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. 0,5,10,15,20,25,30,35,40,45,50,55 * * * * mailman /usr/lib/mailman/cron/gate_new s # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * mailman /usr/lib/mailman/cron/nightly_gzip # # At 4:30AM daily, cull old entries from the 'bad' and 'shunt' queues. 30 4 * * * mailman /usr/lib/mailman/cron/cull_bad_shunt # # check for mail via fetchmail every 5 minutes */5 * * * * /usr/bin/fetchmail --all --silent -f /usr/lib/mailman/fetchmailrc # # Send a monthly reminder to cufsalumni list members 0 0 1 * * /usr/lib/mailman/cron/mailpasswds -l cufsalumni # # Send a monthly bounce report 0 0 1 * * /usr/lib/mailman/bin/withlist -r get_bounce_info cufsalumni|mail -s c ufsalumni List Bounce Report d...@bellsouth.net I did not edit this file directly. Per the instructions this is updated from /usr/lib/mailman/cron/crontab.in'. That is the file I edit. Here are the contents of /var/spool/cron/mailman: drwxrws---. 2 mailman mailman 4096 Jun 2 14:45 archive drwxrws---. 2 mailman mailman 4096 Jun 2 05:05 bounces drwxrws---. 2 mailman mailman 4096 May 10 09:00 commands drwxrws---. 2 mailman mailman 36864 Jun 10 09:00 in drwxrws---. 2 mailman mailman 4096 May 9 09:50 news drwxrws---. 2 mailman mailman 12288 Jun 10 09:00 out drwxrws---. 2 mailman mailman 4096 May 9 09:50 retry drwxrws---. 2 mailman mailman 28672 May 18 04:30 shunt drwxrws---. 2 mailman mailman 28672 Jun 10 09:00 virgin I don't know how this might have been generated if it is supposed to be empty. Just as a reminder I am using CentOS 6 with Apache 2.2.15. Thanks. On 6/8/2012 8:44 PM, Mark Sapiro wrote: Mark Sapiro wrote: Dennis Putnam wrote: I am getting a daily message with the subject: Cron lt;mailman@dap002gt; mailman /usr/lib/mailman The message simply says: /bin/sh: mailman: command not found Post the contents of /var/spool/cron/mailman and /etc/cron.d/mailman if they exist. Upon further thought I think the issue is that someone has installed a system mailman crontab (/etc/cron.d/mailman) as the mailman user's crontab (/var/spool/cron/mailman). System crontabs have an extra field for the user under which to run the command (mailman) which will be interpreted as a 'mailman' command if installed as a user crontab. signature.asc Description: OpenPGP digital signature -- 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] /bin/sh: mailman: command not found
On 6/10/2012 8:48 AM, Dennis Putnam wrote: Hi Mark, Thanks for the reply. Here is /etc/cron.d/mailman [...] # # At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * mailman /usr/lib/mailman/cron/checkdbs Entries like the above are correct for /etc/cron.d/mailman. The 'mailman' in the 6th field is the name of the user under which to run the command. [...] # # check for mail via fetchmail every 5 minutes */5 * * * * /usr/bin/fetchmail --all --silent -f /usr/lib/mailman/fetchmailrc # # Send a monthly reminder to cufsalumni list members 0 0 1 * * /usr/lib/mailman/cron/mailpasswds -l cufsalumni # # Send a monthly bounce report 0 0 1 * * /usr/lib/mailman/bin/withlist -r get_bounce_info cufsalumni|mail -s c ufsalumni List Bounce Report d...@bellsouth.net The above entries are not in the correct format for /etc/cron.d/mailman because they are missing a username in the 6th field. I did not edit this file directly. Per the instructions this is updated from /usr/lib/mailman/cron/crontab.in'. That is the file I edit. And if you are going to add additional cron commands to that file, they have to be in the correct format for a system crontab. Here are the contents of /var/spool/cron/mailman: drwxrws---. 2 mailman mailman 4096 Jun 2 14:45 archive drwxrws---. 2 mailman mailman 4096 Jun 2 05:05 bounces drwxrws---. 2 mailman mailman 4096 May 10 09:00 commands drwxrws---. 2 mailman mailman 36864 Jun 10 09:00 in drwxrws---. 2 mailman mailman 4096 May 9 09:50 news drwxrws---. 2 mailman mailman 12288 Jun 10 09:00 out drwxrws---. 2 mailman mailman 4096 May 9 09:50 retry drwxrws---. 2 mailman mailman 28672 May 18 04:30 shunt drwxrws---. 2 mailman mailman 28672 Jun 10 09:00 virgin I don't know how this might have been generated if it is supposed to be empty. Just as a reminder I am using CentOS 6 with Apache 2.2.15. It is not supposed to be a directory, empty or not. What you have looks like a copy of mailman's queue directory which in RedHat/CentOS is /var/spool/mailman, or maybe you are showing me /var/spool/mailman and not /var/spool/cron/mailman -- 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] /bin/sh: mailman: command not found
Dennis Putnam wrote: Doh! You are correct. The directory /var/spool/cron is empty. The format of the cron file is what was distributed with CentOS. Odd that it would be wrong but explains why my additions work and the distro ones do not. Is this file unchanged with updates so if I fix it, it won't break? It is not wrong. It is correct for a system crontab, i.e. for /etc/cron.d/mailman. If the standard crons give the 'mailman command not found' message and your added entries work, the crontab is installed somewhere as a user crontab, not a system crontab. This is not consistent with what you are telling me you see in /etc/cron.d/mailman and /var/spool/cron so I don't know what's actually going on. Are you certain /var/spool/cron is empty? What's in /var/log/cron? -- 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] /bin/sh: mailman: command not found
Hi Mark, I think I got it. I did a 'crontab -r -u mailman' which should have removed the errant cronjob. I also deleted /etc/cron.d/mailman, edited my additions to include the user 'mailman' then restarted mailman. The new /etc/cron.d/mailman showed up again as expected and I think it will be OK now. Maybe both cronjobs were running and the error message was coming from the incorrect one. Thanks. On 6/10/2012 12:31 PM, Mark Sapiro wrote: Dennis Putnam wrote: Doh! You are correct. The directory /var/spool/cron is empty. The format of the cron file is what was distributed with CentOS. Odd that it would be wrong but explains why my additions work and the distro ones do not. Is this file unchanged with updates so if I fix it, it won't break? It is not wrong. It is correct for a system crontab, i.e. for /etc/cron.d/mailman. If the standard crons give the 'mailman command not found' message and your added entries work, the crontab is installed somewhere as a user crontab, not a system crontab. This is not consistent with what you are telling me you see in /etc/cron.d/mailman and /var/spool/cron so I don't know what's actually going on. Are you certain /var/spool/cron is empty? What's in /var/log/cron? signature.asc Description: OpenPGP digital signature -- 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] /bin/sh: mailman: command not found
I am getting a daily message with the subject: Cron lt;mailman@dap002gt; mailman /usr/lib/mailman The message simply says: /bin/sh: mailman: command not found Since there is no path for the mailman commands in crontab.in (a distro bug?), I assume I am supposed to add it myself. Am I correct that it really wants /usr/lib/mailman/scripts/mailman or is there some other executable somewhere named 'mailman' that I should use? TIA. signature.asc Description: OpenPGP digital signature -- 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] /bin/sh: mailman: command not found
Dennis Putnam wrote: I am getting a daily message with the subject: Cron lt;mailman@dap002gt; mailman /usr/lib/mailman The message simply says: /bin/sh: mailman: command not found Post the contents of /var/spool/cron/mailman and /etc/cron.d/mailman if they exist. Since there is no path for the mailman commands in crontab.in (a distro bug?), I assume I am supposed to add it myself. No. I can't tell you what you need to do until I see the above requested crontabs, but editing crontab.in does nothing unless you subsequently install it. Am I correct that it really wants /usr/lib/mailman/scripts/mailman No. That script is just a sample /etc/init.d/mailman script which is the script to process service mailman commands, but it shouldn't be run by cron. or is there some other executable somewhere named 'mailman' that I should use? cron should not be attempting daily to run any script named mailman. -- 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] /bin/sh: mailman: command not found
Mark Sapiro wrote: Dennis Putnam wrote: I am getting a daily message with the subject: Cron lt;mailman@dap002gt; mailman /usr/lib/mailman The message simply says: /bin/sh: mailman: command not found Post the contents of /var/spool/cron/mailman and /etc/cron.d/mailman if they exist. Upon further thought I think the issue is that someone has installed a system mailman crontab (/etc/cron.d/mailman) as the mailman user's crontab (/var/spool/cron/mailman). System crontabs have an extra field for the user under which to run the command (mailman) which will be interpreted as a 'mailman' command if installed as a user crontab. -- 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] /bin/sh: mailman: command not found
Thankyou Guys.It seems that my web interface is working fine for mailman as mark said.I tried to change the cron config files that were suggested, but it seems that I am still missing something.I am not getting the same email as the administrator, but none of the subscribed users are getting any emails.Below are the cron files in the system.Suggestions would be highly appreciable. This is the crontab.in that I changed as suggested by the faq. ## 0 8 * * * /usr/lib/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * /usr/lib/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshhold delivery. 0 12 * * * /usr/lib/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * /usr/lib/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * /usr/lib/mailman/cron/nightly_gzip and this is what is in /etc/cron.d/mailman ### # At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * /usr/lib/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * /usr/lib/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshhold delivery. 0 12 * * * /usr/lib/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * /usr/lib/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * /usr/lib/mailman/cron/nightly_gzip ~ ## Thanks Fahad Saeed Date: Sun, 19 Oct 2008 07:47:06 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; mailman-users@python.org Subject: Re: [Mailman-Users] /bin/sh: mailman: command not found Fahad Saeed wrote: I am trying to install mailman on my server.I followed this tutorial: http://www.yolinux.com/TUTORIALS/Lin...alMailman.html I am guessing you mean http://www.yolinux.com/TUTORIALS/LinuxTutorialMailman.html After following all the steps, mailman seeems to be working as well as the webpage for the list. If I subscribe to the list, I get an email in my email inbox(hotmail, yahoo etc) for confirmation of the membership etc. It is best to follow the instructions for the specific software package you are installing rather than generic instructions that may not apply to the specific RPM or other package you are installing. But there are two problems that I would like to discuss and your input would be appreciable 1)If I email from one of my email box(subscribed to the list), the email is not forwarded to any of the members. See the FAQ at http://wiki.list.org/x/A4E9. However, from the information below, at least your 'mailman' site list seems to be working as it should. 2) I keep getting the following email in my administrator email box: Code: As list administrator, your authorization is requested for the following mailing list posting: List:[EMAIL PROTECTED] From:[EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news Reason: Post by non-member to a members-only list At your convenience, visit: http://mydomain/mailman/admindb/mailman to approve or deny the request. If I allow, root to be subscibed to the list, I get the email to all the recipients of the list, with the message: Code: [Mailman] Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_newsþ From:[EMAIL PROTECTED] on behalf of Cron Daemon ([EMAIL PROTECTED]) /bin/sh: mailman: command not found Any pointers would be appreciable.If any logs
[Mailman-Users] /bin/sh: mailman: command not found
Hello All, I am trying to install mailman on my server.I followed this tutorial: http://www.yolinux.com/TUTORIALS/Lin...alMailman.html After following all the steps, mailman seeems to be working as well as the webpage for the list. If I subscribe to the list, I get an email in my email inbox(hotmail, yahoo etc) for confirmation of the membership etc. But there are two problems that I would like to discuss and your input would be appreciable 1)If I email from one of my email box(subscribed to the list), the email is not forwarded to any of the members. 2) I keep getting the following email in my administrator email box: Code: As list administrator, your authorization is requested for the following mailing list posting: List:[EMAIL PROTECTED] From:[EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news Reason: Post by non-member to a members-only list At your convenience, visit: http://mydomain/mailman/admindb/mailman to approve or deny the request. If I allow, root to be subscibed to the list, I get the email to all the recipients of the list, with the message: Code: [Mailman] Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news From: [EMAIL PROTECTED] on behalf of Cron Daemon ([EMAIL PROTECTED]) /bin/sh: mailman: command not found Any pointers would be appreciable.If any logs are required to get a clearer picture please let me know _ Store, manage and share up to 5GB with Windows Live SkyDrive. http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008 -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 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://wiki.list.org/x/QIA9
Re: [Mailman-Users] /bin/sh: mailman: command not found
There are two formats for CRON files: 1) in /etc/cron.d/ * * * * * USER COMMAND 2) in the user's crontab * * * * * COMMAND from your message maybe you are using the cron.d format in a user crontab -- Fil -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 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://wiki.list.org/x/QIA9
Re: [Mailman-Users] /bin/sh: mailman: command not found
Fahad Saeed wrote: I am trying to install mailman on my server.I followed this tutorial: http://www.yolinux.com/TUTORIALS/Lin...alMailman.html I am guessing you mean http://www.yolinux.com/TUTORIALS/LinuxTutorialMailman.html After following all the steps, mailman seeems to be working as well as the webpage for the list. If I subscribe to the list, I get an email in my email inbox(hotmail, yahoo etc) for confirmation of the membership etc. It is best to follow the instructions for the specific software package you are installing rather than generic instructions that may not apply to the specific RPM or other package you are installing. But there are two problems that I would like to discuss and your input would be appreciable 1)If I email from one of my email box(subscribed to the list), the email is not forwarded to any of the members. See the FAQ at http://wiki.list.org/x/A4E9. However, from the information below, at least your 'mailman' site list seems to be working as it should. 2) I keep getting the following email in my administrator email box: Code: As list administrator, your authorization is requested for the following mailing list posting: List:[EMAIL PROTECTED] From:[EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news Reason: Post by non-member to a members-only list At your convenience, visit: http://mydomain/mailman/admindb/mailman to approve or deny the request. If I allow, root to be subscibed to the list, I get the email to all the recipients of the list, with the message: Code: [Mailman] Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_newsþ From: [EMAIL PROTECTED] on behalf of Cron Daemon ([EMAIL PROTECTED]) /bin/sh: mailman: command not found Any pointers would be appreciable.If any logs are required to get a clearer picture please let me know This is where you get in trouble by following instructions not appropriate for your package. See the FAQ at http://wiki.list.org/x/AIE9. -- Mark Sapiro [EMAIL PROTECTED]The 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 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://wiki.list.org/x/QIA9
Re: [Mailman-Users] /bin/sh: mailman: command not found
Fahad Saeed wrote: Thankyou Guys.It seems that my web interface is working fine for mailman as mark said.I tried to change the cron config files that were suggested, but it seems that I am still missing something.I am not getting the same email as the administrator, but none of the subscribed users are getting any emails.Below are the cron files in the system.Suggestions would be highly appreciable. This is the crontab.in that I changed as suggested by the faq. ## 0 8 * * * /usr/lib/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * /usr/lib/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshhold delivery. 0 12 * * * /usr/lib/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * /usr/lib/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * /usr/lib/mailman/cron/nightly_gzip and this is what is in /etc/cron.d/mailman ### # At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * /usr/lib/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * /usr/lib/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshhold delivery. 0 12 * * * /usr/lib/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * /usr/lib/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * /usr/lib/mailman/cron/nightly_gzip ~ ## You don't want two crontabs. You want only one. You either want one like either of the above as user mailman's crontab in /var/spool/cron/mailman (this is the one manipulated by the crontab -u mailman command), or you want one like you originally had in /etc/cron.d/mailman. You broke the /etc/cron.d/mailman crontab by removing the 'mailman' from the sixth field of the commands. I suggest you remove the /var/spool/cron/mailman crontab, either directly or with the command crontab -u mailman -r, and put the /etc/cron.d/mailman crontab that your RPM installed back the way it was originally with command lines like 27 3 * * * mailman /usr/lib/mailman/cron/nightly_gzip This way, when you upgrade your package, you won't wind up with two crontabs again. None of this ever had anything to do with your users not receiving mail. That is a separate issue. See the FAQ at http://wiki.list.org/x/A4E9 for troubleshooting. However, your 'mailman' site list was properly delivering mail to it's members when your cron error messages were being mailed to it, so the non-delivery problem is probably specific to the list that isn't working. Go through the troubleshooting FAQ, and if you can't figure it out, at least report what you find. -- Mark Sapiro [EMAIL PROTECTED]The 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 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://wiki.list.org/x/QIA9
[Mailman-Users] /bin/sh: mailman: command not found
I have seen this error asked about many times and all seem to point to crontab.in and something in the 6th position. However I am a mailman/Linux n00b. How do I fix this? Subject: Cron lt;[EMAIL PROTECTED]gt; mailman /usr/lib/mailman/cron/gate_news Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated X-Cron-Env: lt;SHELL=/bin/shgt; X-Cron-Env: lt;HOME=/usr/lib/mailmangt; X-Cron-Env: lt;PATH=/usr/bin:/bingt; X-Cron-Env: lt;LOGNAME=mailmangt; X-Cron-Env: lt;USER=mailmangt; - Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] /bin/sh: mailman: command not found
Ken Cheney wrote: I have seen this error asked about many times and all seem to point to crontab.in and something in the 6th position. However I am a mailman/Linux n00b. How do I fix this? See for example http://mail.python.org/pipermail/mailman-users/2007-May/057016.html and perhaps http://mail.python.org/pipermail/mailman-users/2007-May/057027.html. Either remove the word 'mailman' from between the times and the command in the mailman crontab, or install the crontab as is in /etc/cron.d/mailman instead of /var/spool/cron/mailman. -- Mark Sapiro [EMAIL PROTECTED] The 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://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=showamp;file=faq01.027.htp
[Mailman-Users] /bin/sh: mailman: command not found
I get a million of these messages from Cron. Subject: [Mailman] Cron [EMAIL PROTECTED] mailman/usr/lib/mailman/cron/gate_news I have read that it is because of something messed up with the crontab.in or soemthing. Something to do with the place #6 or something like that. I really did not find the message helpful at all since I know very little about cron in general. Can someone help? Otherwise I have Mailman fully functional on Fedora Core 6 and love it! - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] /bin/sh: mailman: command not found
Ken Cheney wrote: I get a million of these messages from Cron. Subject: [Mailman] Cron [EMAIL PROTECTED] mailman/usr/lib/mailman/cron/gate_news I have read that it is because of something messed up with the crontab.in or soemthing. Something to do with the place #6 or something like that. There are two ways to install a crontab. The crontab can be a user's crontab and for the mailman user is usually in the file /var/spool/cron/mailman, but is usually manipulated with the crontab command (man 1 crontab). There are also system (package) crontabs which are usually found in the /etc/cron.d/ directory. These crontabs have a different format. Since they are not associated with a particular user, they have an additional entry for the username between the times and the command. Your problem is you have a file that was intended for /etc/cron.d/mailman, and it is installed in /var/spool/cron/mailman. You can fix this by moving /var/spool/cron/mailman to /etc/cron.d/, or by editing /var/spool/cron/mailman (as the mailman user give command 'crontab -e') and removing the word 'mailman' that precedes the command on each line of the file. -- Mark Sapiro [EMAIL PROTECTED] The 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://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=showamp;file=faq01.027.htp
[Mailman-Users] /bin/sh: mailman: command not found
I am getting emails with the following error in the body of emails being sent to the list owner: /bin/sh: mailman: command not found The subject reads as follows: [Mailman] Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news The path is correct as I have copied and pasted the path listed in the email to the terminal and the process seems to run fine. In this thread http://www.mail-archive.com/mailman-users@python.org/msg29250.html someone suggested that There is something wrong with the options you used when you ran configure. The command mailman indicated above should be the command to invoke Python and it also normally has a -S option too. The thing is, this is an RPM package for fedora core 3 (2.1.5-32) so I didn't do any configuring. I am not really understanding why this is failing. Can anyone shed some light on this issue for me? Thanks, Kris -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] /bin/sh: mailman: command not found
Kris Vassallo wrote: I am getting emails with the following error in the body of emails being sent to the list owner: /bin/sh: mailman: command not found The subject reads as follows: [Mailman] Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news Your Mailman crontab is not correctly installed. The crontab.in or whatever that you used is designed to be put in /etc/cron.d/, and thus it has the executing userid as field 6 between the run times parameters and the command. If you install it with crontab -u mailman crontab.in or whatever the file name is, you first have to remove the 'mailman' entries preceding the commands. -- Mark Sapiro [EMAIL PROTECTED] The 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://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=showamp;file=faq01.027.htp
Re: [Mailman-Users] /bin/sh: mailman: command not found
Kris Vassallo wrote: I am getting emails with the following error in the body of emails being sent to the list owner: /bin/sh: mailman: command not found The subject reads as follows: [Mailman] Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news Somehow you've got crontab entries enabled with a non-crontab file. Reading the section on cron in /usr/share/doc/mailman-*/INSTALL.REDHAT may help you understand better. But the short answer is the cron file supplied in the rpm you installed has an extra field in it at position 6, the mailman user. It is to be installed in /etc/cron.d. However please note this is automatically done for you by the init.d script when you start and stop mailman, please use the the init script to start and stop mailman (e.g. /sbin/service mailman start|stop). If you installed this cron file with crontab its is going to be very confused by the extra 6th field. Please make sure you do not have any mailman crontab entries and remember crontab != cron. The rpm you installed is supposed to remove any pre-existing mailman crontab entries in favor of the newer methodology. If one got left behind after the rpm install then the %post section of the rpm is failing somehow. -- John Dennis [EMAIL PROTECTED] -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] /bin/sh: mailman: command not found
On Tue, 2005-05-24 at 16:05, John Dennis wrote: Kris Vassallo wrote: I am getting emails with the following error in the body of emails being sent to the list owner: /bin/sh: mailman: command not found The subject reads as follows: [Mailman] Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news Somehow you've got crontab entries enabled with a non-crontab file. Reading the section on cron in /usr/share/doc/mailman-*/INSTALL.REDHAT may help you understand better. But the short answer is the cron file supplied in the rpm you installed has an extra field in it at position 6, the mailman user. It is to be installed in /etc/cron.d. However please note this is automatically done for you by the init.d script when you start and stop mailman, Ah ha! I followed the instructions on the Mailman website for installation as I was unaware of the docs that already existed on my system; so I had run the crontab command to get the cron jobs running. So I removed mailmans crontab entries and restarted Mailman.. works like a charm now. THANKS! -Kris please use the the init script to start and stop mailman (e.g. /sbin/service mailman start|stop). If you installed this cron file with crontab its is going to be very confused by the extra 6th field. Please make sure you do not have any mailman crontab entries and remember crontab != cron. The rpm you installed is supposed to remove any pre-existing mailman crontab entries in favor of the newer methodology. If one got left behind after the rpm install then the %post section of the rpm is failing somehow. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] /bin/sh: mailman: command not found
At 10:44 AM +0100 2004-12-21, thomas Armstrong wrote: - To: [EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news X-Cron-Env: SHELL=/bin/sh X-Cron-Env: HOME=/usr/lib/mailman X-Cron-Env: PATH=/usr/bin:/bin X-Cron-Env: LOGNAME=mailman X-Cron-Env: USER=mailman /bin/sh: mailman: command not found The mailman program is typically found in /usr/local/mailman/bin/mailman, and the directory /usr/local/mailman/bin is not in your path. You either need to specify the full path to the binary in the cron job, or you need to make sure that the appropriate directory is in the search path. -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 SAGE member since 1995. See http://www.sage.org/ for more info. -- Mailman-Users mailing list [EMAIL PROTECTED] 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/
Re: [Mailman-Users] /bin/sh: mailman: command not found
thomas Armstrong wrote: I'm trying to configure Mailman on my Linux server with Sendmail. 1) I installed it on '/usr/lib/mailman/' 2) I created a crontab (as root): $ crontab /usr/lib/mailman/cron/crontab.in -u mailman I'm able to subscribe a new user, but when trying to send a new message to the mail list, I don't get any answer. There is also no message within the list archive. And I'm getting this mail within my '/var/spool/mail/root': - To: [EMAIL PROTECTED] Subject: Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/gate_news ^^^ X-Cron-Env: SHELL=/bin/sh X-Cron-Env: HOME=/usr/lib/mailman X-Cron-Env: PATH=/usr/bin:/bin X-Cron-Env: LOGNAME=mailman X-Cron-Env: USER=mailman /bin/sh: mailman: command not found --- What am I doing wrong? Thank you very much. There is something wrong with the options you used when you ran configure. The command mailman indicated above should be the command to invoke Python and it also normally has a -S option too. As for non-delivery, you may not have put the aliases in Sendmail or your qrunners may not be running or ... See the FAQ Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Article 3.14 for more. -- Mark Sapiro [EMAIL PROTECTED] The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list [EMAIL PROTECTED] 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/