Re: [exim] warn set grey file

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: Matt
CC: Exim Mailing List
Subject: Re: [exim] warn set grey file
> From: Matt

> Looking at this simple greylisting implementation:
>
> http://wiki.exim.org/DbLessGreyListingRun
>
> They use this to create name of grey file:
>
> warn set acl_m_greyfile = /var/spool/exim/greylist/${length_255:\
> ${sg{$sender_host_address}{\N\.\d+$\N}{}},\
> ${tr{$sender_address,$local_part@$domain}{/\040}{;} }}
>
> Is there anyway to replace any characters in grey file that are not a-z or
> A-Z or @ with a simple _ underscore? Seems like it would be safer to
> exclude any special characters and should be just as effective. I heard
> some comments by others elsewhere that this implementation was not trusted
> because of that. I like how incredibly simple it is though.


It is safe under Unix and Linux. However there is a way to replace:

warn set acl_m_greyfile = /var/spool/exim/greylist/${length_255:\
${sg{$sender_host_address}{\N\.\d+$\N}{}},\
${sg{$sender_address,$local_part@$domain}{\N[^\w,@-]\N}{_}}}

Lena