Solved

Sendmail Help needed rewriting recipient

Posted on 2010-11-14
7
507 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
  • 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now