[exim] http

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Lena
日付:  
To: exim-users
古いトピック: Re: [exim] Next Exim release
題目: [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