Re: [Exim] checking local sender is valid local user

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Andrew D
Datum:  
To: sys044, exim-users
Betreff: Re: [Exim] checking local sender is valid local user
----- Original Message -----
Sent: Tuesday, October 10, 2000 1:02 AM
Subject: [Exim] checking local sender is valid local user


> I have written a system filter to check if the user from a local system
> is a local user and fail if not.
>
>
> # EXIM filter
> if first_delivery then
> if $sender_address_domain contains "abdn.ac.uk"
>    and "${lookup{$sender_address_domain} lsearch{/etc/exim/local-domains}\
>         {yes}{no}}" is "no"
>    and "${lookup{$sender_address_local_part} dbm{/etc/exim/aliases} \
>         {yes}{no}}" is "no"
>    then fail
> endif

>
> I would like it to reply immediately to the client via SMTP
> with an SMTP error response but all it seems to do is accept
> the message and then freeze it if the sender was bad.

set verify_sender to verify ur users b4 accepting the email (as long as the
users are local or u have setup up some other sort of verify method)
and prob verify_recipient to reject unknown users b4 it enters ur mail
server
The filter runs over the message after it has been accepted by exim, which
is why it is freezing.
HTH
cya
Andrew



--
You can have Peace or you can have Freedom.
Don't ever count on having both at once.