You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calendar invites: Administrator shall choose if server's or user's email address is used #5080
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
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]
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.
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.
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"?
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.
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.
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??
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?
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.
Activity
georgehrke commentedon Jun 12, 2017
@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. :)
georgehrke commentedon Jun 12, 2017
(Message provides a
setFrommethod, see https://github.com/nextcloud/server/blob/master/lib/private/Mail/Message.php#L81)tuergeist commentedon Jun 13, 2017
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]
tuergeist commentedon Jun 13, 2017
Aaahh. Got it.
robertoschwald commentedon Jun 8, 2018
Any news on this?
ntnsndr commentedon Jun 26, 2018
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.
skjnldsv commentedon Jun 12, 2019
@georgehrke 🎺 could you update this? :)
59 remaining items
ChristophWurst commentedon Nov 14, 2024
could you update the list of work packages above? are admin docs done?
SebastianKrupinski commentedon Nov 14, 2024
Done... and Admin docs will be done today, now that the wording is finalized.
SebastianKrupinski commentedon Nov 18, 2024
Documentation nextcloud/documentation#12372
SebastianKrupinski commentedon Nov 29, 2024
Admin Documentation
nextcloud/documentation#12372
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html#mail-providers
SebastianKrupinski commentedon Nov 29, 2024
All task completed
TheDom42 commentedon Dec 4, 2024
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/groupwareis 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.lastnamewhile 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"?
kesselb commentedon Dec 4, 2024
The toggle you are looking for will be part of Nextcloud 30.0.3.
Basic Settings (/settings/admin)
ccbeorn commentedon Jan 30, 2025
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
SebastianKrupinski commentedon Jan 30, 2025
@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
Smig0l commentedon Apr 8, 2026
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??
SebastianKrupinski commentedon Apr 8, 2026
@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.
Smig0l commentedon Apr 8, 2026
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?
SebastianKrupinski commentedon Apr 8, 2026
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.