Block Incoming Emails by Subject

General eFa discussion
Post Reply
1gtest
Posts: 2
Joined: 04 Jul 2024 09:09

Block Incoming Emails by Subject

Post by 1gtest »

Hi

Advice requested regarding blocking incoming spam

- We block the sender address and the originating IP, however, this does not help as the spam then comes in from a different address or IP
- From the client side it seems the spam is continuing without fail
- Emails seems to originate from .eu and .it (Italy) domains

We are looking at blocking a particular subject as the subject is the only constant I can see in all the spam coming in

Any advice or guidance will be appreciated

MailWatch Version: 1.2.18
Postfix Version: 3.5.9
MailScanner Version: 5.4.2
ClamAV Version: 0.103.5
SpamAssassin Version: 3.4.6
PHP Version: 7.2.24
MySQL Version: 10.3.28-MariaDB


Thanks
1gtest
Posts: 2
Joined: 04 Jul 2024 09:09

Re: Block Incoming Emails by Subject

Post by 1gtest »

Came right with adding custom SpamAssassin rule

https://cwiki.apache.org/confluence/dis ... itingRules
User avatar
pdwalker
Posts: 1582
Joined: 18 Mar 2015 09:16

Re: Block Incoming Emails by Subject

Post by pdwalker »

Historically, there was the MCP for blocking content: /viewtopic.php?f=14&t=444 but this is no longer recommended.

Things are kept simple by adding in your own SpamAssassin rules into /etc/mail/spamassassin/local.cf

Any instructions on adding your own spamassassin rules should help you tweak your system to help catch these annoying junk messages.
Post Reply