Created
April 9, 2013 14:13
-
-
Save kaworu/5345977 to your computer and use it in GitHub Desktop.
rmilter.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sample config file for rmilter | |
| # $Id$ | |
| # | |
| # .include - directive to include other config file | |
| #.include ./rmilter-grey.conf | |
| # pidfile - path to pid file | |
| # Default: pidfile = /var/run/rmilter.pid | |
| pidfile = /var/run/rmilter/rmilter.pid; | |
| spamd { | |
| # use rspamd action for greylisting | |
| spamd_greylist = yes; | |
| # use rspamd action for messages | |
| spamd_soft_fail = yes; | |
| # add extended headers for messages | |
| extended_spam_headers = yes; | |
| # servers - spamd socket definitions in format: | |
| # /path/to/file | |
| # host[:port] | |
| # sockets are separated by ',' | |
| # is server name is prefixed with r: it is rspamd server | |
| # Default: empty | |
| servers = r:localhost:11333; | |
| # also_check - extra spamd servers to check | |
| #also_check = r:clam10.rambler.ru; | |
| # diff_dir - path where to write messages that have different results from main and extra checks | |
| #diff_dir = /var/run/rmilter/diffmsg; | |
| # connect_timeout - timeout in miliseconds for connecting to spamd | |
| # Default: 1s | |
| connect_timeout = 1s; | |
| # results_timeout - timeout in miliseconds for waiting for spamd response | |
| # Default: 20s | |
| results_timeout = 20s; | |
| # error_time - time in seconds during which we are counting errors | |
| # Default: 10 | |
| error_time = 10; | |
| # dead_time - time in seconds during which we are thinking that server is down | |
| # whitelist - list of ips or nets that should be not checked with spamd | |
| # Default: empty | |
| whitelist = 127.0.0.1/32, 192.168.0.0/16; | |
| # rspamd_metric - metric for using with rspamd | |
| # Default: "default" | |
| rspamd_metric = "default"; | |
| }; | |
| # bind_socket - socket credits for local bind: | |
| # unix:/path/to/file - bind to local socket | |
| # inet:port@host - bind to inet socket | |
| # Default: bind_socket = unix:/var/tmp/rmilter.sock; | |
| bind_socket = unix:/var/run/rmilter/rmilter.sock; | |
| # tempdir - path to directory that contains temporary files | |
| # Default: $TMPDIR | |
| tempdir = /tmp; | |
| # max_size - maximum size of scanned mail with clamav and dcc | |
| # Default: 0 (no limit) | |
| max_size = 10M; | |
| # spf_domains - path to file that contains hash of spf domains | |
| # Default: empty | |
| #spf_domains = rambler.ru, mail.ru; | |
| # use_dcc - whether use or not dcc system | |
| # Default: no | |
| use_dcc = no; | |
| # rule definition: | |
| # rule { | |
| # accept|discard|reject|tempfail|quarantine "[message]"; <- action definition | |
| # [not] connect <regexp> <regexp>; <- conditions | |
| # helo <regexp>; | |
| # envfrom <regexp>; | |
| # envrcpt <regexp>; | |
| # header <regexp> <regexp>; | |
| # body <regexp>; | |
| # }; | |
| # limits section | |
| limits { | |
| # Whitelisted ip or networks | |
| limit_whitelist = 127.0.0.1/32, 192.168.0.0/16; | |
| # Whitelisted recipients | |
| limit_whitelist_rcpt = postmaster, mailer-daemon; | |
| # Addrs for bounce checks | |
| limit_bounce_addrs = postmaster, mailer-daemon, symantec_antivirus_for_smtp_gateways, <>, null, fetchmail-daemon; | |
| # Limit for bounce mail | |
| limit_bounce_to = 5:0.000277778; | |
| # Limit for bounce mail per one source ip | |
| limit_bounce_to_ip = 5:0.000277778; | |
| # Limit for all mail per recipient | |
| limit_to = 20:0.016666667; | |
| # Limit for all mail per one source ip | |
| limit_to_ip = 30:0.025; | |
| # Limit for all mail per one source ip and from address | |
| limit_to_ip_from = 100:0.033333333; | |
| }; | |
| # Order of checks at EOM: | |
| # | |
| # SPF -> DCC -> CLAMAV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment