Re: [exim] Disable exim for local users

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jean Respen
Datum:  
To: Jeremy Harris, exim-users
Betreff: Re: [exim] Disable exim for local users
Hi,

What I did finally is :

acl_test:

        accept  condition  = ${lookup{$authenticated_sender}lsearch\


                  {CONFDIR/list_users_blacklisted}{$value}fail}


        deny


                log_message = Sender identified as spammer


It does work. But is it correctly used? Another question, when a user
is a "spammer", exim sends an error code to user@???, can I
disable such a response? I don't want to spam my own server with error
code...

Thanks,

Regards,

On Sun, Nov 16, 2014 at 5:45 PM, Jean Respen <jean.respen@???> wrote:
> Thanks a lot, I'll have a look at that!
>
> Cheers,
>
>
> On Sun Nov 16 2014 at 5:26:29 PM Jeremy Harris <jgh@???> wrote:
>>
>> On 16/11/14 16:08, Jean Respen wrote:
>> > 2014-11-16 08:46:31 1XpuXX-0002Gf-Au <= theuser@??? U=theuser
>> > P=local
>> > S=1695 id=936e95d2c601b216aea61cdc335bb56a@www.priscilla-bruelhart.com
>> >
>> > So I know that each user sends with U=user.
>>
>> OK; I was confused by you mentioning 127.0.0.1 - this is a commandline
>> invocation of Exim, not an SMTP connection from 127.0.0.1
>>
>> The non-smtp ACL is used. See the ACLs chapter of the docs.
>> Look at $authenticated_sender (cf. the Sting Expansions chapter);
>> you can deny specific ones using that, and/or set up a ratelimit
>> (cf the ratelimit condition in an ACL).
>>
>> http://exim.org/exim-html-current/doc/html/spec_html/index.html
>>
>>
>> Since you appear to be on Debian or derivative, you'll need
>> to work out how to integrate your changes with their customised
>> config system.
>> --
>> Cheers,
>> Jeremy
>>
>> --
>> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
>> ## Exim details at http://www.exim.org/
>> ## Please use the Wiki with this list - http://wiki.exim.org/




--
Jean Respen