• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Command line not working for Spam

Change Maker

Basic Pleskian
Server operating system version
Ubuntu 22.04.4 LTS
Plesk version and microupdate number
18.0.58 Update #2
Hi
I've followed this Plesk Thread.
Using the guide for Linux I logged on to my Server via Putty and entered:
plesk bin mailserver --add-to-black-list *@*.shop
I wanted to stop all from that domain and the guide note in the article says I could use that syntax?

The Error I get is:
An error occurred during operation with black list: Unable to add domain to black list: The domain name *@*.shop is invalid.

Am I doing something wrong?
I also get an error for this one:
plesk bin mailserver --add-to-black-list *@sa.com
Thanks
 
The line command example outlined in the article can only be used to blacklist full domains (like example.com or mydomain.de). It does not allow for patterns (like *@*.shop) to be added. Those can be added via Plesk (in the GUI), as also outlined in the article.
 
The blacklist in Tools & Settings > Mail Server Settings doesn't allow the use of wildcards. Only specific domain names can be set.

You can set per mailbox rules when Spamassassin is used or globally when Plesk Email Security is used.
 
You can set per mailbox rules when Spamassassin is used or globally when Plesk Email Security is used.
Small addition, even when Spamassassin is used (w/o PES) senders can be blocked globally using wildcards via Tools & Settings > Spam filter > Black List :D
 
The line command example outlined in the article can only be used to blacklist full domains (like example.com or mydomain.de). It does not allow for patterns (like *@*.shop) to be added. Those can be added via Plesk (in the GUI), as also outlined in the article.
1735659026834.png

So I want to blacklist that whole domain. Is my syntax wrong for doing that then? Using the CMD Line?
 
The blacklist in Tools & Settings > Mail Server Settings doesn't allow the use of wildcards. Only specific domain names can be set.

You can set per mailbox rules when Spamassassin is used or globally when Plesk Email Security is used.
1735659228030.png
So that's what I put into the Spam Filter in Webmail for these 3 domains.
Are you saying I need to put this somewhere else?
Thanks
 
That is sieve filtering performed server side. It will march those domain names and will perform the set action.

You also have Spam settings when editing the email address in Plesk. That is what I was referring to. Spam setting can also be set via CLI.

> So I want to blacklist that whole domain. Is my syntax wrong for doing that then? Using the CMD Line?

Just the domain name, instead of example.com, in the command from point 2.
 
That is sieve filtering performed server side. It will march those domain names and will perform the set action.

You also have Spam settings when editing the email address in Plesk. That is what I was referring to. Spam setting can also be set via CLI.

> So I want to blacklist that whole domain. Is my syntax wrong for doing that then? Using the CMD Line?

Just the domain name, instead of example.com, in the command from point 2.
I should point out that whilst my emails are on my server, I don't use Plesk. I use my Mail Client zohomail as I have a CRM with records integrated.
Now from point 2, if I want to blacklist all with .shop can I ask what should be the syntax please?
 
Simply do it in the mail filter.

Show us the entire filter panel for the rule you shared earlier.
 
Match any of the following rules.

I would move them to the Spam folder. That way the system can learn from the received emails.
You will have to empty the Spam folder from time to time ( one or two times per year, depending on the received mail volume).
 
Ah. Of course. Makes sense. What a dumbo I am. Lets see what happens now then.
Thanks a lot for staying with me on this. Really appreciate that.
Robert
 
Back
Top