e7b72775f9
the plugin will detect if Mail::SPF is missing and not register it's hooks
117 lines
2.8 KiB
Plaintext
117 lines
2.8 KiB
Plaintext
#
|
|
# Example configuration file for plugins
|
|
#
|
|
|
|
# enable this to get configuration via http; see perldoc
|
|
# plugins/http_config for details.
|
|
# http_config http://localhost/~smtpd/config/ http://www.example.com/smtp.pl?config=
|
|
|
|
# tls should load before count_unrecognized_commands
|
|
# to support legacy port 465, tls must load before connection plugins
|
|
#tls
|
|
|
|
# hosts_allow does not work with the tcpserver deployment model!
|
|
# perldoc plugins/hosts_allow for an alternative.
|
|
#
|
|
# The hosts_allow module must be loaded if you want the -m / --max-from-ip /
|
|
# my $MAXCONNIP = 5; # max simultaneous connections from one IP
|
|
# settings... without this it will NOT refuse more than $MAXCONNIP connections
|
|
# from one IP!
|
|
hosts_allow
|
|
|
|
# connection / informational plugins
|
|
#connection_time
|
|
#karma penalty_box 1 reject naughty
|
|
ident/geoip
|
|
#ident/p0f /tmp/.p0f_socket version 3
|
|
fcrdns
|
|
|
|
quit_fortune
|
|
earlytalker
|
|
count_unrecognized_commands 4
|
|
|
|
relay
|
|
#whitelist
|
|
dnsbl reject naughty reject_type disconnect
|
|
rhsbl
|
|
# greylisting reject 0 p0f genre,windows
|
|
|
|
|
|
# HELO plugins
|
|
helo policy strict reject 0
|
|
# enable to reject MAIL FROM:/RCPT TO: parameters if client helo was HELO
|
|
# (strict RFC 821)... this is not used in EHLO ...
|
|
# parse_addr_withhelo
|
|
|
|
|
|
# AUTH plugins
|
|
#auth/auth_checkpassword checkpw /usr/local/vpopmail/bin/vchkpw true /usr/bin/true
|
|
#auth/auth_vpopmail
|
|
#auth/auth_vpopmaild
|
|
#auth/auth_vpopmail_sql
|
|
auth/auth_flat_file
|
|
auth/authdeny
|
|
|
|
# enable to accept MAIL FROM:/RCPT TO: addresses without surrounding <>
|
|
dont_require_anglebrackets
|
|
|
|
# MAIL FROM plugins
|
|
badmailfrom reject naughty
|
|
#badmailfromto
|
|
resolvable_fromhost reject 0
|
|
sender_permitted_from reject 1
|
|
|
|
# RCPT TO plugins
|
|
badrcptto
|
|
#qmail_deliverable
|
|
# this plugin needs to run after all other "rcpt" plugins
|
|
rcpt_ok
|
|
|
|
# DATA plugins
|
|
#uribl
|
|
headers reject 0 reject_type temp require From,Date future 2 past 15
|
|
bogus_bounce log
|
|
#loop
|
|
dkim reject 0
|
|
dmarc
|
|
|
|
# content filters
|
|
virus/klez_filter
|
|
|
|
# You can run the spamassassin plugin with options. See perldoc
|
|
# plugins/spamassassin for details.
|
|
#
|
|
spamassassin reject 12
|
|
|
|
# rejects mails with a SA score higher than 20 and munges the subject
|
|
# of the score is higher than 10.
|
|
#
|
|
# spamassassin reject 20 munge_subject_threshold 10
|
|
|
|
# dspam must run after spamassassin for the learn_from_sa feature to work
|
|
dspam autolearn spamassassin reject 0.95
|
|
|
|
# run the clamav virus checking plugin
|
|
# virus/clamav
|
|
# virus/clamdscan deny_viruses yes scan_all 1
|
|
|
|
naughty reject data
|
|
|
|
# You must enable a queue plugin - see the options in plugins/queue/ - for example:
|
|
|
|
# queue to a maildir
|
|
# queue/maildir /home/spamtrap/mail
|
|
|
|
# queue the mail with qmail-queue
|
|
# queue/qmail-queue
|
|
|
|
# forward to another mail server
|
|
# queue/smtp-forward 10.2.2.2 9025
|
|
|
|
|
|
# If you need to run the same plugin multiple times, you can do
|
|
# something like the following
|
|
# relay
|
|
# relay:0 somearg
|
|
# relay:1 someotherarg
|