You can do this by careful use of the re-write rules in sendmail.cf.
First re-write your special case, then the general case.
You need to make sure you put the re-write in the correct rule to affect from addreses.
The syntax is fairly clear for simple re-writes, but remeber you need a tab...
You can set up in sendmail.cf something like
R it < @ company.com > (tab) person < @ company.com >
This deals with re-addressing, sendmail will now deliver to the appropriate server. If you put this in rule 96 (where I have) it will not re-write the rcpt to: (envelope?) address. This may not...
I am re-writing a mail address on an Sendmail 8.8.8+Sun server. Sendmail then correctly atempts to (re)deliver mail to the target server, however at this pointit fails due to Rcpt To: being invalid. How do I re-write the Rcpt To: part of the message?
Many Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.