| 1 |
# |
| 2 |
# Example configuration file for plugins |
| 3 |
# |
| 4 |
|
| 5 |
# enable this to get configuration via http; see perldoc |
| 6 |
# plugins/http_config for details. |
| 7 |
# http_config http://localhost/~smtpd/config/ http://www.example.com/smtp.pl?config= |
| 8 |
|
| 9 |
# tls should load before count_unrecognized_commands |
| 10 |
# to support legacy port 465, tls must load before connection plugins |
| 11 |
#tls |
| 12 |
|
| 13 |
# hosts_allow does not work with the tcpserver deployment model! |
| 14 |
# perldoc plugins/hosts_allow for an alternative. |
| 15 |
# |
| 16 |
# The hosts_allow module must be loaded if you want the -m / --max-from-ip / |
| 17 |
# my $MAXCONNIP = 5; # max simultaneous connections from one IP |
| 18 |
# settings... without this it will NOT refuse more than $MAXCONNIP connections |
| 19 |
# from one IP! |
| 20 |
hosts_allow |
| 21 |
|
| 22 |
# connection / informational plugins |
| 23 |
#connection_time |
| 24 |
#karma penalty_box 1 reject naughty |
| 25 |
ident/geoip |
| 26 |
#ident/p0f /tmp/.p0f_socket version 3 |
| 27 |
fcrdns |
| 28 |
|
| 29 |
quit_fortune |
| 30 |
earlytalker |
| 31 |
count_unrecognized_commands 4 |
| 32 |
|
| 33 |
relay |
| 34 |
#whitelist |
| 35 |
dnsbl reject naughty reject_type disconnect |
| 36 |
rhsbl |
| 37 |
# greylisting reject 0 p0f genre,windows |
| 38 |
|
| 39 |
|
| 40 |
# HELO plugins |
| 41 |
helo policy strict reject 0 |
| 42 |
# enable to reject MAIL FROM:/RCPT TO: parameters if client helo was HELO |
| 43 |
# (strict RFC 821)... this is not used in EHLO ... |
| 44 |
# parse_addr_withhelo |
| 45 |
|
| 46 |
|
| 47 |
# AUTH plugins |
| 48 |
#auth/auth_checkpassword checkpw /usr/local/vpopmail/bin/vchkpw true /usr/bin/true |
| 49 |
#auth/auth_vpopmail |
| 50 |
#auth/auth_vpopmaild |
| 51 |
#auth/auth_vpopmail_sql |
| 52 |
auth/auth_flat_file |
| 53 |
auth/authdeny |
| 54 |
|
| 55 |
# enable to accept MAIL FROM:/RCPT TO: addresses without surrounding <> |
| 56 |
dont_require_anglebrackets |
| 57 |
|
| 58 |
# MAIL FROM plugins |
| 59 |
badmailfrom reject naughty |
| 60 |
#badmailfromto |
| 61 |
resolvable_fromhost reject 0 |
| 62 |
sender_permitted_from reject 1 |
| 63 |
|
| 64 |
# RCPT TO plugins |
| 65 |
badrcptto |
| 66 |
#qmail_deliverable |
| 67 |
# this plugin needs to run after all other "rcpt" plugins |
| 68 |
rcpt_ok |
| 69 |
|
| 70 |
# DATA plugins |
| 71 |
#uribl |
| 72 |
headers reject 0 reject_type temp require From,Date future 2 past 15 |
| 73 |
bogus_bounce log |
| 74 |
#loop |
| 75 |
dkim reject 0 |
| 76 |
# dmarc requires dkim and SPF to run before it |
| 77 |
dmarc |
| 78 |
|
| 79 |
# content filters |
| 80 |
virus/klez_filter |
| 81 |
|
| 82 |
# You can run the spamassassin plugin with options. See perldoc |
| 83 |
# plugins/spamassassin for details. |
| 84 |
# |
| 85 |
spamassassin reject 12 |
| 86 |
|
| 87 |
# rejects mails with a SA score higher than 20 and munges the subject |
| 88 |
# of the score is higher than 10. |
| 89 |
# |
| 90 |
# spamassassin reject 20 munge_subject_threshold 10 |
| 91 |
|
| 92 |
# dspam must run after spamassassin for the learn_from_sa feature to work |
| 93 |
dspam autolearn spamassassin reject 0.95 |
| 94 |
|
| 95 |
# run the clamav virus checking plugin (max size in Kb) |
| 96 |
# virus/clamav |
| 97 |
# virus/clamdscan deny_viruses yes max_size 1024 |
| 98 |
|
| 99 |
naughty reject data |
| 100 |
|
| 101 |
# You must enable a queue plugin - see the options in plugins/queue/ - for example: |
| 102 |
|
| 103 |
# queue to a maildir |
| 104 |
# queue/maildir /home/spamtrap/mail |
| 105 |
|
| 106 |
# queue the mail with qmail-queue |
| 107 |
# queue/qmail-queue |
| 108 |
|
| 109 |
# forward to another mail server |
| 110 |
# queue/smtp-forward 10.2.2.2 9025 |
| 111 |
|
| 112 |
|
| 113 |
# If you need to run the same plugin multiple times, you can do |
| 114 |
# something like the following |
| 115 |
# relay |
| 116 |
# relay:0 somearg |
| 117 |
# relay:1 someotherarg |