В sendmail.cf присутствуют строки:
# DNS based IP address spam list dul.ru Use mail relays of your ISP
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.dul.ru Use mail relays of your ISP. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.dul.ru Use mail relays of your ISP. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site dul.ru Use mail relays of your ISP"
# DNS based IP address spam list work.drbl.caravan.ru Use mail relays of your ISP
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.work.drbl.caravan.ru Use mail relays of your ISP. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.work.drbl.caravan.ru Use mail relays of your ISP. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site work.drbl.caravan.ru Use mail relays of your ISP"
# DNS based IP address spam list relays.ordb.org Spam bloked from open relay
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.relays.ordb.org Spam bloked from open relay. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.relays.ordb.org Spam bloked from open relay. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site relays.ordb.org Spam bloked from open relay"
# DNS based IP address spam list relays.ordb.org Rejected - see http://ordb.org/
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.relays.ordb.org Rejected - see http://ordb.org/. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.relays.ordb.org Rejected - see http://ordb.org/. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site relays.ordb.org Rejected - see http://ordb.org/"
# DNS based IP address spam list bl.spamcop.net Spam blocked - see http://spamcop.net/bl.shtml?$&{client_addr}
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.bl.spamcop.net Spam blocked - see http://spamcop.net/bl.shtml?$&{client_addr}. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.bl.spamcop.net Spam blocked - see http://spamcop.net/bl.shtml?$&{client_addr}. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site bl.spamcop.net Spam blocked - see http://spamcop.net/bl.shtml?$&{client_addr}"
# DNS based IP address spam list ex.dnsbl.org Spam bloked - see http://www.dnsbl.org/
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.ex.dnsbl.org Spam bloked - see http://www.dnsbl.org/. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.ex.dnsbl.org Spam bloked - see http://www.dnsbl.org/. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site ex.dnsbl.org Spam bloked - see http://www.dnsbl.org/"
# DNS based IP address spam list blackholes.mail-abuse.org Rejected - see http://www.mail-abuse.org/rbl/
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.blackholes.mail-abuse.org Rejected - see http://www.mail-abuse.org/rbl/. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.blackholes.mail-abuse.org Rejected - see http://www.mail-abuse.org/rbl/. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site blackholes.mail-abuse.org Rejected - see http://www.mail-abuse.org/rbl/"
# DNS based IP address spam list dialups.mail-abuse.org Dialup - see http://www.mail-abuse.org/dul/
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.dialups.mail-abuse.org Dialup - see http://www.mail-abuse.org/dul/. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.dialups.mail-abuse.org Dialup - see http://www.mail-abuse.org/dul/. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site dialups.mail-abuse.org Dialup - see http://www.mail-abuse.org/dul/"
# DNS based IP address spam list relays.mail-abuse.org Open spam relay - see http://work-rss.mail-abuse.org/rss/
R$* $: $&{client_addr}
R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.relays.mail-abuse.org Open spam relay - see http://work-rss.mail-abuse.org/rss/. $: OK $)
R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.relays.mail-abuse.org Open spam relay - see http://work-rss.mail-abuse.org/rss/. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+ $#error $@ 5.7.1 $: "550 Mail from " $&{client_addr} " refused by blackhole site relays.mail-abuse.org Open spam relay - see http://work-rss.mail-abuse.org/rss/"
но tcpdump не фиксирует обращение к этим ресурсам (к dul.ru, например).
и спам никак не фильтруется.
т.е. я только добавил
FEATURE(`dnsbl', `relays.ordb.org', `Rejected - see http://ordb.org/')dnl
FEATURE(`dnsbl', `bl.spamcop.net', `Spam blocked - see http://spamcop.net/bl.shtml?$&{client_addr}')dnl
FEATURE(`dnsbl',`ex.dnsbl.org', `Spam bloked - see http://www.dnsbl.org/')dnl
FEATURE(dnsbl, `blackholes.mail-abuse.org', `Rejected - see http://www.mail-abuse.org/rbl/')dnl
FEATURE(dnsbl, `dialups.mail-abuse.org', `Dialup - see http://www.mail-abuse.org/dul/')dnl
FEATURE(dnsbl, `relays.mail-abuse.org', `Open spam relay - see http://work-rss.mail-abuse.org/rss/')dnl
FEATURE(`dnsbl', `dul.ru', `Use mail relays of your ISP')dnl
в sendmail.mc эти строки, сделал m4 sendmail.mc > sendmail.cf, а потом из результирующего файла выбрал то, что сверху написал и вставил в действующий sendmail.cf (исходного sendmail.mc у меня не сохранилось, там были доработки с антивирусом).
Что я не так сделал?