Solved

Sendmail Help needed rewriting recipient

Posted on 2010-11-14
7
518 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:unix_admin_1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 20

Expert Comment

by:woolnoir
ID: 34130583
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
 

Author Comment

by:unix_admin_1234
ID: 34134582
"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
 
LVL 20

Expert Comment

by:woolnoir
ID: 34147174
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Expert Comment

by:woolnoir
ID: 34147507
0
 

Accepted Solution

by:
unix_admin_1234 earned 0 total points
ID: 34234629
Just decided to send locally to myself with mailertable.  
0
 
LVL 20

Expert Comment

by:woolnoir
ID: 34264930
Aha - so you this question is done then ? just wanted to check if i need to monitor it further ?
0
 

Author Closing Comment

by:unix_admin_1234
ID: 34272827
Found my own solution on-line.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FTP File Transfer Failure 13 192
how to view remote client's ipv6 address? 5 95
IPA - change main server? 3 183
Doing a DR (Disaster Recovery) Test on Red Hat Linux Servers. 2 151
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question