Mailing List Archive

Converting Directors to ACL conditions
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.


-Wash

--
Odhiambo Washington <wash@wananchi.com> "The box said 'Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,'
Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD."
GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-)


In English, every word can be verbed. Would that it were so in our
programming languages.
Re: Converting Directors to ACL conditions [ In reply to ]
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
Re: Converting Directors to ACL conditions [ In reply to ]
Witaj Odhiambo,

W Twoim li¶cie datowanym 22 lipca 2002 (20:27:39) mo¿na przeczytaæ:

> * Slawek Kubera <jackalek.listy@klej.net> [20020722 20:42]: wrote:

> Hi Slawek,

> Thanks you so much for the response.


>> 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


> The lsearch here looks up the domain, yes? What about if it's an
> address?

not exacly
see below

> what do you have in spam-reject?
> and what do you have in .spam-reject?

both files have identical syntax

> I suppose you have in both:

> x@y.com
> *@*abc.com

my spam-reject:

praca2002@labnet.pl
*@rp.zax.pl
*@icenter.pl
*@www.infogeneratorpro.com
*@jarek.plt.edu.pl
*@herkulesexpress.pl
*@ancz.com.pl
*@hydepark.pl
*@presserwis.pl
*@presscd.pl
test_spamu@div.pl
*@hotmat.com
*@infogeneratorpro.com
#*@hotmail.com


please refer to http://www.exim.org/exim-html-4.00/doc/html/spec_9.html#CHAP9
about lsearch*@

> Thanks so much, I now see no error with -d -bt




> -Wash


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