NAME
CfgAliases -- a tool to help change you email /etc/aliases settings
DESCRIPTION
This is a tool to help modify and keep your /etc/aliases file up to date.
Command Line Parameters
The parameters are a broken down into three categories:
- Specifying groups, users, and people
-
--user,--group - Adding, changing, removing, or retrieving entries
-
--add,--delete,--fetch,--join,--remove,--rename,--set
Specifying Groups, Users, People
--user=NAME--userNAME-
This specifies the user name.
--group=NAME--groupNAME-
This specifies the group name
Adding, Changing, Removing, or Retrieving Entries.
The following specify how to change various entries. Typically they can not be intermixed on the same command line. (Exceptions are noted.)
--addADDRESS--add=ADDRESS-
This will add the ADDRESS (user, group, etc.) to a mail group. The group must be specified with the
--groupoption above. --deleteNAME--delete=NAME-
This will remove the mail alias(es) specified by NAME. It will also remove from any mail alias(es) (or groups) any member(s) that matches NAME. NAME may be a regular expression. (Can be used with
--removeand--rename). --fetchNAME--fetch=NAME-
This will retrieve the list of recipients in the mail group NAME. If NAME is a regular expression, information will retrieved for every group that matches the pattern.
--join--joinGROUP--join=GROUP--joinGROUP1,GROUP2,...--join=GROUP1,GROUP2,...-
The current or effective user will be added to a mail group(s). If no groups are specified with this option, it must be specified using the
--groupoption above. Multiple--joins may be used on a command line. --removeNAME--remove=NAME-
Like
deleteabove, this will remove the mail group(s) specified by NAME. NAME may be a regular expression. (Can be used with--deleteand--rename) --renameNAME-NEW=NAME-OLD-
This will change all of the occurrences or references that match NAME-OLD to the newer form of NAME-NEW. This may be a group name, and / or members of a group. This may be a regular expression, similar to;
s/NAME-OLD/NAME-NEW/ --setNAME=MEMBERS-
This will create a mail group called NAME with a set of specified members MEMBERS. (Can be used with
--deleteand--remove).
Files
/etc/aliases
See Also
CfgTie::CfgArgs for more information on the standard parameters aliases(5) sendmail(8)
Notes
Author
Randall Maas (randym@acm.org)