-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
HELO does not publish an SPF Record
#4631
Comments
Hi there, yeah if there is a new introduction of a new complaint with that change we´ll probably won´t implement that. In any case this small change won´t change a spam score of a mail which is already marked as spam due to other flaws. We´ll evaluate that but i don´t see that we´ll implement that. |
The HELO should contain the hostname, not the mail domain name. So the current configuration is correct.
This is not about the www subdomain, but rather about
You can do that too, @strarsis. There is nothing that needs to be changed on the Mailcow side. I am not aware of any requirement of having an SPF record for your sending hostname, so I don't think we need to add this record to our DNS check. |
@mkuron: So this adds the SPF record to the subdomain (=hostname mentioned in the HELO banner)? I have added the SFP record only to the TLD. Spamassassin appears to be more happy with this specific SPF record, so adding a DNS check may still be worth it? |
Feel free to submit a pull request against https://github.com/mailcow/mailcow-dockerized/blob/master/data/web/inc/ajax/dns_diagnostics.php. Note that we display the SPF record as optional there because we don't want people to blindly copy a default value that might block some of their other servers. So this new record should also be optional, but a check should be performed that, if it's present, it includes $MAILCOW_HOSTNAME. |
I added the mailcow HELO:
For |
In but a new issue appeared: Your reverse DNS does not match with your sending domain. Your IP address x.x.x.x is associated with the domain mail.example.com. You may want to publish a pointer (PTR type) DNS record with a value of example.com or use mail.example.com as hostname in your mail software
Solution:Finally, I changed |
Summary
mail-tester.com lists the complaint
HELO does not publish an SPF Record
.Motivation
Publishing a SFP record in the HELO banner should (slightly) improve the spam score of an email.
As this requires only minimal changes (see
Additional context
), it would be a good idea to add this to mailcow by default.Additional context
Just by adding a piece of config to
/etc/postfix/main.cf
(as mailcow override todata/conf/postfix/extra.cf
) made it pass:https://serverfault.com/a/1064047/958731
Alternatively, a
www
TXT
DNS record with the SPF value should also work:https://stackoverflow.com/questions/71786859/email-dns-setup-how-do-i-make-helo-publish-an-spf-record-spf-helo-none-spf
Using
$mydomain
in the HELO banner appears to introduce another complaint though:Your reverse DNS does not match with your sending domain.
Has this something do to with a SPF record being set for
example.com
and notmail.example.com
?The text was updated successfully, but these errors were encountered: