Solved

Sendmail Help needed rewriting recipient

Posted on 2010-11-14
7
513 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux neworking 4 115
running production stuff on centos 4 126
Setup static routes for IP address in CentOS 2 66
How to Edit Files in Linux 6 124
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 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