Coding - Cron Jobs
First piece of the jigsaw I need to sort is why srv10 keeps sending two copies of every email. I suspect forwarding has a loop of some sort which I've managed to create when getting root account forwarding to work at all.
I have been trying to get the Nextcloud cron.php process running but initially I had a problem as I've never had to manually set crontab. acme.sh had automatically created the daily certificate scan, and as I know now this is in the root crontab file. I'd added the cron.php action there, but thsi failed with an email message "Console has to be executed with the user that owns the file config/config.php". As that is nginx, changing to that account does not work, but then I found the easier crontab -u nginx -e which simply creates a crontab file for nginx.
*/5 * * * * php -f /srv/website/nextcloud/cron.php
Is all that I needed to add, but initially I'd included the home directory as in the acme.sh entry which results in an email about the error ... every 5 minutes. Fixing that has given a stable process. Interestingly nginx user was also generating two copies of the email so my initial thought needs revising. Although I do think it has something to do with belt and braces in the postfix setup.
