Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

newaliases (8)

Name

newaliases - rebuild the data base for the mail aliases file

Synopsis

newaliases

Description

System Administration Commands                                   newaliases(8)



NAME
       newaliases - rebuild the data base for the mail aliases file

SYNOPSIS
       newaliases


DESCRIPTION
       newaliases  rebuilds  the  random access data base for the mail aliases
       file /etc/mail/aliases.


       newaliases accepts all the flags  that  sendmail(8)  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

           Use alternate configuration file.


       -oAfile

           Specify possible alias files.


       -oLn

           Set the default log level to n. Defaults to 9.


       -on

           Validate  the  RHS  of aliases when rebuilding the aliases(5) data-
           base.



       newaliases runs in verbose mode (-v option) automatically.

EXAMPLES
       Example 1 Running the newaliases Command


       The following command runs newaliases on an alias file  different  from
       the /etc/mail/aliases default in sendmail(8):


          example% newaliases -oA/path/to/alternate/alias/file



EXIT STATUS
       newaliases returns an exit status describing what it did. The codes are
       defined in /usr/include/sysexits.h.

       EX_OK             Successful completion on all addresses.


       EX_NOUSER         User name not recognized.


       EX_UNAVAILABLE    Catchall. Necessary resources were not available.


       EX_SYNTAX         Syntax error in address.


       EX_SOFTWARE       Internal software error, including bad arguments.


       EX_OSERR          Temporary operating system  error,  such  as  "cannot
                         fork".


       EX_NOHOST         Host name not recognized.


       EX_TEMPFAIL       Message  could  not  be  sent  immediately,  but  was
                         queued.


FILES
       /etc/aliases             Symbolic link to /etc/mail/aliases


       /etc/mail/aliases.pag


       /etc/mail/aliases.dir    ndbm files maintained by newaliases


       /etc/mail/aliases.db     Berkeley   DataBase   file    maintained    by
                                newaliases


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:




       +-----------------------------+------------------------------+
       |      ATTRIBUTE TYPE         |       ATTRIBUTE VALUE        |
       +-----------------------------+------------------------------+
       |Availability                 |service/network/smtp/sendmail |
       +-----------------------------+------------------------------+

SEE ALSO
       aliases(5), attributes(7), sendmail(8)



Solaris 11.4                      8 Mar 2016                     newaliases(8)