help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
Or for longer, use three backticks above and below the code snippet:
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 12.0.2):
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N):
The problem clearly is that my isp starting to ask questions why they received some 6K emails originated from me sent via cron task to email@example.com
Only thing I can link to www is the owner of the cron task that accrording to nc MUST be www.
Check the cron task and what it does - no idea why email is sent to begin with - even if the email were valid and pointed to me, I dont want emails sent to me every 15 minutes
yep - did that test and shows up fine, but…?
why is my isp receiving up towards 60000 emails from me going *not to me, but to iinet firstname.lastname@example.org
The ONLY(!) thing I managed to link is that the cron job running every 15 minutes to sync data also sends these emails out - as per mail log.
nc clearly state that this cron must(!) run as user www - The log also show this user being the one sent it and received it - and as it happen, turns out to be a valid email, so no exception is flagged.
But clearly based on my isp phoning me this morning, its cause for concern - hence me trying to track down what the hell is going on.
U want logs, ok - what logs - a repetitive log from the mail *that show exactly what I already posted every 15 minute or other logs
Happy to provide what you think you need, but considering this clearly seem to be linked to the cron job that I also provided full details on Im not sure exactly what other logs you are asking for.
Again, since the email sends, theres no issues flagged.
Problem with posting content of email, is that the email never reach me - its sent to *i.e not me - hence iinet isp called me up today asking questions
The only thing worth noting is that and dont ask me how and why - the entire nc installation disappeared mid June *suspect it might have had to do with me upgrading from php72 to 73.
All my config stored elsewhere intact, but nc gone.
All other services still running and as such the cron tried to access /usr/local/www/nextcloud/cron.php that no longer existed.
Once restoring a working nc I hoped this issue would go away, but sadly no! ?
Test it from root (Debian, …) or user (Ubuntu) and if it works copy and paste it to cron-entry.
If correct i hope the emails disappear. Or use the /dev/null-directive but then cron.php still not works.
root@nextcloud:~ # sudo -u www php /usr/local/www/nextcloud/cron.php
PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1691 but version 1690 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
Your system can send emails to the server admin or a server user. It can contain errors or warnings, so you can redirect these e-mails to a real mail address (by default it is delivered to the local mailbox on the system). If you have a dedicated or virtual server, you can change this: /etc/aliases:
So you can add your mail address easily. Depending on an error, this can generate quite a few mails.
Other option is that Nextcloud can send out notification mails for users. This will be triggered by the cronjob. By default, the system itself tries to deliver mails, if you have a mail server installed, this is great. But in Nextcloud you can define a relay, or you can as well put such a thing on the system level such as ssmtp (which might be easier to dump or control.
Why do you send mails to iinet.net.au, do you use this or a sudomain as your hostname?