On 6/16/22 03:44, Eggert Ehmke wrote:
I get lots of mails originating from the mailman-web runjobs hourly. They are sent to mailman@<mytld>. The content looks like
07:00:03 [Q] INFO Enqueued 12571 07:00:03 [Q] INFO Enqueued 12572 07:00:03 [Q] INFO Enqueued 12573
How can I disable these emails?
These message come from Django Q, https://django-q.readthedocs.io/en/latest/
I don't think there is a way to disable those specific messages which
occur at times when tasks are queued instead of started immediately.
They are sent to mailman
because mailman
owns the crontab and the
crontab has no MAILTO=.
You can redirect these and all other messages from hourly jobs by surrounding the hourly jobs command in the crontab with MAILTO= as in
MAILTO=other@example.com
@hourly /opt/mailman/mm/bin/django-admin runjobs hourly
MAILTO=mailman
or possibly discard them with something like
@hourly /opt/mailman/mm/bin/django-admin runjobs hourly > /dev/null
but either of these could redirect or discard other messages from hourly jobs which you might want.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan