• 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.
  • Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk 12 CLI Documentation & missing features

Status
Not open for further replies.

Tozz

Regular Pleskian
Hi,

I was wondering if the Plesk 12 CLI documentation is available somewhere. I found:

http://download1.parallels.com/Plesk/PP12/12.0/Doc/en-US/online/plesk-unix-cli/

Simply by changing PP11 to PP12 and 11.0 to 12.0, but I am missing some features here. I need to set e-mail limits and fail2ban settings using CLI utilities, so I can set them during our installation process. However, I am unable to find a CLI command that allows me to set these parameters.

Is it possible to enable fail2ban and e-mail limits using the CLI?
 
Found it. Here are the commands we now use:

Code:
# Enable fail2ban filtering (outputs list of all jails, enables them all)
/opt/psa/bin/ip_ban  -j | tail -n +2 | awk '{ print $1 }' | xargs -I {} /opt/psa/bin/ip_ban --enable-jails {}     
#
# Enable outgoing spam protection
/opt/psa/bin/mailserver --enable-outgoing-antispam
/opt/psa/bin/mailserver --set-outgoing-messages-mbox-limit 10
/opt/psa/bin/mailserver --set-outgoing-messages-domain-limit 25
/opt/psa/bin/mailserver --set-outgoing-messages-subscription-limit 50
/opt/psa/bin/mailserver --set-outgoing-messages-report-period P1M
/opt/psa/bin/mailserver --set-outgoing-messages-notification-period PT1H
/opt/psa/bin/mailserver --set-outgoing-email-mode domain-name
#
 
Status
Not open for further replies.
Back
Top