Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to redirect only certain addresses from another domain?

0 views
Skip to first unread message

John Hardin

unread,
Nov 4, 2004, 8:47:05 PM11/4/04
to
All:

I'd like to redirect certain destination addresses in somebody else's
domain while leaving the non-matching addresses in that domain for
delivery on to the proper MX host.

e.g. "geo...@otherguy.com" gets delivered to a local mailbox "george", but
all other "@otherguy.com" addresses get delivered via the otherguy.com MX
using normal procedures.

I looked at virtuser, but that requires putting the target domain in the
Cw list, which I probably do NOT want to do as I don't want to interfere
with delivery of non-matching addresses.

Is this possible with just some simple sendmail.mc options? Or do I have
to go spelunking in the .cf file?

Thanks!

--
John Hardin KA7OHZ <jo...@aproposretail.com>
Internal Systems Administrator voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------
"Bother," said Pooh as he struggled with /etc/sendmail.cf, "it never
does quite what I want. I wish Christopher Robin was here."
-- Peter da Silva in a.s.r
-----------------------------------------------------------------------

Matej Vela

unread,
Nov 8, 2004, 8:00:00 AM11/8/04
to
On 2004-11-05, John Hardin <jo...@aproposretail.com> wrote:
> I'd like to redirect certain destination addresses in somebody else's
> domain while leaving the non-matching addresses in that domain for
> delivery on to the proper MX host.
>
> e.g. "geo...@otherguy.com" gets delivered to a local mailbox "george", but
> all other "@otherguy.com" addresses get delivered via the otherguy.com MX
> using normal procedures.
>
> I looked at virtuser, but that requires putting the target domain in the
> Cw list, which I probably do NOT want to do as I don't want to interfere
> with delivery of non-matching addresses.

virtusertable works for non-local domains as well; use

VIRTUSER_DOMAIN(`otherguy.com')

As a side effect, VIRTUSER_DOMAIN will add otherguy.com to class {R}, i.e.
allow relaying to and from that domain. If this is undesirable, add it
directly to class {VirtUser}:

LOCAL_CONFIG
C{VirtUser}otherguy.com

John Hardin

unread,
Nov 8, 2004, 11:24:15 AM11/8/04
to

That did it! Thanks!

--
John Hardin KA7OHZ <jo...@aproposretail.com>
Internal Systems Administrator voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------

If you smash a computer to bits with a mallet, that appears to count
as encryption in the state of Nevada.
- CRYPTO-GRAM 12/2001
-----------------------------------------------------------------------

0 new messages