[exim] http

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Lena
Fecha:  
A: exim-users
Temas antiguos: Re: [exim] Next Exim release
Asunto: [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