Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"BTW, does Jesus know you flame?" -- Diane Holt, dianeh@binky.UUCP, to Ed Carp


computers / comp.mail.sendmail / Re: Whitelisting recipients on mail relay

SubjectAuthor
o Re: Whitelisting recipients on mail relayHauke Fath

1
Re: Whitelisting recipients on mail relay

<1q43rsb.1x99ddp1gh5xlfN%dont.spam.usenet@googlemail.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=651&group=comp.mail.sendmail#651

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: dont.spam.usenet@googlemail.com (Hauke Fath)
Newsgroups: comp.mail.sendmail
Subject: Re: Whitelisting recipients on mail relay
Date: Thu, 5 Jan 2023 21:45:50 +0100
Organization: Meistens
Lines: 62
Message-ID: <1q43rsb.1x99ddp1gh5xlfN%dont.spam.usenet@googlemail.com>
References: <1q3spof.gznuduz8q7fhN%dont.spam.usenet@googlemail.com>
Reply-To: hauke@Espresso.Rhein-Neckar.DE (Hauke Fath)
X-Trace: individual.net TpGTqCOJypRwaIEgQOXwjAQsVLUQEyzkev4+2JI8UH1Ikzeuv4
X-Orig-Path: dont.spam.usenet
Cancel-Lock: sha1:mUlYfKEceB6wK5gVTDsfcWLlryY=
User-Agent: MacSOUP/D-2.8.6b1 (ed136d9b90) (Mac OS 10.13.6)
 by: Hauke Fath - Thu, 5 Jan 2023 20:45 UTC

Hauke Fath <dont.spam.usenet@googlemail.com> wrote:

> Is there any other (convenient) way of whitelisting recipient addresses
> on a mail relay?

Thanks for all the contributions!

It took me a few days to get on top of this; I am riding the tail of a
Covid infection, and some days are better than others.

I have tried out two approaches, and both worked fine.

The first one uses "virtusertable" entries (listing the domains in
"virtuserdomains") of the shape

user1@example.com user1@example.com
[...]
@example.com error:nouser User unknown

which lead to a configuration error, unless you limit recursion with

define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_')

(thanks, Andrzej).

The second approach uses "access" entries like

To:user1@example.com RELAY
[...]
To:example.com ERROR:550:"User unknown"

and requires invoking FEATURE(access_db) with "relaytofulladdress"
(thanks, Claus) as well as setting

FEATURE(`blocklist_recipients')

for the default block.

I ended up going with the second approach, since I had a stub
"access_db" configuration in place already to control relaying, and
didn't like the recursive mapping of "virtusertable".

The main relay had originally been set up to deliver mail locally
through "aliases" entries, but I decided to relay even local (root)
mail, which required an extra

define(`LOCAL_RELAY', `uucp-dom:uucphost')

matching (and in addition to) the mailertable entry for the domain to
get it right, even though I had emptied class {w} and set

define(`confDONT_PROBE_INTERFACES')
..

The destination machine on the far end of the uucp link then maps all
the addresses to local accounts with "virtusertable" entries.

Cheerio,
Hauke

--
Now without signature.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor