| 1 |
# |
| 2 |
# Simple greylisting config file using the new features |
| 3 |
# See greylist2.conf for a more detailed list of available options |
| 4 |
# |
| 5 |
# $Id: greylist.conf,v 1.50 2013/08/13 12:45:08 manu Exp $ |
| 6 |
# |
| 7 |
|
| 8 |
pidfile "/var/run/milter-greylist.pid" |
| 9 |
socket "/var/run/milter-greylist/milter-greylist.sock" |
| 10 |
dumpfile "/var/lib/milter-greylist/greylist.db" 600 |
| 11 |
dumpfreq 10m |
| 12 |
user "greylist" |
| 13 |
|
| 14 |
# If using Postfix rather than Sendmail, uncomment the following |
| 15 |
# socket and user settings and comment out the socket and user above. |
| 16 |
#socket "/var/run/milter-greylist/milter-greylist.sock" 660 |
| 17 |
#user "postfix" |
| 18 |
|
| 19 |
# If using a chrooted Postfix, you might want to use something like |
| 20 |
# the following instead (where "/var/spool/postfix" is the Postfix |
| 21 |
# chroot): |
| 22 |
#socket "/var/spool/postfix/milter-greylist/milter-greylist.sock" 660 |
| 23 |
#user "greylist:postfix" |
| 24 |
|
| 25 |
# Log milter-greylist activity to a file |
| 26 |
#stat ">>/var/milter-greylist/greylist.log" \ |
| 27 |
# "%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh\n" |
| 28 |
# Same, sent to syslog |
| 29 |
#stat "|logger -p local7.info" \ |
| 30 |
# "%T{%Y/%m/%d %T} %d [%i] %f -> %r %S (ACL %A) %Xc %Xe %Xm %Xh" |
| 31 |
|
| 32 |
# Be verbose (or use -v flag) |
| 33 |
#verbose |
| 34 |
|
| 35 |
# Do not tell spammer how long they have to wait |
| 36 |
quiet |
| 37 |
|
| 38 |
# MX peering |
| 39 |
#peer 192.0.2.17 |
| 40 |
#peer 192.0.2.18 |
| 41 |
|
| 42 |
# Your own network, which should not suffer greylisting |
| 43 |
list "my network" addr { 127.0.0.1/8 10.0.0.0/8 192.0.2.0/24 } |
| 44 |
|
| 45 |
# Your MXes and Mailforwardinghosts, Mailinglistsproviders, which you |
| 46 |
# don't want to annoy. |
| 47 |
list "my friends" addr { \ |
| 48 |
70.103.162.0/24 \ # Debian Mail+Listservers. NEVER unwhitelist them. |
| 49 |
140.211.166.0/24 \ # Debian Bugs |
| 50 |
192.25.206.0/24 \ # Debian web/cvs/people |
| 51 |
194.109.137.218/32 \ # Debian security/www-master.d.o |
| 52 |
} |
| 53 |
|
| 54 |
# This is a list of broken MTAs that break with greylisting. Derived from |
| 55 |
# http://cvs.puremagic.com/viewcvs/greylisting/schema/whitelist_ip.txt?rev=1.16 |
| 56 |
list "broken mta" addr { \ |
| 57 |
12.5.136.141/32 \ # Southwest Airlines (unique sender) |
| 58 |
12.5.136.142/32 \ # Southwest Airlines |
| 59 |
12.5.136.143/32 \ # Southwest Airlines |
| 60 |
12.5.136.144/32 \ # Southwest Airlines |
| 61 |
12.107.209.244/32 \ # kernel.org (unique sender) |
| 62 |
12.107.209.250/32 \ # sourceware.org (unique sender) |
| 63 |
63.82.37.110/32 \ # SLmail |
| 64 |
63.169.44.143/32 \ # Southwest Airlines |
| 65 |
63.169.44.144/32 \ # Southwest Airlines |
| 66 |
64.7.153.18/32 \ # sentex.ca (common pool) |
| 67 |
64.12.136.0/24 \ # AOL (common pool) |
| 68 |
64.12.137.0/24 \ # AOL |
| 69 |
64.12.138.0/24 \ # AOL |
| 70 |
64.124.204.39 \ # moveon.org (unique sender) |
| 71 |
64.125.132.254/32 \ # collab.net (unique sender) |
| 72 |
64.233.160.0/19 \ # Google |
| 73 |
66.94.237.16/28 \ # Yahoo Groups servers (common pool) |
| 74 |
66.94.237.32/28 \ # Yahoo Groups servers (common pool) |
| 75 |
66.94.237.48/30 \ # Yahoo Groups servers (common pool) |
| 76 |
66.100.210.82/32 \ # Groupwise? |
| 77 |
66.135.192.0/19 \ # Ebay |
| 78 |
66.162.216.166/32 \ # Groupwise? |
| 79 |
66.206.22.82/32 \ # Plexor |
| 80 |
66.206.22.83/32 \ # Plexor |
| 81 |
66.206.22.84/32 \ # Plexor |
| 82 |
66.206.22.85/32 \ # Plexor |
| 83 |
66.218.66.0/23 \ # Yahoo Groups servers (common pool) |
| 84 |
66.218.67.0/23 \ # Yahoo Groups servers (common pool) |
| 85 |
66.218.68.0/23 \ # Yahoo Groups servers (common pool) |
| 86 |
66.218.69.0/23 \ # Yahoo Groups servers (common pool) |
| 87 |
66.27.51.218/32 \ # ljbtc.com (Groupwise) |
| 88 |
66.102.0.0/20 \ # Google |
| 89 |
66.249.80.0/20 \ # Google |
| 90 |
72.14.192.0/18 \ # Google |
| 91 |
74.125.0.0/16 \ # Google |
| 92 |
152.163.225.0/24 \ # AOL |
| 93 |
194.245.101.88/32 \ # Joker.com |
| 94 |
195.235.39.19/32 \ # Tid InfoMail Exchanger v2.20 |
| 95 |
195.238.2.0/24 \ # skynet.be (wierd retry pattern, common pool) |
| 96 |
195.238.3.0/24 \ # skynet.be |
| 97 |
195.46.220.208/32 \ # mgn.net |
| 98 |
195.46.220.209/32 \ # mgn.net |
| 99 |
195.46.220.210/32 \ # mgn.net |
| 100 |
195.46.220.211/32 \ # mgn.net |
| 101 |
195.46.220.221/32 \ # mgn.net |
| 102 |
195.46.220.222/32 \ # mgn.net |
| 103 |
195.238.2.0/24 \ # skynet.be (wierd retry pattern) |
| 104 |
195.238.3.0/24 \ # skynet.be |
| 105 |
204.107.120.10/32 \ # Ameritrade (no retry) |
| 106 |
205.188.0.0/16 \ # AOL |
| 107 |
205.206.231.0/24 \ # SecurityFocus.com (unique sender) |
| 108 |
207.115.63.0/24 \ # Prodigy - retries continually |
| 109 |
207.171.168.0/24 \ # Amazon.com |
| 110 |
207.171.180.0/24 \ # Amazon.com |
| 111 |
207.171.187.0/24 \ # Amazon.com |
| 112 |
207.171.188.0/24 \ # Amazon.com |
| 113 |
207.171.190.0/24 \ # Amazon.com |
| 114 |
209.132.176.174/32 \ # sourceware.org mailing lists (unique sender) |
| 115 |
209.85.128.0/17 \ # Google |
| 116 |
211.29.132.0/24 \ # optusnet.com.au (wierd retry pattern) |
| 117 |
213.136.52.31/32 \ # Mysql.com (unique sender) |
| 118 |
216.33.244.0/24 \ # Ebay |
| 119 |
216.239.32.0/19 \ # Google |
| 120 |
217.158.50.178/32 \ # AXKit mailing list (unique sender) |
| 121 |
} |
| 122 |
|
| 123 |
# List of users that want greylisting |
| 124 |
list "grey users" rcpt { \ |
| 125 |
[email protected] \ |
| 126 |
[email protected] \ |
| 127 |
[email protected] \ |
| 128 |
} |
| 129 |
|
| 130 |
# Give this a try if you enabled DNSRBL |
| 131 |
#dnsrbl "SORBS DUN" dnsbl.sorbs.net 127.0.0.10 |
| 132 |
#dnsrbl "SBL" sbl-xbl.spamhaus.org 127.0.0.2 |
| 133 |
#dnsrbl "CBL" sbl-xbl.spamhaus.org 127.0.0.4 |
| 134 |
#dnsrbl "NJABL" sbl-xbl.spamhaus.org 127.0.0.5 |
| 135 |
#dnsrbl "PBL" zen.spamhaus.org 127.0.0.10/31 |
| 136 |
#dnsrbl "MTAWL" list.dnswl.org 127.0.0.0/16 |
| 137 |
|
| 138 |
# Here is an example of user preference pulled from a LDAP directory |
| 139 |
# (requires building --with-libcurl). If the milterGreylistStatus |
| 140 |
# attribute is set to TRUE, then $usrRBL will be usable later in the |
| 141 |
# ACL and will carry the values of the usrRBL attribute. |
| 142 |
# urlcheck "userpref" \ |
| 143 |
# "ldap://localhost/dc=example,dc=net?milterGreylistStatus,usrRBL?one?mail=%r" \ |
| 144 |
# 30 getprop clear fork |
| 145 |
|
| 146 |
racl continue from /.*/ addheader "X-Greylist: inspected by %V for IP:'%i' DOMAIN:'%d' HELO:'%h' FROM:'%f' RCPT:'%r'" |
| 147 |
|
| 148 |
# And here is the access list |
| 149 |
racl whitelist list "my network" |
| 150 |
racl whitelist list "my friends" |
| 151 |
racl whitelist list "broken mta" |
| 152 |
#racl whitelist dnsrbl "MTAWL" |
| 153 |
#racl blacklist urlcheck "userpref" $usrRBL "CBL" dnsrbl "CBL" \ |
| 154 |
# msg "Sender IP caught in CBL blacklist" |
| 155 |
#racl blacklist $usrRBL "SBL" dnsrbl "BBL" \ |
| 156 |
# msg "Sender IP caught in SBL blacklist" |
| 157 |
#racl blacklist $usrRBL "NJABL" dnsrbl "NJABL" \ |
| 158 |
# msg "Sender IP caught in NJABL blacklist" |
| 159 |
#racl greylist list "grey users" dnsrbl "SORBS DUN" delay 24h autowhite 3d |
| 160 |
racl greylist list "grey users" delay 30m autowhite 3d |
| 161 |
racl whitelist default |
| 162 |
|
| 163 |
# Example of content filtering for fighting image SPAM |
| 164 |
#dacl blacklist body /src[:blank:]*=(3D)?[:blank:]*["']?[:blank:]*cid:/ \ |
| 165 |
# msg "Sorry, We do not accept images embedded in HTML" |