[exim] http

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Lena
Date:  
À: exim-users
Anciens-sujets: Re: [exim] Next Exim release
Sujet: [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