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

Mark Sapiro mark at msapiro.net
Sun Jun 10 18:03:11 CEST 2012


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" dap1 at 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 <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