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

Recipient-based relaying for non-local users

90 views
Skip to first unread message

sdl

unread,
Sep 23, 2004, 1:30:42 PM9/23/04
to
Hello All,
Is it possible to let sendmail relay for just some
(non local) recipients?
I am running sendmail 8.13.1 with FEATURE(access_db).

I see that an entry like

To: domain.dom RELAY

in my access db works, in other words mail for
any...@domain.dom gets delivered, even though
domain.dom is not local.

The problem is, I want my mailserver to relay for just
some users @domain.dom.
I tried with entries like

To:us...@domain.dom RELAY
To:us...@domain.dom RELAY

but they do not work (I always get a "relaying denied" message).

Must some special feature be enabled? I tried with
FEATURE(`blacklist_recipients'), but this brought no positive change.
Or maybe is there some trick to accomplish it?
Any idea would be greatly appreciated :).

TIA
.sdl


Andrzej Adam Filip

unread,
Sep 24, 2004, 12:06:00 PM9/24/04
to

There are a few ways:
* non local virtusertable with _VIRTUSER_STOP_ONE_LEVEL_RECURSION_
* non local virtusertable with "!" as valuse
us...@domain.dom !
* FEATURE(`ldap_routing') [you can use hash/dbm maps insted of ldap]

Search the group archive for messages with _VIRTUSER_STOP_ONE_LEVEL_RECURSION_

--
Andrzej [en:Andrew] Adam Filip an...@priv.onet.pl an...@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
If you're going to do something tonight that you'll be sorry for tomorrow
morning, sleep late.
-- Henny Youngman

Claus Aßmann

unread,
Sep 24, 2004, 12:34:29 PM9/24/04
to
sdl wrote:

> Is it possible to let sendmail relay for just some
> (non local) recipients?
> I am running sendmail 8.13.1 with FEATURE(access_db).

Add

define(`_RELAY_FULL_ADDR_', `1')

to your mc file. This is an undocumented feature.

--
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

sdl

unread,
Sep 25, 2004, 6:17:33 AM9/25/04
to

"Claus Aßmann" <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de>
wrote in message news:cj1ial$fbi$1...@zardoc.esmtp.org...

> sdl wrote:
>
> > Is it possible to let sendmail relay for just some
> > (non local) recipients?
> > I am running sendmail 8.13.1 with FEATURE(access_db).
>
> Add
>
> define(`_RELAY_FULL_ADDR_', `1')
>
> to your mc file. This is an undocumented feature.
>

Works perfectly, thank you :).
.sdl


0 new messages