• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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