• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Question Explanation mailmng-server arguments

Tozz

Regular Pleskian
We wish to configure SPF checking in Plesk using the CLI. The --help parameter shows the following information:

Code:
# /opt/psa/admin/bin/mailmng-server --update-spf --help

update SPF rules

Usage: --update-spf [--spf-behavior=spf_behavior] [--spf-rules=spf_rules] [--spf-guess=spf_guess] [--spf-exp=<spf_exp>] [--spf-ignore-dns-error=<true|false>]

Allowed options to update SPF rules:

  --spf-behavior arg         SPF behavior
  --spf-rules arg            SPF rules
  --spf-guess arg            SPF guess
  --spf-exp arg              SPF exp
  --spf-ignore-dns-error arg SPF dns-lookup error policy
  -h [ --help ]              displays this help message

I can't find any explanation to what 'arg' should be? What are allowed values for eg. --spf-exp ? --spf-guess ? --spf-rules ? --spf-behavior ?

Can someone from Plesk please explain the CLI usage and fix the help documentation?
 
'arg' is the description of your SPF rule. For example, you can add the local SPF rules via command line using the following command:

# plesk sbin mailmng-server --update-spf --spf-rules="ip4:xxx.yyy.xxx.zzz ip4:zzz.yyy.zzzz.xxx ip4:176.74.18.119 include:example1.xxx.com.br ip6:xxxx:db8:f61:a1ff:0:0:0:80"
 
Back
Top