[exim] http

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Old-Topics: Re: [exim] Next Exim release
Subject: [exim] http
> From: Bj??rnar Ness

> I wrote a http lookup module


I use readsocket for HTTP lookups:

  deny ... (if a suspicious host passed greylisting and endured a 22s delay)
         condition = ${if or{\
           {bool{${lookup dnsdb{a=$sender_address_domain}{0}{1}}}}\
           {!match{${readsocket{inet:$sender_address_domain:80}\
            {GET / HTTP/1.0\r\nHost: $sender_address_domain\r\n\r\n}\
            {4s}{ }{socket failure}}}{SOMETHING}}\
                            }}
         !verify = sender/callout=10s,defer_ok