The maillist utility is used to manage mailing lists through CLI. By using this utility, you can perform the following tasks:
Syntax
maillist <command> [<maillist name>] [<domain name>] [
<option_1> [<param>]
[<option_2> [<param>]]
…[<option_N> [<param>]]
]
Example
The following command line creates mailing list MailList on domain example.com domain, sets password userpass for the mailing list administrator, orders not to send the 'mailing list created' notification to this administrator, and sets the listadmin@domain1.com email address for this administrator.
# ./maillist --create MailList -domain example.com -passwd MyPass -notify false -email listadmin@example.com
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Creates a mailing list. Requires concomitant use of the |
To create mailing list MailList on domain example.com, set the mailing list administrator's password to userpass, set the password's type to encrypted, and set the mailing list administrator's e-mail address to admin@example.net: # ./maillist --create MailList -domain example.com -email admin@example.net -passwd user pass -passwd_type plain or # ./maillist -c MailList -domain example.com -email admin@example.net -passwd user pass -passwd_type plain |
|
|
Updates mailing list settings. |
To add e-mail address admin@example to mailing list MailList : # ./maillist --update MailList -members add:admin@example.com or # ./maillist -u MailList -members add:admin@example.com |
|
|
Updates mail service status on a domain. Requires concomitant use of the |
To enable mailing list service on domain example.com: # ./maillist --update-service example.com -status enabled |
|
|
Deletes a mailing list from domain. |
To remove mailing list MailList from domain example.com: # ./maillist --remove MailList -domain example.com or # ./maillist –r MailList -domain example.com |
|
|
Enables mailing list service on a domain. |
To enable mailing list service on domain example.com: # ./maillist --on example.com |
|
|
Disables mailing list service on a domain. |
To disable mailing list service on domain example.com: # ./maillist --off example.com |
|
|
Displays the mailing list members. |
To display the list of members of mailing list MailList on domain example.com: # ./maillist --info MailList -domain example.com or # ./maillist -i MailList -domain example.com |
|
|
Displays help on the use of the utility. |
To display help on the use of the maillist utility: # ./maillist –-help or # ./maillist –h |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Specifies the name of a domain to which a mailing list belongs. Used with all commands, except the |
To remove mailing list MailList from domain example.com: # ./maillist --remove MailList -domain example.com |
|
|
Sets the mailing list administrator's password. Used only with the For additional comments, see the Note below the table. |
To create mailing list MailList on domain example.com, set the mailing list administrator's password to userpass, set the password's type to encrypted, set the mailing list administrator's e-mail address to admin@example.net, and disable e-mail notification of the mailing list administrator about the mailing list creation: # ./maillist -c MailList -domain example.com -email admin@example.net -passwd user pass -passwd_type plain -notify false
|
|
|
Specifies the type of the mailing list administrator's password. Ignored if no password is specified. Used only with the For additional comments, see the Note below the table. |
|
|
|
Sets an e-mail address for a mailing list administrator. Used with the |
|
|
|
Allows or prevents e-mail notification of the mailing list administrator about the mailing list creation. Set to Used only with the |
|
|
|
Enables or disables a mailing list. Is set to |
To disable mailing list MailList on domain example.com: # ./maillist -u MailList -domain example.com -status false |
|
|
Adds to or deletes e-mail addresses from a mailing list. |
To add e-mail addresses jane@example and mike@domain.name to mailing list MailList : # ./maillist -u MailList -members -domain example.com add:jane@example.com,mike@example.com |
Note: Use of this option is not recommended. For security reasons, you can transfer non-encrypted passwords by using environment variable PSA_PASSWORD. Passing passwords through CLI as parameters of the -passwd option may potentially compromise the system's security as command line can be observed by other users of the system. It is more secure to pass passwords through the environment variables. You can transfer non-encrypted passwords by using environment variable PSA_PASSWORD while using single quotes to specify the empty values in the command line for the argument of the -passwd - -passwd_type options.
Similarly, you can transfer encrypted passwords through the environment variable PSA_CRYPTED_PASSWORD while using single quotes to specify the empty values in the command line for the argument of the -passwd and -passwd_type options.