• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

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