[Wolves] Can someone take a look at this Exim stuff and tell me what I'm doing wrong

Wayne Morris wayne at machx.co.uk
Fri Dec 1 20:17:06 GMT 2006


Hi Adams,

I'm giving this a go, but where does the code snippet below go?
I don't have a directory 'greylistd' in /etc that you mention putting 
'config' in.

Does this go in exim.conf then?

Cheers





Adam Sweet wrote:
> --- Wayne Morris <wayne at machx.co.uk> wrote:
>
>   
>> I'm trying to implement this Greylisting using exim,
>> perl, mysql from:
>> http://users.aber.ac.uk/auj/spam/
>>     
>
> I don't know about all that, but I have implemented
> greylisting on Fedora Core 4 (exim self compiled) and
> Debian with exim4-daemon heavy, which both include
> what used to be known as the exiscan patch and is now
> merged into the main codebase for Exim, you just have
> to find the right configure option if you're compiling
> yourself. I don't know if you need this for calling
> out to greylisting functionality, but I did find an
> exim heavy package for Fedora Core from one of the 3rd
> party repos.
>
> I have the process detailed on my blog at:
>
> http://blog.adamsweet.org/?p=172
>
> but the \ characters keep getting stripped out and I
> don't know how to solve that, so here is my
> greylisting config for exim in full:
>
> defer
>     message        = $sender_host_address is
> greylisted. \
>                      Mail from $sender_host_address as
> <$sender_address> to \
>                      <$local_part@$domain> is delayed.
> \
>                      Please try again in a few
> minutes.
>     log_message    = greylisted.
>     !senders       = :
>     !hosts         = : +relay_from_hosts : \
>     !hosts         = : ${if exists
> {/etc/greylistd/whitelist-hosts}\
>                       
> {/etc/greylistd/whitelist-hosts}{}} : \
>                        ${if exists
> {/var/lib/greylistd/whitelist-hosts}\
>                       
> {/var/lib/greylistd/whitelist-hosts}{}}
>     !authenticated = *
> ##    !acl           = acl_whitelist_local_deny
>       domains        = +local_domains :
> +relay_to_domains
>       verify         =
> recipient/callout=20s,use_sender,defer_ok
>       condition      =
> ${readsocket{/var/run/greylistd/socket}\
>                        {--grey \
>                        $sender_host_address \
>                        $sender_address \
>                        $local_part@$domain}\
>                        {5s}{}{false}}
>
> You need to install greylistd which is available from
> ATrpms for Fedora. I had to create a few files
> manually before it worked, namely that
> /var/lib/greylistd should include:
>
> states
> triplets
> whitelist-hosts
>
> I can pass you copies of these files if you need them
> (Debian creates them for you so I copied them over to
> Fedora).
>
> Also, keep an eye on your Exim panic.log to see if
> Exim is complaining something.
>
> tail -f <logfile>
>
> is useful for this if you don't do that already.
> CTRL-c to quit.
>
> I found that Exim just carried on as normal if there
> was a problem with the greylistd, such as the missing
> files.
>
> One caveat. There is some further config to do to
> capture emails without an envelope sender, but the
> config I saw only refers to it in passing and doesn't
> say how to do it, but at least it's a start.
>
> Hope that helps, sorry I can't solve your problem the
> way you wanted to go, but this way seems easier...
>
> Ad
>
>   




More information about the Wolves mailing list