-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mail notification for new share generates invalid email from (Error: Swift_RfcComplianceException
: Address in mailbox given [...] does not comply with RFC 2822, 3.6.2.)
#26683
Comments
Swift_RfcComplianceException
: Address in mailbox given [...] does not comply with RFC 2822, 3.6.2.)
I noticed this on a setup where no email is configured and it took cc @kesselb |
The response to the POST request to {
"ocs": {
"meta": {
"status": "faulure",
"statuscode": 403,
"message": "Address in mailbox given [Powered by Company@localhost.localdomain| does not comply with RFC 2822, 3.6.2."
}
}
} That email username is coming most likely from the theming as #21120 (comment) |
cc @juliushaertl for the theming part |
In my opinion the issue is not a missing mail setup but simply a bug in the code. Why would you ever use Having no sender part in the server mail configuration is a perfectly fine use case. It should (and will in at least two cases) use specific sender parts ( EDIT: Just to clarify, server/lib/private/Share20/Manager.php Line 917 in d2ea068
|
True point. 👍 That should be fixed. |
Fixes #26683 Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Fix is in #27199 |
Fixes #26683 Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Fixes #26683 Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Fixes #26683 Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
The code at:
server/lib/private/Share20/Manager.php
Line 925 in d2ea068
mail_from_address
. Error messages are:As can be seen in
server/lib/public/Util.php
Line 291 in d2ea068
$user_part
is used ifmail_from_address
has not been set for the instance. TheinstanceName
given by thesendMailNotification
function may contain spaces which is not allowed.server/lib/private/Share20/Manager.php
Line 917 in d2ea068
Please use a
$user_part
similar to the lost password function:server/core/Application.php
Line 68 in 9de329a
$user_part
makes sense and is not dependent on arbitrary strings defined in the admin section. Maybe use something likeshares-noreply
.The text was updated successfully, but these errors were encountered: