calendar icon indicating copy to clipboard operation
calendar copied to clipboard

No invitation mails are sent to external contacts

Open Fobhep opened this issue 2 years ago • 8 comments

Steps to reproduce

  1. Setup outgoing mail account with admin user in Nextcloud. Test mail sending successfully
  2. Login with non-admin user. Create an event and invite somebody externally

Expected behavior

The external mail address should receive an invitation to the event.

Actual behaviour

No mail is sent, regardless whether I set up the event on the web-gui or via a caldav client, eg on my phone.

Calendar app version

4.5.2

CalDAV-clients used

No response

Browser

No response

Client operating system

No response

Server operating system

No response

Web server

None

Database engine version

None

PHP engine version

None

Nextcloud version

27.1.2

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

Enabled:
  - activity: 2.19.0
  - calendar: 4.5.2
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.4.2
  - dashboard: 7.7.0
  - dav: 1.27.0
  - deck: 1.11.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.4.2
  - nextcloud_announcements: 1.16.0
  - notifications: 2.15.0
  - oauth2: 1.15.1
  - password_policy: 1.17.0
  - photos: 2.3.0
  - polls: 5.3.2
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - spreed: 17.1.1
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - tasks: 0.15.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - bruteforcesettings: 2.7.0 (installed 2.4.0)
  - contactsinteraction: 1.8.0 (installed 1.4.0)
  - encryption: 2.15.0
  - files_external: 1.19.0
  - gpoddersync: 3.8.1 (installed 3.8.1)
  - majordomo: 1.1.5 (installed 1.1.5)
  - maps: 1.0.2 (installed 1.0.2)
  - phonetrack: 0.7.6 (installed 0.7.6)
  - richdocuments: 8.2.0 (installed 8.2.0)
  - richdocumentscode: 23.5.402 (installed 23.5.402)
  - suspicious_login: 5.0.0
  - twofactor_totp: 9.0.0
  - user_ldap: 1.17.0

Nextcloud configuration

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "<address>.space"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.1.2.1",
        "overwrite.cli.url": "https:\/\/<address>.space",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "default_phone_region": "DE",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpdebug": true,
        "updater.release.channel": "stable"
    }
}

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

No relevant log information at all. At least none that looks anyhow suspicious to me. I will gladly provide logs if helpful.

Fobhep avatar Oct 14 '23 10:10 Fobhep

Your NC instance is able to send emails in general?

Can you export and post one such calendar invite here? You can do so by clicking on the event and using the three dot menu to download the ICS.

Can you also look into your logs for loglines with message "Unable to deliver message to" ?

miaulalala avatar Oct 23 '23 10:10 miaulalala

same problem here (nc 27.1.2, calendar 4.5.2)

  • nextcloud is able to send emails in general
  • mailadress of organizer and participant is set as expected in ics VEVENT ORGANIZER;CN=vorname nachname:mailto:[email protected] ATTENDEE;CN=vorname nachname;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=REQ- PARTICIPANT;RSVP=TRUE;LANGUAGE=de_DE:mailto:[email protected]
  • there's nothing related to messages in the log and no open job in the corresponding db-table

larsneo avatar Oct 23 '23 13:10 larsneo

Aight, I guess we're gonna need some logging in the iMIP Plugin to see where exactly the mail fails. Everything else is fine I assume? I.e . calendar events are saved and you're able to update / delete them?

miaulalala avatar Oct 23 '23 16:10 miaulalala

Same applies for invitations RECEIVED from 3rd party contacts: Once I change my attendance status, a messages should be sent to the organizer (or all attendees?) to inform his/their calendar that I will/not attend.

nursoda avatar Nov 20 '23 11:11 nursoda

Also experiencing this problem. And found this in my logs:

iTip message said the change was significant but comparison did not detect any updated VEvents

Am wondering if this means that the issue is related to https://github.com/nextcloud/server/issues/23927

skug67 avatar Dec 07 '23 12:12 skug67

Also experiencing this problem. And found this in my logs:

iTip message said the change was significant but comparison did not detect any updated VEvents

Am wondering if this means that the issue is related to nextcloud/server#23927

not really, as that issue was a problem with an x- property.

The error message comes from https://github.com/nextcloud/server/blob/aa5f037af71c915424c6dcfd5ad2dc82797dc0d6/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php#L137

miaulalala avatar Dec 07 '23 17:12 miaulalala

Confirming as well. Using Nextcloud Hub 7 (28.0.5), Calendar 4.7.15. I checked the logs, but did not see anything that might point into the direction of what goes wrong.

janvlug avatar Aug 10 '24 13:08 janvlug

I figured out that the problem for me was that I had not set the Email server in Administration settings > Basic settings > Email server

After adding an SMTP account there, invites were sent out.

janvlug avatar Aug 10 '24 17:08 janvlug

Should this be closed?

curiousercreative avatar Mar 02 '25 16:03 curiousercreative

Probably we can close it - for me it works these days - possibly some update fixed it

Fobhep avatar Mar 02 '25 20:03 Fobhep