Skip to content

Calendar invites: Administrator shall choose if server's or user's email address is used #5080

Closed

Description

@tuergeist

Feature Request

I refer to #2345 and #2778.

If a Nextcloud instance serves for users from different domains (which is the case at least for me), it's annoying that calendar invites are sent with the server's email address instead of the user's once. For me it would be fine if the server's address is taken if there is no user email configured.

To avoid problems with mailservers that might not accept sending emails for more than one domain, this behavior this could be made optional.
(In my case all domains are hosted and handled by one email server and one nextcloud server - I would not like to set up a nextcloud instance per domain).

(If someone is so nice and point me to the place where I can change it in the code myself, would be fine too)

Implementation

Delegate sending emails to apps. The main target is the Mail app but others may offer this integration too.

Work packages

  • Add a mail sending provider mechanism
  • Implement the mail sending provider for Mail
  • Add an admin setting to choose which email system should be used (system or mail providers)
  • Adjust CalDAV backend to use the providers and system email as fallback
  • Developer documentation for the new API
  • Admin documentation for the setup and any configuration options

Activity

  1. georgehrke commented on Jun 12, 2017

    @georgehrke
    Member

    @tuergeist This is the place to go:
    https://github.com/nextcloud/server/blob/master/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php#L109

    Feel free to send a PR that implements this optionally. :)

  2. georgehrke commented on Jun 12, 2017

    @georgehrke
    Member
  3. tuergeist commented on Jun 13, 2017

    @tuergeist
    Author

    Hi @georgehrke, IMHO the problem is the sender's address which I cannot change easily in neither code locations you pointed to. [Or I'm just too stupid]

  4. tuergeist commented on Jun 13, 2017

    @tuergeist
    Author

    Aaahh. Got it.

  5. robertoschwald commented on Jun 8, 2018

    @robertoschwald

    Any news on this?

  6. ntnsndr commented on Jun 26, 2018

    @ntnsndr

    I'd add that this is an important issue for us at MayFirst.org, who use the same NextCloud across a great many domains and organizational identities. We really need these invitation emails to be coming from the users who send them. Thanks to all who have the capacity and willingness to work on this.

  7. skjnldsv commented on Jun 12, 2019

    @skjnldsv
    Member

    @georgehrke 🎺 could you update this? :)

  8. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    and removed
    staleTicket or PR with no recent activity
    on Jun 12, 2019
  9. removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jun 12, 2019
  10. 59 remaining items

  11. ChristophWurst commented on Nov 14, 2024

    @ChristophWurst
    Member

    could you update the list of work packages above? are admin docs done?

  12. SebastianKrupinski commented on Nov 14, 2024

    @SebastianKrupinski
    Contributor

    could you update the list of work packages above? are admin docs done?

    Done... and Admin docs will be done today, now that the wording is finalized.

  13. SebastianKrupinski commented on Nov 18, 2024

    @SebastianKrupinski
    Contributor
  14. SebastianKrupinski commented on Nov 29, 2024

    @SebastianKrupinski
    Contributor

    All task completed

  15. moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware teamon Nov 29, 2024
  16. TheDom42 commented on Dec 4, 2024

    @TheDom42

    Thank you very much for implementing this great and helpful feature! I wanted to try it out on my server today but I couldn't manage to set it up (maybe because I was looking at the wrong setting or because the current stable Mail App is <4.1 as required by the docs):

    Current config: NC server 30.0.2, Calendar 5.0.6, Mail 4.0.7.

    My NC is in German, so I don't know if the "Kontenbereitstellung" in /settings/admin/groupware is the area where this should be configured. I find the documentation at https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html#mail-providers a bit unclear at this point (I was first looking for a new app in the NC Store and then I was looking for an easy toggle somewhere in the admin or personal settings - like discussed in #5080 (comment)).

    If this "Kontenbereitstellung" is actually the right setting, I don't know how to set it up: All our users already have a working personal email account set up in the Mail App, so I currently would not have the need to configure an "overall" server for the whole instance. Also, I don't know how to work with the placeholders for my current configuration - our NC accounts have the format of initialfirstname.lastname while the emails have the format of [email protected]. So the %USERID% cannot be used as a placeholder for matching. We don't use LDAP.

    Maybe, I am just looking for that easy toggle in the settings: "Use personal email if available". Would it be possible to get a "how-to setup the mail provider for dummies"?

  17. kesselb commented on Dec 4, 2024

    @kesselb
    Contributor

    The toggle you are looking for will be part of Nextcloud 30.0.3.

    Basic Settings (/settings/admin)

    Image

  18. ccbeorn commented on Jan 30, 2025

    @ccbeorn

    Is this feature working for someone?

    Sorry for asking so generically, but on our end, we have set the toggle "Send emails using" to "User's email account", but for calendar invitations, the notification to the invited person is still coming from "[calender account name as per profile setting] via [system cloud name] Nextcloud <webmaster@[clouddomain.tld]>"

    The conditions that are described next to the toggle setting are met (as far as we understand them). The calendar is from a nextcloud user account for which an email-account is existing and linked. Using the "email" function in the cloud webinterface has that mail account fully working and integrated.

    We are using NC 30.0.5 and NC Mail 4.1.2

  19. SebastianKrupinski commented on Jan 30, 2025

    @SebastianKrupinski
    Contributor

    @ccbeorn

    This feature was temporarily disabled on the mail app side due to some issues we discovered with the formatting of the messages that where sent using the mail app, they issues are almost fixed and this should be re-enalbed soon.

    https://github.com/nextcloud/mail/pull/10514/files

  20. Smig0l commented on Apr 8, 2026

    @Smig0l

    come across this thread:
    i have Nextcloud 33.0.1 and added Talk and Calendar apps.
    when i share a file/folder via FIles app the email is sent as configured in the settings ([email protected]).
    but when i create a calendar/talk invite it gets sent '[email protected] on behalf of [email protected]'.
    so in the mail provider settings above i selected "use system email accounts".

    basically i expected to send emails using only the system accounts and not appending headers or using on behalf.
    is it correct? do i need the nexcloud Email app??

  21. SebastianKrupinski commented on Apr 8, 2026

    @SebastianKrupinski
    Contributor

    @Smig0l

    The mail provider sends emails from the users account, which means the user needs the mail app and a configured mail account.

    If you want to only use the system email then you do not need the mail app.

  22. Smig0l commented on Apr 8, 2026

    @Smig0l

    Yeah but even after selecting the 'mail providers ->send email -> use system account' emails from talk invites are sent using [email protected] behalf of [email protected], so this toggle is not working as expected?

  23. SebastianKrupinski commented on Apr 8, 2026

    @SebastianKrupinski
    Contributor

    Yeah but even after selecting the 'mail providers ->send email -> use system account' emails from talk invites are sent using [email protected] behalf of [email protected], so this toggle is not working as expected?

    Yes the toggle is working as expected. we use the on behalf so that responses come back to the user event if they are sent from the system account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions