[Mailman-Users] /bin/sh: mailman: command not found

Mark Sapiro mark at msapiro.net
Sun Oct 19 22:25:14 CEST 2008


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 <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list