[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Rewrite recipient address



John McGill wrote:

> We are hosting a group of domains for a client and our client wants all
> their email redirected to a single domain.
> Our client will then collect all mail from this single domain and will
> sort/deliver with Lotus Notes.
> 
> I can forward the mail to the required domain ok, but what I can't work out
> is how to rewrite the recipient address, i.e.,
> 
> I need to rewrite the recipient address so that: username@xxxxxxxxxxx or
> username@xxxxxxxxxxx becomes username@xxxxxxxxxxxxxx

Here's how I do it (line added to /etc/virtusertable):

@email-lists.net        %1@xxxxxxxxxxxxxxx

Note, though, that this only works if "email-lists.net" is NOT hosted on
the RaQ.  If "email-lists.net" IS hosted on the RaQ, then the line needs
to look like this:

@www.email-lists.net        %1@xxxxxxxxxxxxxxx

Be sure to restart sendmail after editing /etc/virtusertable.

That's it.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205