-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Details of the issue
This issue is basically a duplicate of #25716 but with a twist: if the Nextcloud install is on a subdomain. I think the implementation of the initial fix in #27306 is incorrect, when you have Nextcloud installed on a subdomain. For example, I have it installed on cloud.mydomain.tld, and the overwrite.cli.url config is set to https://cloud.mydomain.tld, so the domain that will be set in the EHLO header will be cloud.mydomain.com.
Problem is, the Gmail SMTP relay expects the domain in the EHLO header to be mydomain.tld.
The value set in the EHLO command should be the top domain, or a new config (like maildomain for example) should be added to be able to customize the value and not have to rely on an automatically generated one, that could be incorrect.
Steps to reproduce
- Install Nextcloud on a subdomain (ex: cloud.domain.tld)
- Use Google Smtp-Relay (smtp-relay.gmail.com) Service to deliver mails.
Expected behaviour
Mails are delivered.
Actual behaviour
Mails are refused by the Google SMTP relay.
Server configuration
Nextcloud version: 22.1.1
Where did you install Nextcloud from: Official Docker Image