/etc/mtpolicyd/mtpolicyd.conf is in mtpolicyd 2.02-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | # -*- apache -*-
#
# Configuration for the mailteam policy daemon
user=mtpolicyd
group=mtpolicyd
#pid_file="/var/run/mtpolicyd/mtpolicyd.pid"
#chroot=/var/run/mtpolicyd
# 0=>'err', 1=>'warning', 2=>'notice', 3=>'info', 4=>'debug' (default: 2)
log_level=2
host=127.0.0.1
port="127.0.0.1:12345"
min_servers=4
min_spare_servers=4
max_spare_servers=12
max_servers=50
max_requests=1000
#keepalive_timeout=60
keepalive_timeout=0
# should be the same value as smtpd_policy_service_reuse_count_limit (postfix >2.12)
max_keepalive=0
#max_keepalive=100
# timeout for processing of one request in seconds
request_timeout=20
#<Connection ldap>
# module = "Ldap"
# host = "localhost"
#</Connection>
<Connection memcached>
module = "Memcached"
servers = "127.0.0.1:11211"
# namespace = "mt-"
</Connection>
<Connection db>
module = "Sql"
dsn = "dbi:SQLite:dbname=/var/lib/mtpolicyd/mtpolicyd.sqlite"
</Connection>
<SessionCache>
module = "Memcached"
#memcached = "memcached"
# expire session cache entries
expire = "300"
# wait timeout will be increased each time 50,100,150,... (usec)
lock_wait=50
# abort after n retries
lock_max_retry=50
# session lock times out after (sec)
lock_timeout=10
</SessionCache>
<VirtualHost 12345>
name="reputation"
# we only check for a ticket here
# avoid running thru all checks for early retries
<Plugin greylist>
module = "Greylist"
score = -5
mode = "passive"
create_ticket = 0
query_autowl = 0
</Plugin>
<Plugin spf>
module = "SPF"
pass_mode = "passive"
pass_score = -10
fail_mode = "reject" # stop
#fail_score = 5
</Plugin>
# you may want to use some unused recipient addresses as honeypot
# make sure they are really unused
#<Plugin honeypot>
# module = "Honeypot"
# recipients_re = "^(chung|ogc|wore|aio|duy)@(yourdomain1|yourdomain2)\.de$"
#</Plugin>
<Plugin dnswl.org>
module = "RBL"
mode = "accept" # will stop here
domain="list.dnswl.org"
</Plugin>
<Plugin geoip>
module = "GeoIPLookup"
# apt-get install geoip-database
database = "/usr/share/GeoIP/GeoIP.dat"
</Plugin>
<Plugin geoip-good>
module = "GeoIPAction"
result_from = "geoip"
country_codes = "DE,AT,CH,FR,IT"
mode = passive
score = -1
</Plugin>
<Plugin geoip-bad>
module = "GeoIPAction"
result_from = "geoip"
country_codes = "RU,UA,CN,IN"
mode = passive
score = 5
</Plugin>
<Plugin spamhaus-rbl>
module = "RBL"
mode = "passive"
domain="zen.spamhaus.org"
</Plugin>
<Plugin spamhaus-rbl-sbl>
module = "RBLAction"
result_from = "spamhaus-rbl"
mode = "passive"
re_match = "^127\.0\.0\.[23]$"
score = 5
</Plugin>
<Plugin spamhaus-rbl-xbl>
module = "RBLAction"
result_from = "spamhaus-rbl"
mode = "passive"
re_match = "^127\.0\.0\.[4-7]$"
score = 5
</Plugin>
<Plugin spamhaus-rbl-pbl>
module = "RBLAction"
result_from = "spamhaus-rbl"
mode = "passive"
re_match = "^127\.0\.0\.1[01]$"
score = 3
</Plugin>
<Plugin spamhaus-dbl>
module = "DBL"
domain="dbl.spamhaus.org"
helo_name_mode=passive
helo_name_score=1
sender_mode=passive
sender_score=5
reverse_client_name_mode=passive
reverse_client_name_score=2.5
</Plugin>
<Plugin sorbs.net>
module = "RBL"
mode = "passive"
domain="dnsbl.sorbs.net"
score = 5
</Plugin>
<Plugin manitu.net>
module = "RBL"
mode = "passive"
domain="ix.dnsbl.manitu.net"
score = 5
</Plugin>
<Plugin spamcop>
module = "RBL"
mode = "passive"
domain="bl.spamcop.net"
score = 5
</Plugin>
<Plugin abuse.ch>
module = "RBL"
mode = "passive"
domain="drone.abuse.ch"
score = 3
</Plugin>
<Plugin wpbl.info>
module = "RBL"
mode = "passive"
domain="db.wpbl.info"
score = 3
</Plugin>
<Plugin barracudacentral.org>
module = "RBL"
mode = "passive"
domain="bb.barracudacentral.org"
score = 3
</Plugin>
# # block ip address with iptables filter
# <Plugin ScoreBan>
# module = "ScoreAction"
# threshold = 15
# <Plugin ban-ip>
# module = "Fail2Ban"
# socket = "/var/run/fail2ban/fail2ban.sock"
# jail = "postfix"
# </Plugin>
# </Plugin>
# score >= 15 will be rejected
<Plugin ScoreReject>
module = "ScoreAction"
threshold = 15
action = "reject sender ip %IP% is blocked (score=%SCORE%%SCORE_DETAIL%)"
</Plugin>
# score >= 5 gets greylisting applied
<Plugin ScoreGreylist>
module = "ScoreAction"
threshold = 5
<Plugin greylist>
module = "Greylist"
score = -5
mode = "passive"
# activating the autowl will require a SQL database
use_autowl = 1
</Plugin>
</Plugin>
# add an header to everything left
<Plugin ScoreTag>
module = "AddScoreHeader"
spam_score=5
</Plugin>
</VirtualHost>
|