Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Forward local email for nonexistent user to another server

    Thanks for any help you can give me. I am trying to get sendmail to deliver local mail for nonexistent users to another server. Example: ServerA has user1domain1 and he is trying to email user2domian1 which resides on ServerB. Currently, I get "unknown user" error. Is there a way to tell sendmail "If you have local mail for domain1 but the user does not exist forward the message to ServerB. Hopefully this is not too confusing. Just looking to test another mail server with some users but still get local mail between them.

    Thanks again.

  2. #2
    Your distro may already come with a /etc/mail/virtusertable, if so just upgrade, make, restart sendmail.

    If not, in
    -> Kvirtuser hash -o /etc/mail/virtusertable.db

    create a /etc/mail/virtusertable containing:

    -> use makemap hash to createthe .db file

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts