Re: [exim] Router for bounce...

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jeremy Harris
Fecha:  
A: exim-users
Asunto: Re: [exim] Router for bounce...
On 17/06/2022 17:42, Marco Gaiarin via Exim-users wrote:
> I need to bounce


It's generally better to reject.

>(also in verify, indeed) some user/mailbox; there's a 1:1
> relation between mailboxes and users, and simply some 'alias' are queried
> via LDAP and 'normalized' to users/logins:


> I can remove all the alias from LDAP, but still the 'base' account email
> ($local_part@$domain) will match.
>
> Also, i cannot remove homes, they are needed for other things.
>
>
> What could be the simpliest way to bounce/reject? I'm thinking of:
>
> a) define a 'semaphore file' (/home/<user>/.bounceme); but docs say:
> Warning 1: When the router is being run to verify addresses for an incoming SMTP message, Exim is not running as root, but under its own uid. This may affect the result of a require_files check. In particular, stat() may yield the error EACCES (???Permission denied???). This means that the Exim user is not permitted to read one of the directories on the file???s path.
>
> b) make a strictier LDAP query that does not 'normalize' aliases, but match
> (with some sort of 'negative match') it?
>
>
> I'm a bit confused, so i hope i was a bit clear on my question...


How about marking up the users as "inactive" in LDAP?
--
Cheers,
Jeremy