sendmail virtual user table

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

  1. popowich

    popowich EQ Forum Admin Staff Member

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

    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 bob@your-comapny.com will deliver to the local account bob.

    E-mail to bob@your-company.com will be permanently rejected with the error "No such user here"

    E-mail for bob@your-comapny.com will be forwarded to bob@another-company.com

    This creates a domain alias resulting in mail from bob@your-comapny.org forwarding to bob@your-company.com


    All remaining e-mail to @your-company.com 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.
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