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

Set Store hostname in SmtpOptions #415

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

Conversation

MennoTammens
Copy link

@MennoTammens MennoTammens commented Apr 19, 2024

Description (*)

Laminas SMTP Transport Options has the option to set the name of the local client hostname, this is the name the client uses to identify itself to the mail server (HELO command).
The default setting is localhost, but some spam filters don't like that (SpamAssassin rule HELO_LOCALHOST)

This patch uses the hostname of the website as name in the SmtpOptions.

Manual testing scenarios (*)

  1. Send test mail
  2. Open the mail headers
  3. Before this patch:
    Received: from localhost (real.host.name [1.2.3.4]) by mx.mail.server;
  4. With this patch:
    Received: from store.host.name (real.host.name [1.2.3.4]) by mx.mail.server;

Questions or comments

Should this be configurable? Are there situations where this solution is worse than localhost?

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