Re: Help with config rules

Bill Cole <[email protected]>
Newsgroups gmane.mail.spam.spamassassin.general
Message-ID <[email protected]>
On 2025-06-04 at 16:44:37 UTC-0400 (Wed, 4 Jun 2025 22:44:37 +0200)
Matija Nalis <[email protected]>
is rumored to have said:

> On Wed, Jun 04, 2025 at 09:34:58AM -0400, Bill Cole wrote:
>> The current SPF record for klovia.htt-consult.com is "v=spf1 mx -all" 
>> which
>> is an assertion that the domain never generates any email.
>
> While the rest sounds reasonable, I'm not sure if this is correct?

It is definitely not correct. I somehow managed to look at that and 
entirely miss the 'mx' element.

> AFAIK, "v=spf1 mx -all" is an assertion that domain sends mail only
> via the server which is set as MX for that domain.

Correct, of course.

> I.e. in this particular case, it is equivalent to
> "v=spf1 a:klovia.htt-consult.com -all" or "v=spf1 ip4:23.123.122.149 
> -all"
>
> which would be just fine, if that was the server which is sending
> email. However, it seems that mail was actually sent by different 
> server:
> medon.htt-consult.com [23.123.122.148], which causes the SPF failure.
>
> If both of those servers are supposed to be sending mails claiming
> to be from *@htt-consult.com, then you should put both of them in SPF
> record, e.g.
>
> "v=spf1 mx a:klovia.htt-consult.com a:medon.htt-consult.com -all"
>
> (that "mx" is not necessary, but probably won't harm, and might help
> a little from the problem repeating in the case servers change in the
> future)
>
>
> -- 
> Opinions above are GNU-copylefted.


-- 
  Bill Cole
  [email protected] or [email protected]
  (AKA @[email protected] and many *@billmail.scconsult.com 
addresses)
  Not Currently Available For Hire
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.