Running Nextcloud 24. /etc/cron.d/freeDNS is configured to run every 30 minutes /bin/bash /usr/local/bin/freedns.sh.
Thatās okay, but there is an e-mail generated for every successful run with the output of the shell script. Itās generated under the root-account and stored, since there is no real mail functionality. Within one year, about 15 000 mail accumulate.
I like to get rid of this. Did I mis-configure something for this behaviour?
The content of the mail:
FreeDNS client started
https://freedns.afraid.org/dynamic/update.php?xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Registered IP: xxx.xxx.xxx.xxx| Current IP: xxx.xxx.xxx.xxx
Nextcloud version (eg, 20.0.5): 24.0.5.1
NextcloudPi version (eg, 20.0.5): v1.50.4
Operating system and version (eg, Ubuntu 20.04): Debian 4.19.260-1 (2022-09-29) x86_64
Apache or nginx version (eg, Apache 2.4.25): apache...
PHP version (eg, 7.4): 7,4
Precisely. Thatās the install script I got my information from.
But then, why does it generate mails for SUCCESSFUL runs?
I would be grateful if somebody could check, if they get those mails as well. Simply issuing a āsudo mailā (after installing mailutils) should tell. If other people do not get those mails, itā s simply my installation that is screwed up.
This will only kill the output to stdout, but should report any error messages sent to stderr. So if something fails, I still get a mail message, which is okay.
The drawback with this kind of solution (modifying the crontab-file): Whenever a new version of NextCloudPi is installed, this most likely overwrites my changes so I have to re-insert them again by hand.