Link to home
Start Free TrialLog in
Avatar of unix_admin_1234
unix_admin_1234

asked on

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
Avatar of Adrian Cantrill
Adrian Cantrill
Flag of Australia image

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 ?
Avatar of unix_admin_1234
unix_admin_1234

ASKER

"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.  
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.
ASKER CERTIFIED SOLUTION
Avatar of unix_admin_1234
unix_admin_1234

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Aha - so you this question is done then ? just wanted to check if i need to monitor it further ?
Found my own solution on-line.