[exim] http

Etusivu
Poista viesti
Vastaa
Lähettäjä: Lena
Päiväys:  
Vastaanottaja: exim-users
Vanhat otsikot: Re: [exim] Next Exim release
Aihe: [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