Difference between revisions of "Lat-pseudonyms"
From SME Server
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
===DESCRIPTION=== | ===DESCRIPTION=== | ||
Adds or deletes e-mail pseudonyms to existing user or group accounts on | Adds or deletes e-mail pseudonyms to existing user or group accounts on | ||
− | Mitel's SME servers (5.x/6.x). This tool is functionally equivalent to | + | Mitel's SME servers (5.x/6.x/7.x/8.x). This tool is functionally equivalent to |
the 'Pseudonyms' option in the server-manager, but can be run from the | the 'Pseudonyms' option in the server-manager, but can be run from the | ||
command line or called from an other script. It allows you, for exam- | command line or called from an other script. It allows you, for exam- | ||
Line 12: | Line 12: | ||
See /usr/doc/lazy-admin-tools/example.pseudonyms for the format of the | See /usr/doc/lazy-admin-tools/example.pseudonyms for the format of the | ||
input file. | input file. | ||
+ | |||
===Smecontribs repository for SME Server=== | ===Smecontribs repository for SME Server=== | ||
− | yum install --enablerepo=smecontribs smeserver-lazy_admin_tools | + | yum install --enablerepo=smecontribs smeserver-lazy_admin_tools smeserver-userpanel smeserver-mailsorting |
signal-event post-upgrade; signal-event reboot | signal-event post-upgrade; signal-event reboot | ||
Latest revision as of 22:36, 26 June 2013
lat-pseudonyms
The lazy administrator's tool to add pseudonyms
DESCRIPTION
Adds or deletes e-mail pseudonyms to existing user or group accounts on Mitel's SME servers (5.x/6.x/7.x/8.x). This tool is functionally equivalent to the 'Pseudonyms' option in the server-manager, but can be run from the command line or called from an other script. It allows you, for exam- ple, to create a large number of e-mail aliases in a batch process, or delete the standard pseudonyms on a remote machine via an ssh console.
See /usr/doc/lazy-admin-tools/example.pseudonyms for the format of the input file.
Smecontribs repository for SME Server
yum install --enablerepo=smecontribs smeserver-lazy_admin_tools smeserver-userpanel smeserver-mailsorting signal-event post-upgrade; signal-event reboot
SYNOPSIS
lat-pseudonyms -a -c "username | pseudonym1 | pseudonym2"
lat-pseudonyms -a -i /path/to/quota.list
lat-pseudonyms -d [-f] -c "user | pseudonym"
lat-pseudonyms -d [-f] -i /path/to/quota.list
OPTIONS
The following options are supported:
-a, --add Add a pseudonym to a user or group.
-c ""Arguments"", --command-line=""Arguments"" Take arguments from the command line. See the 'Arguments' section below for the various arguments that are accepted.
-d, --delete Delete a pseudonym from the server
-f, --force Don't prompt before deleting.
-h, --help Extended help for this tool
-i FILE, --input-file=FILE Use the information from FILE to create or delete the pseudonyms.
Arguments:
user* : Must be a valid user or group on the server. pseudonym* : Must contain only lower-case letters, numbers, hyphens, periods and underscores, and should start with a lower-case letter.
* mandatory field
EXAMPLES
lat-pseudonyms -a -c "harry | wizard | seeker" Creates the pseudonyms 'wizard' and 'seeker' for user 'harry'.
lat-pseudonyms -a -i /root/pseudonyms.list Creates the pseudonyms defined in /root/pseudonyms.list. Refer to /usr/doc/lazy-admin-tools/example.users for an example of an input file.
lat-pseudonyms -d -f -c "harry | wizard | seeker" Deletes pseudonyms 'wizard' and 'seeker' from user 'harry'. The pseudonyms are deleted without prompting (-f).
Bugs
Please raise bugs under the SME-Contribs section in bugzilla and select the e-smith-lazy_admin_tools component or use this link .