Petar Bogdanovic
unread,Nov 10, 2014, 7:12:02 PM11/10/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mop...@googlegroups.com
Hello,
Attached is my mopherd.acl (f.k.a. mail.acl), adjusted for mopher 0.5.1:
-------------- 8< --------------
# mopherd.acl
# headers
define hdr_counter "relay=" + counter_relay + " sender=" + counter_penpal
define hdr_delay "tarpit=" + tarpit_delayed + "s greylist=" + greylist_delayed + "s"
define hdr_score "score=" + spamd_score + " symbols=" + spamd_symbols
# category
define wl_dnswl list_dnswl ~ "127\.0\.[0-9]+\.[23]"
define bl_local list_local == 127.0.0.5
define bl_spamhaus list_spamhaus
define bl_spamcop list_spamcop
define spf_fail spf == SPF_FAIL
define spf_softfail spf == SPF_SOFTFAIL
# misc
define has_counter counter_relay > 0 || counter_penpal > 0
define has_delay tarpit_delayed || greylist_delayed
# connect
connect counter_relay >= 5 continue
connect wl_dnswl continue
connect bl_local tarpit 25s
connect tarpit 5s
# envrcpt
envrcpt counter_penpal >= 5 continue
envrcpt wl_dnswl continue
envrcpt bl_local reject
envrcpt greylist
envrcpt spf_fail greylist delay 15m attempts 4
envrcpt spf_softfail greylist delay 15m attempts 4
envrcpt bl_spamhaus greylist delay 15m attempts 4
envrcpt bl_spamcop greylist delay 15m attempts 4
# eom
eom counter_penpal >= 5 jump stamp
eom body_size >= 2M jump stamp
eom wl_dnswl jump stamp
eom spamd_spam reject
eom spamd_score >= 4 greylist delay 15m attempts 4
eom spamd_score >= 3 greylist delay 5m attempts 4
eom jump stamp
# stamp
stamp has_counter add header "X-Mopher-Counter" value hdr_counter
stamp has_delay add header "X-Mopher-Delay" value hdr_delay
stamp isset spamd_score add header "X-Mopher-Score" value hdr_score
-------------- >8 --------------
If you would like to know more: mopherd.acl(5) and mopherd.conf(5) now
have lengthy and (hopefully) complete man-pages.
Try:
$ man 7 mopher
$ man 5 mopherd.acl
$ man 5 mopherd.conf
$ man 8 mopherd
$ man 8 mopherctl
Cheers,
Petar