sendmail virtual user table

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

  1. popowich

    popowich EQ Forum Admin Staff Member

    Aug 12, 2008
    Likes Received:

    There is a lot of flexibility available with the sendmail virtusertable.

    The file is typically located at /etc/mail/virtusertable

    The following are some examples of how to use this feature in sendmail.

    A tab should be used to separate the two sides of each line in the virtusertable file.

    E-mail for will deliver to the local account bob.

    E-mail to will be permanently rejected with the error "No such user here"

    E-mail for will be forwarded to

    This creates a domain alias resulting in mail from forwarding to

    All remaining e-mail to will be delivered to the local account bob. This is also known as a catchall account. These are generally a bad idea since they can be abused and flooded with e-mail if the domain is subjected to a dictionary attack. I do not recommend using a catchall unless absolutely necessary.

    E-mail to usernames at your company that do not exist will be permanently rejected.

    This is much better than creating a catchall account like in the above example.

    When you make changes to your virtusertable file you need to rebuild the table from the source file.

    You do -not- need to restart sending after making changes to the virtusertable.

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.
  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