I could not find this issue already existing (similar but none I found worked for me). Nextcloud stopped sending emails around 9th January, I believe that was the time I upgraded Nextcloud a couple levels but not 100% certain. I stopped at Nextcloud 30 because I did not want to risk updating PHP to 8.2. Under my Admin settings for Activity, all boxes are checked and Enable Email Notifications is checked. Test email works fine so the ability to send email is there, it just is not trying to send an email. Log file is absolutely enormous, I can’t find anything related to cron or email in the log.
The Basics
- Nextcloud Server version (e.g., 29.x.x):
30.0.2
- Operating system and version (e.g., Ubuntu 24.04):
Ubuntu Server 22.04.5 LTS
- Web server and version (e.g, Apache 2.4.25):
- `Server version: Apache/2.4.57 (Ubuntu)
Server built: 2023-04-08T12:55:31’
- `Server version: Apache/2.4.57 (Ubuntu)
- Reverse proxy and version _(e.g. nginx 1.27.2)
replace me
- PHP version (e.g, 8.3):
PHP 8.1.24
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
Around 9th Jan 2025
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Not sure, installed on virtual server using Nextcloud download
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
When I place a file into a shared folder, cron runs but an email notification is not sent to the recipient. Manually running cron no different. Testing email settings successfully sends email. I believe I upgraded Nextcloud around the time the emails stopped sending but I did not notice then.
Steps to replicate it (hint: details matter!):
- Share a folder or file with another user
- cron runs every 5 minutes
- No email is send to the recipient of the shared folder or file
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
PASTE HERE
Configuration
Nextcloud
root@share:/var/www/html/nextcloud# sudo -u www-data php occ config:list system
{
“system”: {
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“share.XXXX.com”
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “30.0.2.2”,
“overwrite.cli.url”: “https://share.XXX.com”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“activity_expire_days”: 14,
“auth.bruteforce.protection.enabled”: true,
“blacklisted_files”: [
“.htaccess”,
“Thumbs.db”,
“thumbs.db”
],
“cron_log”: true,
“enable_previews”: true,
“enabledPreviewProviders”: [
“OC\Preview\PNG”,
“OC\Preview\JPEG”,
“OC\Preview\GIF”,
“OC\Preview\BMP”,
“OC\Preview\XBitmap”,
“OC\Preview\Movie”,
“OC\Preview\PDF”,
“OC\Preview\MP3”,
“OC\Preview\TXT”,
“OC\Preview\MarkDown”
],
“filesystem_check_changes”: 0,
“filelocking.enabled”: “true”,
“memcache.local”: “\OC\Memcache\APCu”,
“htaccess.RewriteBase”: “/”,
“integrity.check.disabled”: false,
“knowledgebaseenabled”: false,
“logfile”: “/var/nc_log/nextcloud.log”,
“loglevel”: 2,
“logtimezone”: “America/Detroit”,
“default_phone_region”: “GB”,
“force_locale”: “en_US”,
“log_rotate_size”: 104857600,
“maintenance_window_start”: 2,
“maintenance”: false,
“overwriteprotocol”: “https”,
“preview_max_x”: 1024,
“preview_max_y”: 768,
“preview_max_scale_factor”: 1,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“port”: 0,
“timeout”: 0
},
“quota_include_external_storage”: false,
“share_folder”: “/Shares”,
“skeletondirectory”: “”,
“theme”: “”,
“trashbin_retention_obligation”: “auto, 7”,
“updater.release.channel”: “stable”,
“app_install_overwrite”: [
“twofactor_email”
],
“twofactor_enforced”: “true”,
“twofactor_enforced_groups”: [
“Users”
],
“twofactor_enforced_excluded_groups”: ,
“data-fingerprint”: “721c857e0ac5482d73a6ecabe2877134”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_sendmailmode”: “smtp”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “587”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“mail_smtpdebug”: true,
“mail_smtpstreamoptions”: {
“ssl”: {
“allow_self_signed”: true,
“verify_peer”: false,
“verify_peer_name”: false
}
}
}
}
#### Apps
The output of `occ app:list` (if possible).
### Tips for increasing the likelihood of a response
root@share:/var/www/html/nextcloud# sudo -u www-data php occ app:list
Enabled:
- activity: 3.0.0
- announcementcenter: 7.0.1
- app_api: 4.0.0
- calendar: 5.0.6
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- dav: 1.31.1
- federatedfilesharing: 1.20.0
- files: 2.2.0
- files_downloadlimit: 3.0.0
- files_pdfviewer: 3.0.0
- files_reminders: 1.3.0
- files_sharing: 1.22.0
- files_trashbin: 1.20.1
- files_versions: 1.23.0
- firstrunwizard: 3.0.0
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- notifications: 3.0.0
- oauth2: 1.18.1
- photos: 3.0.2
- privacy: 2.0.0
- provisioning_api: 1.20.0
- related_resources: 1.5.0
- serverinfo: 2.0.0
- settings: 1.13.0
- theming: 2.5.0
- twofactor_admin: 4.7.1
- twofactor_backupcodes: 1.19.0
- twofactor_totp: 12.0.0-dev
- updatenotification: 1.20.0
- user_status: 1.10.0
- viewer: 3.0.0
- webhook_listeners: 1.1.0-dev
- workflowengine: 2.12.0
Disabled:
- admin_audit: 1.20.0
- bruteforcesettings: 3.0.0 (installed 1.4.0)
- comments: 1.20.1 (installed 1.10.0)
- contactsinteraction: 1.11.0 (installed 1.1.0)
- dashboard: 7.10.0 (installed 7.0.0)
- encryption: 2.18.0
- federation: 1.20.0 (installed 1.10.1)
- files_external: 1.22.0
- nextcloud_announcements: 2.0.0 (installed 1.5.0)
- onlyoffice: 8.2.2 (installed 8.2.2)
- password_policy: 2.0.0 (installed 1.10.1)
- recommendations: 3.0.0 (installed 0.8.0)
- sharebymail: 1.20.0 (installed 1.10.0)
- support: 2.0.0 (installed 1.3.0)
- survey_client: 2.0.0 (installed 1.8.0)
- suspicious_login: 8.0.0
- systemtags: 1.20.0 (installed 1.0.2)
- text: 4.1.0 (installed 3.1.0)
- twofactor_nextcloud_notification: 4.0.0
- user_ldap: 1.21.0
- weather_status: 1.10.0 (installed 1.0.0)