newaliases - rebuild the data base for the mail aliases file
newaliases
newaliases rebuilds the random access data base for the mail aliases file /etc/mail/aliases.
newaliases accepts all the flags that sendmail(1M) accepts. However, most of these flags have no effect, except for the -C option and three of the Processing Options that can be set from a configuration file with the -o option:
-C /path/to/alt/config/file
-oAfile
-oLn
-on
newaliases runs in verbose mode (-v option) automatically.
Example 1 Running the newaliases Command
The following command runs newaliases on an alias file different from the /etc/mail/aliases default in sendmail(1M):
example% newaliases -oA/path/to/alternate/alias/file
newaliases returns an exit status describing what it did. The codes are defined in /usr/include/sysexits.h.
EX_OK
EX_NOUSER
EX_UNAVAILABLE
EX_SYNTAX
EX_SOFTWARE
EX_OSERR
EX_NOHOST
EX_TEMPFAIL
/etc/aliases
/etc/mail/aliases.pag
/etc/mail/aliases.dir
/etc/mail/aliases.db
See attributes(5) for descriptions of the following attributes:
|
sendmail(1M), aliases(4), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |