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
Send FQDN instead of simple hostname in SMTP HELO command #100
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
this is ok to test |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
The test failures being reported in those runs, for |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
MailMessageTest is now fixed, however there are still 4 test failures. They don't seem related to this PR. |
Looking further, RFC-821 states "The argument field contains the host name of the sender-SMTP." and the formal syntax suggests that "domain" means FQDN. RFC-2821 clarifies
RFC-5321 deprecates the use of address literals. |
Ok, so basically getCanonicalHostName returns exactly what we need, right ? |
Yes, and we should change HELO to EHLO. |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
May I suggest placing the changes on a separate branch to allow for an easier rebase? |
Sure, not very comfortable with git yet... I will probably have to create a new PR as this one is linked to master on my side (my mistake), right ? ... or not: |
Some SMTP servers block messages when HELO command contains a simple hostname instead of a fully qualified domain name.
This path fixes this by using getCanonicalHostName instead of getHostName