You need to create a rule like this:
@yourdomain.com @othercompany.com
An example is available from:
http://www.sendmail.org/vi
Main Topics
Browse All TopicsHi,
I recently installed SuSe Linux 6.4 and I have my own domain attached to this server. Now I want to configure sendmail (or anything else) such that all e-mail received at this domainname (user@domain with user being anything at all) will be forwarded to another e-mail address outside this domain.
Thanks in advance for your reply!
Thomas.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You need to create a rule like this:
@yourdomain.com @othercompany.com
An example is available from:
http://www.sendmail.org/vi
Sounds like you want something like EmailDiversion. If you want all emails @yourdomain.com to point to fixed_email@otherdomain.co
@yourdomain.com fixed_email@otherdomain.co
Make the map:
makemap dbm /etc/mail/virtusertable < sourcefile
Restart sendmail.
More detailed info from http://www.sendmail.org/vi
"
Create the virtual user table. This is explained in detail in section 19.6.28 of the sendmail book; an overview is given here. The table is a database that maps virtual addresses into real addresses. You create a text file where each line has a key/value pair, separated by a TAB. For example:
joe@yourdomain.com jschmoe
bogus@yourdomain.com error:nouser No such user here
list@yourdomain.com yourdomain-list
@yourdomain.com %1@othercompany.com
"
Greetings.
This question remains open today; perhaps just overlooked this or it just got lost in the volumes. If you've been helped to resolve this, please accept the comment which helped you as the accepted answer to then grade and close so that others may benefit from this information as it migrates to our PAQ Database. If more is needed, please update here via comments so that you can achieve your goal.
Your attention to finalizing this is very much appreciated.
Thank you.
":0) Asta
Business Accounts
Answer for Membership
by: akehPosted on 2000-11-03 at 06:04:23ID: 5075283
You can fo this by adding an alias for every user in /etc/aliases (or /etc/mail/aliases, I'm not sure what the path is in SuSe):
user: user@other_domain