# dnswl.conf # The following section is mandatory and defines some parameters, how # dnswl is running. The parameters should mostly be self explaining. [global] uid = dnswl gid = dnswl # Use either bind_address or bind_address6. If both are given, # bind_address is used. # # i.e. '127.0.0.1' (default) bind_address = # i.e. '::1' bind_address6 = ::1 port = 12526 # If using sql, make sure, you have installed all necessary dependent # software, i.e. python-elixir and the sql server corresponding libs. # If using Ubuntu, you simply can do apt-get install python-elixir and # install i.e. mysql libs, if using this kind of sql server [sql] use_sql = Yes verbose_sql = Yes # The following parameters must be set i "dsn" below. # # dbtype - may be mysql or postgres # user - is the database username with correct DB privileges, at least # SELECT and INSERT is required # pass - the database users' password # servername and database should be self explained dsn = dbtype://user:pass@servername/database # You may change the following settings accordingly to your current # amavisd-new tables. This might be different at your system. The following # values are samples and are the defaults. policy_bank = 1 policy_priority = 7 mailaddr_priority = 7 # The following section lists swl sites. You can create a # separate section for each site and specify the list of IPs that # their DNS systems return and that you are interested in. There is no # need to specify all four quads of the IP. See examples below # # If not specifying any IPs, dnswl.py will assume 127 for you. # # It is also possible to specify a "boost" value, which tells dnswl.py # how much score to put in the wblist field of amavisd-new. If not # given, we assume -10.0 [swl-sites] sites = swl.spamhaus.org, list.dnswl.org [swl.spamhaus.org] ips = 127.0.2.2, 127.0.2.3 boost = -10.0 [list.dnswl.org] ips = 127.0.2, 127.0.5.0 / -0.1, 127.0.6, 127.0.8, 127.0.9.2 /-10.0, 127.0.9.3/-100.0, 127.0.11, 127.0.12 boost = -10.0