root@server29:/etc/postfix# /usr/local/psa/admin/plib/api-cli/mailserver.php --help
Usage: mailserver command [options]
Available commands:
--set-relay Sets relaying type.
--set-max-letter-size [B|K|M|G]
Sets maximum letter size in bytes.
--set-max-connections Maximum number of connections (IMAP,
POP3, IMAP over SSL/TLS, or POP3 over
SSL/TLS)
--set-max-connections-per-ip
Maximum number of connections (IMAP,
POP3, IMAP over SSL/TLS, or POP3 over
SSL/TLS) per IP address (for
Courier-IMAP) or per IP address for a
specific mail user (for Dovecot)
--set-maps-status Set MAPS spam protection status.
--add-maps-zone ,...
Adds zone(s) to MAPS protection.(Comma
separated list)
--set-maps-zone ,...
Set zone(s) to MAPS protection.(Comma
separated list)
--remove-maps-zone ,...
Removes zone(s) from MAPS
protection.(Comma separated list)
--set-account-type Allows short and full POP3/IMAP mail
accounts (both), or only full (full)
--use-vocabulary Sets the requirement for the minimum
password strength.
--add-to-black-list Adds domain or domains list (comma
separated) to black list
--remove-from-black-list
Removes domain or domains list (comma
separated) from black list
--add-to-white-list
Adds pair ip_address/net_mask or
ip_addresses/net_masks list (comma
separated) to white list.
--remove-from-white-list
Removes pair ip_address/net_mask or
ip_addresses/net_masks list (comma
separated) from white list.
--add-extra-auto-reply-header
":" ":" ...
Adds extra auto-reply headers
('name:value' arguments).
--remove-extra-auto-reply-header "" "" ...
Removes extra auto-reply headers
('name' arguments).
--set-virusfilter Set used antivirus on the server
--update-spf Update SPF (Sender Policy Framework)
properties.
--set-message-submission
--verify-incoming-mail
DKIM spam protection. Turns on/off
checking of incoming mail
--update-webmail
Available webmail clients. Turns
on/off selected webmail client
--info or -i
Shows options or black/white list or
spf properties or available webmail
clients.
--clean-mail-queue Removes all the messages from the mail
queue.
--help or -h Displays this help page
--email-subaddressing-enable
This option enables an ability to
configure VERP-style email addresses
for mail lists
--add-external-webmail Registers an additional webmail
service. Required options:
webmail-name and webmail-url.
--update-external-webmail
Updates settings of an additional
webmail service.
--remove-external-webmail
Removes registration of an additional
webmail service.
--update-smtp-settings Updates the external SMTP server
settings
--enable-outgoing-antispam Switches on limits on outgoing email
messages.
--disable-outgoing-antispam Switches off limits on outgoing email
messages.
--set-outgoing-messages-mbox-limit
Sets the maximum number of outgoing
messages from a mailbox (per hour).
--set-outgoing-messages-domain-limit
Sets the maximum number of outgoing
messages from a domain (per hour).
--set-outgoing-messages-subscription-limit
Sets the maximum number of outgoing
messages from a subscription (per
hour).
--set-outgoing-messages-enable-sendmail
Turns Linux Sendmail for PHP scripts
on or off. Scripts will be able to
send mail even when the limits on
outgoing messages are reached for the
corresponding mailbox and domain.
--set-outgoing-messages-fix-sender
Fix incorrectly set sender for
outgoing mail. Automatically set valid
email headers and sender envelope
address for outgoing mail from domains
to reduce chances of being treated as
spam.
--set-outgoing-messages-count-recipients
Count recipients rather than messages
when limiting outgoing mail and
counting statistics.
--set-outgoing-messages-report-period
Sets the period of time for the alert
on the Home page about attempts to
exceed limits on outgoing mail (the
last day, week, two weeks, or month).
--set-outgoing-messages-notification-period
Sets the period of time for email
notifications about attempts to exceed
limits on outgoing mail.
--set-outgoing-email-mode
--set-certificate
The name of the certificate to secure
the mail server.
--sign-outgoing-mail DKIM spam protection. Turns on/off
signing of outgoing mail.
--enable-dmarc DMARC spam protection. Turns on DMARC
validation for incoming mail.
--disable-dmarc DMARC spam protection. Turns off DMARC
validation for incoming mail.
--quota-warning-enable
Send a notification to mail users when
their mailbox quota usage exceeds 95%
--set-mail-autodiscover
Turns Mail Autodiscover on/off
--set-mail-autodiscover-domain-name
Specify a custom domain name for mail
autodiscover. Custom domain name can
be unset by specifying empty string
--configure-smarthost Configures a smarthost.
--enable-smarthost Enables sending mail through the
smarthost.
--disable-smarthost Disables sending mail through the
smarthost.
Available options:
-auth-type Types of authorization(required for
--set-relay auth).
-lock-time