# Virtualmin check SPF records?

**URL:** <https://forum.virtualmin.com/t/virtualmin-check-spf-records/113028>\
**Category:** Virtualmin\
**Created:** [November 22, 2021, 10:46am UTC](https://forum.virtualmin.com/t/virtualmin-check-spf-records/113028 "2021-11-22T10:46:10Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![MrPete](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/mrpete/32/3872_2.png) [@MrPete](https://forum.virtualmin.com/u/MrPete)\
**Post date:** [December 7, 2021, 6:08pm UTC](https://forum.virtualmin.com/t/virtualmin-check-spf-records/113028/21 "2021-12-07T18:08:19Z")

</div>

Very interesting.

For years, I ran postfix with a separate spf checking milter (policyd-spf-perl), that provided 100% blocking of spf-fail emails at the server level. (I also did RBL checking the same way.) This had several advantages:

- Server logs immediately show bad-actor email sources
- Fail2ban analysis could firewall those sources
- No user or admin needs to deal with such garbage

In updating to this new system, I have been curious what would be the impact of doing SPF/RBL checking in SpamAssassin.

Clearly, at the least quite a bit more traffic will make it through.

But I think even more important is this: SpamAssassin provides a single metric for scoring “spam” – the “score.”

AFAIK, most users (and admins TBH) think of “spam” as a question of “is this a valid email from a reputable source.” _The decision is made on the content of the message._

When dealing with SPF failure, or extreme RBL failure, _the physical source of the email is invalidated._ It doesn’t matter what the content is.

I’m thinking it is risky (and costly in several ways) to fold invalid-source information into the SpamAssassin score.

But maybe that’s just me.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [February 5, 2022, 6:08pm UTC](https://forum.virtualmin.com/t/virtualmin-check-spf-records/113028/22 "2022-02-05T18:08:48Z")

</div>

Closed on February 5, 2022, 6:08pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.virtualmin.com/t/virtualmin-check-spf-records/113028.md?page=1)
