sendmail aliases

Discussion in 'Sendmail' started by popowich, Nov 19, 2008.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    9,291
    Likes Received:
    140
    Hello,

    Sendmail aliases allow sendmail to take an e-mail and optionally forward it, write it to a file, or run it through another program.

    The sendmail aliases file is usually found at /etc/aliases, but it can also be commonly found at /etc/mail/aliases

    An example of a forward can be found in the default /etc/mail/aliases file:

    # RFC 822 requires that every host have a mail address "postmaster"
    postmaster : root

    This is an example of directing e-mail to a file.

    In this case, it is being deleted by directing it to a special device known as /dev/null
    # Aliases to handle mail to msgs and news

    nobody : /dev/null

    An example of piping an email to a program is:

    support: |/path/to/your/support-program

    To create a mailing list separate multiple addresses with a comma:

    # help mailing list
    help: staff01@domain.com,staff02@domain.com,staff03@domain.com

    To make the aliases file changes live run the command: newaliases

    -Raymond
     


Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice