• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Is it possible to create a manual spam filter?

carlsson

Basic Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian v18.0.65_build1800241122.08 os_Ubuntu 20.04
OMG what I hate emails from "BOOM OF SALES". They never seem to end, even with the best antispam software.
I'd like to create a manual rule on the mail server that deletes all mail from "BOOM OF SALES". How can I do that? (I realize I can do it on my email client, but I want to delete it for all my users from the source.)

1733147647761.png
 
Do you have SpamAssassin installed on the sever already? If so, you can create custom spam rules for SpamAssassin. To get started, you can create a file called custom_rules.cf (you can name the file whatever you like, as long as it has the .cf extension) to the /etc/spamassassin directory and add the following rule to it:
Code:
header     BOOM_OF_SALSES    From:name =~  /boom of sales/i
describe   BOOM_OF_SALSES    Boom of sales Spam
score      BOOM_OF_SALSES    10.0
This rule will add a spam score of 10 to any message of which the sender name matches boom of sales. I assume your spam score threshold is lower then 10, if it's not, increase the score in the rule. Afterwards restart SpamAssassin. If you use the native Plesk SpamAssasin component you can use sudo /usr/local/psa/admin/bin/spammng --restart, if you use Plesk Email Security I think restarting Amavis systemctl restart amavisd suffices (but I am not completely sure).

SpamAssassin has many elaborate options for plugins and to create your own rules, which can be overwhelming to get started with. However there are many tutorials online if your interested going down that road. If you don't like to manually configure SpamAssassin I can really recommend the paid Warden Anti-spam and Virus Protection extension, which provides all SpamAssassin options in Plesk.
 
Last edited:
Back
Top