Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-12-2009 #1
- Join Date
- Aug 2009
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.
- 08-15-2009 #2
- Join Date
- Jul 2009
Your distro may already come with a /etc/mail/virtusertable, if so just upgrade, make, restart sendmail.
If not, in sendmail.cf:
-> Kvirtuser hash -o /etc/mail/virtusertable.db
create a /etc/mail/virtusertable containing:
-> @foo.com email@example.com
-> use makemap hash to createthe .db file