• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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