Re: [Exim] Converting Directors to ACL conditions

Góra strony
Delete this message
Reply to this message
Autor: Slawek Kubera
Data:  
Dla: exim-users
Temat: Re: [Exim] Converting Directors to ACL conditions
Witaj Odhiambo,

W Twoim liście datowanym 22 lipca 2002 (17:54:01) można przeczytać:


> Hello List,


> This is a bit long but please bear with me. If you'd rather not read to the end,
> then the question is:


> How do I convert the router (exim 4) to ACLs in acl_check_recipient?? That is,
> if that is acceptable.


> Long time ago (sorry, I mean in the recent past), the following 'directors' used
> to work (Exim-3).



> bounce_spam_personal:
> driver = smartuser
> senders = /home/$local_part/.bouncelist
> require_files = /home/$local_part/.bouncelist
> new_address = :fail: "\"$local_part\" in domain \"$domain\" thinks you are a spammer"




> Now things have changed and more efficient ways devised (Exim-4). I used convert4r4 and
> got them converted to 'routers':



> bounce_spam_personal:
> driver = redirect
> allow_defer
> allow_fail
> data = :fail: "\"$local_part\" in domain \"$domain\" thinks you are a spammer"
> require_files = /home/$local_part/.bouncelist
> retry_use_local_part
> senders = /home/$local_part/.bouncelist



> Not all user's have a .bouncelist (though I know it's possible to do in 1 minute),
> and as such when exim encounters a user whose $HOME/ has no .bouncelist, it fails
> at that point. I'd like it to continue and deliver if the file doesn't exist.



> Thanks in advance.


In section ACL :
deny  message = Spadaj spamerze... Get off spamers
    senders = ${if exists{/etc/exim4/spam-reject} \
                  {lsearch*@;/etc/exim4/spam-reject}}


^^^^global


deny  message = Spadaj spamerze... Get off spamers
    senders = ${if exists{/home/$local_part/.spam-reject} \
              {lsearch*@;/home/$local_part/.spam-reject}}


^^^^^per user
if exists cindition prevent missing file errors



> -Wash


> --



--
Pozdrowienia,
Slawek Kubera                            mailto:jackalek.listy@klej.net