• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

solved - DNS Blackhole Lists over CLI, possible?

ESTUGO

Basic Pleskian
Hi there,

how can I update the "Blackhole Lists" using CLI (Plesk12/12.5 CentOS6/7)? I have found nothing in the manual. I mean the list under: Tools a. Settings -> Mail Server Settings -> DNS zones for DNSBL service

I used Postfix.

Of course I can edit /etc/postfx/main.cf, but Plesk can overrides sometime my the settings, or?


many thanks
Erik
 
Hi Erik,

Plesk comes with a bunch of possible CLI - commands, which you all can learn using by reading the Plesk documentation: Using Command Line Utilities ( Plesk 12.5 online documentation )

You will find there as well: mailserver: Mail Server Settings

... as for example:

Code:
plesk bin mailserver --add-maps-zone sbl.spamhaus.org;xbl.spamhaus.org
plesk bin mailserver --set-maps-status true

These commands will modify your "main.cf" ( smtpd_client_restrictions = ... ) from postfix with the desired maps-zones, which Plesk will never change in case of any updates/upgrades/patches, because your modification is as well stored in Plesk database table "ServiceNodeConfiguration".
 
really really nice, it works, many tanks! One could call it differently, e.g. blackhole or dnsbl ... xD
 
Back
Top