Skip to content

Fix SMTP connection issue by removing incorrect HELO command#105

Merged
SpecialAro merged 1 commit intoferdium:mainfrom
mazzz1y:main
Dec 15, 2024
Merged

Fix SMTP connection issue by removing incorrect HELO command#105
SpecialAro merged 1 commit intoferdium:mainfrom
mazzz1y:main

Conversation

@mazzz1y
Copy link
Contributor

@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.

@mazzz1y
Copy link
Contributor Author

mazzz1y commented Dec 6, 2024

@vraravam @SpecialAro

Could you please check this PR? Without that fix, Ferdium can't send emails through the Postfix SMTP server, as the current configuration doesn't follow standards

@SpecialAro SpecialAro merged commit 5e56036 into ferdium:main Dec 15, 2024
1 check passed
@SpecialAro
Copy link
Member

@all-contributors please add @mazzz1y for code.

@allcontributors
Copy link
Contributor

@SpecialAro

I've put up a pull request to add @mazzz1y! 🎉

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.

2 participants