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:
    8,983
    Likes Received:
    120
    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...