Spam assassin custom rule to block PDF files having Urls.

2022-07-01 Thread Indunil Jayasooriya
Dear List, We get some PDF files. When we open them there is a link inside the PDF file. We don't need these since these urls may be harmful. Here's one Url that the PDF file contained. https://t.ly/8R_H Can we block these with Spam Assassin? If so, how to write a custom rule for it? Below

Re: Spam assassin custom rule to block PDF files having Urls.

2022-07-01 Thread Matus UHLAR - fantomas
On 01.07.22 20:36, Indunil Jayasooriya wrote: uri SPAM_1Jul2022_uri_1 /https?\:\/\/t.ly\/8R_H/i describe SPAM_1Jul2022_uri_1 Email containing above words score SPAM_1Jul2022_uri_1 11.0 It can NOT detect this url inside the PDF file. But, if I just write it to the mail body, It can detect it.

Re: Spam assassin custom rule to block PDF files having Urls.

2022-07-01 Thread Indunil Jayasooriya
Hi, I wrote the rule below. uri SPAM_1Jul2022_uri_1 /https?\:\/\/t.ly\/8R_H/i describe SPAM_1Jul2022_uri_1 Email containing above words score SPAM_1Jul2022_uri_1 11.0 It can NOT detect this url inside the PDF file. But, if I just write it to the mail body, It can detect it. I need a rule that