Mailing List Archive

Adding IP to report
When receiving a report in a spam the reported rules state reason and
score but it would be useful if, either on one of those rules or a
separate rule (or even in the Subject) there could be a report of the
final Received IP. Depending on the IP and its country of origin I
sometimes block the sending IP by some method.
Re: Adding IP to report [ In reply to ]
On 16.01.24 15:29, Linkcheck via users wrote:
>When receiving a report in a spam the reported rules state reason and
>score but it would be useful if, either on one of those rules or a
>separate rule (or even in the Subject) there could be a report of the
>final Received IP. Depending on the IP and its country of origin I
>sometimes block the sending IP by some method.

perhaps you could add to your SA config or user_prefs:

add_header spam LastIP _LASTEXTERNALIP_

https://spamassassin.apache.org/full/4.0.x/doc/Mail_SpamAssassin_Conf.html



--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Quantum mechanics: The dreams stuff is made of.
Re: Adding IP to report [ In reply to ]
Thanks, Matus, but that does not work. I'm looking for something that
will show in the spam body or subject so I do not have to view the headers.
Re: Adding IP to report [ In reply to ]
So there is no solution to this?

Is it possible to add the IP as an argument to a rule's Describe, using
something like $1 for the detected regex value? If so, how would this be
implemented?

An actual exemple is FREEMAIL_ENVFROM_END_DIGIT which has a description
such as [sfierds31(at)gmail.com]