Skip to content
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

Fix SMTP connection issue by removing incorrect HELO command #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mazzz1y
Copy link

@mazzz1y mazzz1y commented Mar 5, 2024

The Ferdium server is unable to send emails over SMTP on servers that strictly check the HELO message:

Couldn't send mail: Error: Can't send mail - all recipients were rejected: 501 5.5.2 <https://ferdium.example.com>: Helo command rejected: Invalid name

This issue happens because the APP_URL, used as the HELO name, includes the protocol (https://), which should not be part of a HELO message. The HELO command requires a proper domain name without the protocol.

Given that the Ferdium server acts as a sending client and the exact content of the HELO message is not critical (as long as it looks like a domain), we can address this by removing the smtp/name from the SMTP configuration and using the default value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant