Rewrite envelope recipient for non-local mail
Posted on 2006-06-16
This seems like it should be an easy question, but I've been looking for a while and haven't had much luck.
I'd like to rewrite the recipient for particular addresses (not domain-wide) that goes through my sendmail box. Basically, I want the same type of functionality that aliases provides but for non-local accounts. Is it possible to do this? If so, what do I need to do to get it set up.
For example, the machine mail.xyz.com is a relay for the domain abc.com. I want any email sent to email@example.com that goes through that box to end up at firstname.lastname@example.org. But, I want it specific for just email@example.com... email sent to firstname.lastname@example.org should go through as normal.
I've got this entry in virtusertable:
And it has no effect, I'm guessing because abc.com is an entry in relay-domain and in mailertable. I don't want to (and can't) use virtusertable to map the entire domain to something else to get rid of the relay entry:
@abc.com to @internal.abc.com
Because the end box mail.abc.com (an Exchange 5.5 box internal to our network) isn't set up to handle addressing that way and that isn't open to change for the minor problem of forwarding email for a few users. The Exchange box also answers the question why I don't simply add an alias on the local server to forward the mail once it ultimately gets home-- Exchange doesn't support aliases.