I have done this:

# Grey Listing
warn set acl_m_greyfile = /var/spool/exim/greylist/${length_255:\
        ${sg{$sender_host_address}{\N\.\d+$\N}{}},\
        ${tr{$sender_address,$local_p...@$domain}{/\040}{;} }}

defer log_message = greylisted
        !hosts = +relay_hosts
        !hosts = +auth_relay_hosts
        !hosts = net-lsearch;/etc/virtual/trusted_ips
        condition = ${if eq{$local_p...@$domain}\
        {t...@test_domain_999.com}}
        condition = ${if exists{$acl_m_greyfile}\
        {${if >{${eval:$tod_epoch-\
        ${extract{mtime}{${stat:$acl_m_greyfile}} }}\
        }{180}{0}{1}}\
        }{${if eq{${run{/bin/touch $acl_m_greyfile} }}{}{1}{1} }} }
        message = Deferred: Temporary error, please try again later

Before I added the !hosts entries it triggered on all IP's including
ones not local but only for specified email address.  Now with the
hosts entries it triggers on none.  I think I have a simple syntax
issue in exim.conf.

Thanks.

Matt


On Thu, Mar 5, 2009 at 7:46 AM, Matt <[email protected]> wrote:
> I found this for grey listing:
>
> http://wiki.exim.org/DbLessGreyListingRun
>
> Looks simple.  One thing.  This is how its implemented in exim.conf:
>
> warn set acl_m_greyfile = /var/spool/exim/greylist/${length_255:\
>  ${sg{$sender_host_address}{\N\.\d+$\N}{}},\
>  ${tr{$sender_address,$local_p...@$domain}{/\040}{;} }}
>
> defer log_message = greylisted
>  condition = ${if exists{$acl_m_greyfile}\
>  {${if >{${eval:$tod_epoch-\
>  ${extract{mtime}{${stat:$acl_m_greyfile}} }}\
>  }{180}{0}{1}}\
>  }{${if eq{${run{/usr/bin/touch $acl_m_greyfile} }}{}{1}{1} }} }
>  message = Deferred: Temporary error, please try again later
>
> I have a file containing a list of source IP's I do not want to grey
> list.  This file will dynamically contain IP's that have scored very
> low with Spamassassin.  How would I tell it not to grey list them?
>
> Matt
>

-- 
## List details at http://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/

Reply via email to