Sendmail Help needed rewriting recipient

Hi,
  I would like to have all recipient addresses sent from my local host to be re-written to a specific e-mail address.  In other words, i would like to have all @example.com recipient addresses  (I do not host these) to be re-written to  bob@example.com.  Here is what I have so far:  

virtusertable -->@example.com  bob@example.com
I added  to my sendmail.mc (virtuserable already added):
LOCAL_CONFIG
F{VirtHost}/etc/mail/virtual-domains
virtual-domains--> example.com

I tried to run a test, but I am getting a DSN4.0.0. address error and these errors.  Please help!

SYSERR(root): rewrite: excessive recursion (max 50), ruleset canonify
 rewrite: excessive recursion (max 50), ruleset parse
 rewrite: excessive recursion (max 50), ruleset canonif
unix_admin_1234Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
unix_admin_1234Connect With a Mentor Author Commented:
Just decided to send locally to myself with mailertable.  
0
 
woolnoirCommented:
shouldnt your virtusertable just be @example.com bob

rather than bob@example.com.

Assuming bob is a linux user account i think the bob@example.com is causing extra recursion i.e the error ?
0
 
unix_admin_1234Author Commented:
"bob" is not just a unix account.  It is an actual account in the example.com domain.  I have an application that needs to be tested in a test environment.  Obviously, I don't want our customers to get these test e-mails.  I want all the e-mails that go out to example.com sent to bob@example.com.  I hope that makes sense.  
0
2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

 
woolnoirCommented:
then try saying nameoftestaccount@example.com bob@example.com

what your doing at the moment is saying ANYTHING to example.com should go to bob@example.com - now sure how sendmail will be interpreting this - it may go into a endless recursion loop.
0
 
woolnoirCommented:
Aha - so you this question is done then ? just wanted to check if i need to monitor it further ?
0
 
unix_admin_1234Author Commented:
Found my own solution on-line.
0
All Courses

From novice to tech pro — start learning today.