<p>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&#39;ve managed to create when getting root account forwarding to work at all.</p>

<p>I have been trying to get the Nextcloud cron.php process running but initially I had a problem as I&#39;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&#39;d added the cron.php action there, but thsi failed with an email message &quot;Console has to be executed with the user that owns the file config/config.php&quot;. As that is nginx, changing to that account does not work, but then I found the easier <tt>crontab -u nginx -e</tt> which simply creates a crontab file for nginx.&nbsp;</p>

<pre>
*/5 * * * * php -f /srv/website/nextcloud/cron.php</pre>

<p>Is all that I needed to add, but initially I&#39;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.</p>
Page History
Date/CommentUserIPVersion
31 Jan 2026 (16:20 UTC)
—
Lester Caine192.168.1.2542
Current • Source
Lester Caine192.168.1.2541
View • Compare • Difference • Source