kevin.miller at juneau.org
Fri Mar 11 20:26:52 UTC 2016
In the MailWatch list I recently posted that some scripts in cron.daily weren't running by the scheduler, but ran just fine from the CLI. It turns out that Debian does not allow '.' in the filename of a cron job stored in /etc/cron.(d|daily|weekly|monthly). It's actually a run-parts issue.
>From the run-parts man page:
If neither the --lsbsysinit option nor the --regex option is given then
the names must consist entirely of ASCII upper- and lower-case letters,
ASCII digits, ASCII underscores, and ASCII minus-hyphens.
I don't think the MailScanner install script puts anything in the cron.X directories with "." in it, but in the ChangeLog file is the following entry:
Another good ruleset to add to your setup is
To download this automatically every night, fetch
http://www.mailscanner.info/files/4/KAM.cf.sh and put it in /etc/cron.daily
and make it executable (type "chmod +x /etc/cron.daily/KAM.cf.sh").
If anyone is using Debian (or other distros that behave similarly) and the KAM ruleset you may want rename KAM.cf.sh, taking out the "." characters. A new note in the Changelog might be in order as well.
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4588 Registered Linux User No: 307357
More information about the MailScanner