Eugene V. Boontseff wrote:
Dear colleagues,

kindly looking for your assistence in the following matter.
To cut off the spamers, I intended to use pcre:table.

main.cf :

<cut on>
...
smtpd_client_restrictions =
       check_client_access pcre:/usr/local/etc/postfix/exper,
...
<cut off>

eug...@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


eug...@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

Try it with ppp92-100-127-177.pppoe.avangarddsl.ru -- that's what smtpd
is using.

/mjt

Reply via email to