NAME
sympa, sympa.pl - Command line utility to manage Sympa
SYNOPSIS
sympa command [ general options… ] …
DESCRIPTION
NOTE: On overview of Sympa documentation see sympa_toc(1).
sympa is invoked from command line then performs various administration
tasks.
GENERAL OPTIONS
sympa may run with following options in general.
-
-d,--debugEnable debug mode.
-
-f,--config=fileForce Sympa to use an alternative configuration file instead of
/etc/sympa/sympa.conf. -
-l,--lang=langSet this option to use a language for Sympa. The corresponding gettext catalog file must be located in
$LOCALEDIRdirectory. -
--log_level=levelSets Sympa log level.
-
-m,--mailEnable SMTP logging.
-
--nooutSkip output to the console except for fatal error messages.
COMMANDS
Currently following commands are available.
To see detail of each command, run ‘sympa help command’.
-
Add users to the list
-
Manipulate list bounced users
-
Check environment
-
Close a list or the lists belonging to a family
-
Manipulate configuration of Sympa
-
Copy the list
-
Create a list
-
Delete users from the list
-
Dump users of the lists
-
TBD
-
Display help information about Sympa CLI
-
Update inclusion
-
Instantiate the lists in a family
-
Lowercase email addresses in database
-
Create aliases file
-
Output a MD5 digest
-
Move or copy the list
-
Open the list
-
Rebuild the archives of the list
-
Recreate config cache of the lists
-
Restore users of the lists
-
Show subscribers of the list
-
Send digest
-
Set properties of the users of the list
-
Show pending lists
-
Synchronize database cache of the lists
-
Test the functions of Sympa
-
Modify the existing list in the family
-
Upgrade Sympa
-
“sympa upgrade_config_location”
TBD
-
Manipulate list users
-
Print the version number of Sympa
DESCRIPTION FOR EARLIER VERSION
NOTE:
Description in this section is kept for compatibility to earlier versions.
Run sympa help or see sympa(1) to see recent conventions.
Synopsis
sympa.pl [ -d, --debug ] [ -f, --file=another.sympa.conf ]
[ -l, --lang=lang ] [ -m, --mail ]
[ -h, --help ] [ -v, --version ]
[ --add=list@domain [–role=role] [–quiet] [–notify] [–force] ]
[ --del=list@domain [–role=role] [–quiet] [–notify] [–force] ]
[ --open_list=list[@robot] [–notify] ]
[ --close_list=list[@robot] ]
[ --purge_list=list[@robot] ]
[ --lowercase ] [ --make_alias_file ]
[ --dump_users --list=list@domain|ALL [ --role=roles ] ]
[ --restore_users --list=list@domain|ALL [ --role=roles ] ]
[ --show_pending_lists=robot ]
[ --rebuildarc=list[@robot] ]
Options
sympa.pl may run with following options in general.
-
-d,--debugEnable debug mode.
-
-f,--config=fileForce Sympa to use an alternative configuration file instead of
/etc/sympa/sympa.conf. -
-l,--lang=langSet this option to use a language for Sympa. The corresponding gettext catalog file must be located in
$LOCALEDIRdirectory. -
--log_level=levelSets Sympa log level.
With the following options sympa.pl will run in batch mode:
-
--add=list@domain [--role=role ] [--quiet] [--notify] [--force]Add email(s) from the list. Data are read from standard input. The data should contain one email address per line.
Sample:
## emails to be added john.steward@some.company.com John Steward mary.blacksmith@another.company.com Mary BlacksmithNote: This option was added on Sympa 6.2.67b.2.
New command line format:
sympa add[--role=role ] [--quiet] [--notify] [--force] list@domain
-
--add_list=family_name--robot=robot_name--input_file=/path/to/file.xmlAdd the list described by the file.xml under robot_name, to the family family_name.
New command line format:
sympa create--input_file=/path/to/file.xml family_name@@robot_name
-
--change_user_email--current_email=current--new_email=newChanges a user email address in all Sympa databases (subscriber_table, list config, etc) for all virtual robots.
New command line format:
sympa user movecurrent new
-
--close_family=family_name--robot=robot_nameClose lists of family_name family under robot_name.
New command line format:
sympa closefamily_name@@robot_name
-
--close_list=list[@robot]Close the list (changing its status to closed), remove aliases and remove subscribers from DB (a dump is created in the list directory to allow restoring the list)
New command line format:
sympa closelist[@robot]
-
--conf_2_dbDeprecated. Load sympa.conf and each robot.conf into database.
New command line format:
None.
-
--copy_list=listname@robot--new_listname=newlistname--new_listrobot=newrobotCopy a list.
New command line format:
sympa move --mode=copylistname@robot newlistname@newrobotsympa copylistname@robot newlistname@newrobot
-
--create_list--robot=robot_name--input_file=/path/to/file.xmlCreate a list with the XML file under robot robot_name.
New command line format:
sympa create--input_file=/path/to/file.xml robot_name
-
--del=list@domain [--role=role ] [--quiet] [--notify] [--force]Delete email(s) from the list. Data are read from standard input. The data should contain one email address per line.
Sample:
## emails to be deleted john.steward@some.company.com mary.blacksmith@another.company.comNote: This options was added on Sympa 6.2.67b.2.
New command line format:
sympa del[--role=role ] [--quiet] [--notify] [--force] list@domain
-
--dump=list@domain|ALLObsoleted option. Use
--dump_users. -
--dump_users--list=list@domain|ALL[--role=roles ]Dumps users of a list or all lists.
--rolemay specifymember,owner,editoror any of them separated by comma (,). Onlymemberis chosen by default.Users are dumped in files role
.dumpin each list directory.Note: On Sympa prior to 6.2.31b.1, subscribers were dumped in
subscribers.db.dumpfile, and owners and moderators could not be dumped.See also
--restore_users.Note: This option replaced
--dumpon Sympa 6.2.34.New command line format:
sympa dump[--roles=roles ] list@domainsympa dump[--roles=roles ]"*"
-
--health_checkCheck if
sympa.conf,robot.confof virtual robots and database structure are correct. If any errors occur, exits with non-zero status.New command line format:
sympa check
-
--import=list@domDeprecated. Use
--addinstead. -
--instantiate_family=family_name--robot=robot_name--input_file=/path/to/file.xml [--close_unknown] [--quiet]Instantiate family_name lists described in the file.xml under robot_name. The family directory must exist; automatically close undefined lists in a new instantiation if –close_unknown is specified; do not print report if
--quietis specified.New command line format:
sympa instantiate--input_file=/path/to/file.xml [--close_unknown] [--quiet] family_name@@robot_name
-
--lowercaseLowercases email addresses in database.
New command line format:
TBD.
-
--make_alias_file[--robotrobot ]Create an aliases file in /tmp/ with all list aliases. It uses the
list_aliases.tt2template (useful when list_aliases.tt2 was changed).New command line format:
TBD.
-
--md5_encode_passwordRewrite password in
user_tableof database using MD5 fingerprint. YOU CAN’T UNDO unless you save this table first.Note that this option was obsoleted. Use sympa upgrade password.
-
--modify_list=family_name--robot=robot_name--input_file=/path/to/file.xmlModify the existing list installed under the robot robot_name and that belongs to the family family_name. The new description is in the
file.xml.New command line format:
sympa update--input_file=/path/to/file.xml family_name@@robot_name
-
--open_list=list[@robot] [--notify]Restore the closed list (changing its status to open), add aliases and restore users to DB (dump files in the list directory are imported).
The
--notifyis optional. If present, the owner(s) of the list will be notified.New command line format:
sympa open[--notify] list[@robot]
-
--purge_list=list[@robot]Remove the list (remove archive, configuration files, users and owners in admin table. Restore is not possible after this operation.
New command line format:
sympa close--mode=purgelist[@robot]
-
--show_pending_lists=robotPrint all pending lists for the robot, with information.
New command line format:
TBD.
-
--rebuildarc=list[@robot]Rebuild the archives of the list.
New command line format:
TBD.
-
--reload_list_config[--list=mylist@mydom ] [--robot=mydom ]Recreates all
config.binfiles or cache inlist_table. You should run this command if you edit authorization scenarios. The list and robot parameters are optional.New command line format:
TBD.
-
--rename_list=listname@robot--new_listname=newlistname--new_listrobot=newrobotRenames a list or move it to another virtual robot.
New command line format:
sympa movelistname@robot newlistname@newrobot
-
--send_digest[--keep_digest]Send digest right now. If
--keep_digestis specified, stocked digest will not be removed.New command line format:
TBD.
-
--restore_users--list=list@domain|ALL[--role=roles ]Restore users from files dumped by
--dump_users.Note: This option was added on Sympa 6.2.34.
New command line format:
sympa restore[--roles=roles ] list@domainsympa restore[--roles=roles ]"*"
-
--sync_include=listname@robot [--role=role ]Trigger update of the list users included from data sources.
New command line format:
sympa include[--role=role ] listname@robot
-
--sync_list_db[--list=listname@robot ]Syncs filesystem list configs to the database cache of list configs, optionally syncs an individual list if specified.
New command line format:
TBD.
-
--test_database_message_bufferNote: This option was deprecated.
Test the database message buffer size.
-
--upgrade[--from=X ] [--to=Y ]Runs Sympa maintenance script to upgrade from version X to version Y.
New command line format:
sympa upgrade[ <–from=>X ] [--to=Y ]
-
--upgrade_shared[--list=X ] [--robot=Y ]Note: This option was deprecated. See sympa upgrade shared command line.
Rename files in shared.
New command line format:
sympa upgrade shared[--fix_qencode] listname@robot | “*”
With following options sympa.pl will print some information and exit.
-
-h,--helpPrint this help message.
-
--md5_digest=passwordOutput a MD5 digest of a password (useful for SOAP client trusted application).
-
-v,--versionPrint the version number.
End of description for earlier version.
FILES
/etc/sympa/sympa.conf main configuration file.
SEE ALSO
HISTORY
sympa.pl was originally written by:
-
Serge Aumont
Comité Réseau des Universités
-
Olivier Salaün
Comité Réseau des Universités
As of Sympa 6.2b.4, it was split into three programs:
sympa.pl command line utility, sympa_automatic.pl daemon and
sympa_msg.pl daemon.
As of Sympa 6.2.68, sympa.pl was renamed to sympa
and the new form of command line arguments was introduced.
The --noout option was introduced on Sympa 6.2.71b.