Re: pcre:table & client_restrictions

From: Ralf Hildebrandt (no email)
Date: Sat Nov 21 2009 - 08:04:10 EST

  • Next message: Eugene V. Boontseff: "Re: pcre:table & client_restrictions"

    * Eugene V. Boontseff <>:
    > Dear colleagues,
    >
    > kindly looking for your assistence in the following matter.
    > To cut off the spamers, I intended to use pcre:table.

    WOuldn't it be easier to use an RBL instead?

    > smtpd_client_restrictions =
    > check_client_access pcre:/usr/local/etc/postfix/exper,
    > ...
    > <cut off>
    >
    > eugene at mail [/usr/local/etc/postfix]# cat exper
    > /(.*(\d{1,3})[\.-](\d{1,3})[\.-](\d{1,3})[\.-](\d{1,3}).*\[.*(?:\3\.\2|\2\.\3.*).*\].*)/
    >
    >
    > 554 5.7.1 Dynamic sender $1, please, use SMTP server of
    > your provider
    > /pppoe/ REJECT pppoe # It's for debugging
    >
    >
    > eugene at mail [/usr/local/etc/postfix]# postmap -fq
    > "<ppp92-100-127-177.pppoe.avangarddsl.ru[92.100.127.177]" pcre:exper
    > 554 5.7.1 Dynamic sender
    > <ppp92-100-127-177.pppoe.avangarddsl.ru[92.100.127.177], please, use
    > SMTP server of your provider
    >
    > so the postmap shows that the first line is working

    Nope. Postfix hands down the IP and it hands down the hostname IF the
    hostname resolves back and forth.

    > eugene at home [/home/eugene]> telnet some.mail.host 25
    > Trying aa.bbb.ccc.dd...
    > Connected to some.mail.host.
    > Escape character is '^]'.
    > 554 5.7.1 <ppp92-100-127-177.pppoe.avangarddsl.ru[92.100.127.177]>:
    > Client host rejected: pppoe
    >
    > the debuging rule is working instead the of first one.
    >
    > Why does the postfix ignore the first rule?

    I'd think the regexp is wrong

    -- 
    Ralf Hildebrandt
      Geschäftsbereich IT | Abteilung Netzwerk
      Charité - Universitätsmedizin Berlin
      Campus Benjamin Franklin
      Hindenburgdamm 30 | D-12203 Berlin
      Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
       | http://www.charite.de
    	    
    

  • Next message: Eugene V. Boontseff: "Re: pcre:table & client_restrictions"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD