-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Wrong sender email address when using Docker image #25162
Comments
Sorry, why this one got closed? This is exactly the problem I have with the fresh install of Nextcloud: "A problem occurred while sending the email. Please revise your settings. (Error: Address in mailbox given [nextcloud@@localhost.localdomain] does not comply with RFC 2822, 3.6.2. |
Although this issue was closed for unknown reason, I think I have got rid of this problem with my installation using the following settings:
I was able to send the test email properly. |
I've had this issue for ages. I upgraded to v23 and there's still the same issue. |
I've the same problem right now. The additional @localhost.localdomain gives me the problem. |
Same here. |
After reading docs thoroughly, was able to fix the issue. docker-compose config:
|
Yeah, the issue is now more about Nextcloud checking for invalid configuration before trying to send the email. |
I see the misinterpretation of MAIL_FROM_ADDRESS: It suggest to type "mail@domain.tld ". Could it be? |
+1 same issue here on Nextcloud 23.0.3. In Settings -> Basic Settings, under Email Server when I click "Send email" to test and verify settings, it shows this error: |
Yep. In Also, I don't think it is a good idea to just fallback to |
This comment was marked as outdated.
This comment was marked as outdated.
@szaimen The This isn't really a bug, but an issue with:
In OP's case, environment variable contains the full address |
Can we split the two then, the first part should be an issue in nextcloud/docker, or use nextcloud/docker#1187, and this issue should be renamed to handle the second part. |
sounds good! |
Fixes #25162 Signed-off-by: Josh <josh.t.richards@gmail.com>
How to use GitHub
Steps to reproduce
Expected behaviour
Mail should arrive
Actual behaviour
A problem occurred while sending the email. Please revise your settings. (Error: Address in mailbox given [cloud@gunzo.eu@localhost.localdomain] does not comply with RFC 2822, 3.6.2.)
Server configuration
Operating system: Docker
Web server: Apache
Database: MariaDB
PHP version: From docker image
Nextcloud version: 20.0.5
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: Docker
Config.php:
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'smtp.eu.mailgun.org',
'mail_smtpport' => '587',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpname' => 'postmaster@gunzo.eu',
'mail_smtppassword' => 'xxxxx',
'mail_from_address' => 'cloud',
'mail_domain' => 'gunzo.eu',
docker-compose.xml:
The text was updated successfully, but these errors were encountered: