![Debian 下推荐的 Mailman3 web cron 作业配置是什么?](https://linux22.com/image/215589/Debian%20%E4%B8%8B%E6%8E%A8%E8%8D%90%E7%9A%84%20Mailman3%20web%20cron%20%E4%BD%9C%E4%B8%9A%E9%85%8D%E7%BD%AE%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F.png)
这Mailman3网页版安装说明询问各种 cron 作业的配置。这在Debian Mailman3 安装说明,这可能表明 Debianmailman3-full
软件包设置了所需的内容。然而 中没有列出任何 cron 作业/var/spool/cron/crontabs/
。
此外,尝试从命令行运行指定的作业(例如sudo -u list mailman /usr/bin/mailman-web runjobs hourly
)会导致错误:ValueError: Language code already registered: ar
。
答案1
Debian 上的软件包mailman3
安装了一组 cron 计划
/etc/cron.d/mailman3
(使用当前版本的软件)应该如下所示:
# /etc/cron.d/mailman3: crontab entries for the mailman3 package
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# At 8AM, send out notifices of pending requests to list moderators
0 8 * * * list if [ -x /usr/bin/mailman ]; then /usr/bin/mailman notify; fi
# At 12AM, send mail digests for lists that do periodic as well as threshold delivery
0 12 * * * list if [ -x /usr/bin/mailman ]; then /usr/bin/mailman digests --periodic; fi
# Every 15 minutes, gate messages from usenet to those lists which have the gateway configured
*/15 * * * * list if [ -x /usr/bin/mailman ]; then /usr/bin/mailman gatenews; fi
(看https://sources.debian.org/src/mailman3/3.3.7-3/debian/mailman3.cron.d/)