Doc /

INN - cleaning and reporting - cronjobs

< INN - mail gateway | Configure the INN nntp server (2021/2022) | INN - start it and make it permanent >

From "news"

It's necessary to setup cronjobs to clean articles periodically and some other housekeeping tasks.

On the news account, do:

 crontab -e

Copy/paste:

0 3 * * * /usr/lib/news/bin/news.daily expireover delayrm lowmark
0,10,20,30,40,50 * * * * /usr/lib/news/bin/nntpsend
6   6 * * *   /usr/lib/news/bin/ctlinnd flush inpaths!
10  6 * * *   /usr/lib/news/bin/sendinpaths -c

Public sharing

To add public sharing of processed nocem,

  • create a group, for example "dodin.processed"

Add a line in crontab

MAILTO = processed
50 23 * * * grep -B1 "processed notice" /etc/news/logs/news.notice

On openSUSE, logs are managed by rsyslog, it compresses the news.notice file at 23:55 every day. So why I need to run my grep a bit before.

From root

  • add an alias in /et/aliases
processed: "|/usr/lib/news/bin/mailpost -b /var/tmp -t /var/tmp dodin.processed"

and run "newaliases".

Probably necessary, create a "processed" user on the server (without login), the one to receive the mail.

< INN - mail gateway | Configure the INN nntp server (2021/2022) | INN - start it and make it permanent >