2012-05-11 07:50:03 +02:00
|
|
|
#
|
2002-12-09 09:47:15 +01:00
|
|
|
# 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=
|
|
|
|
|
2012-05-11 07:50:03 +02:00
|
|
|
# hosts_allow does not work with the tcpserver deployment model!
|
|
|
|
# perldoc plugins/hosts_allow for an alternative.
|
|
|
|
#
|
2006-01-11 17:21:08 +01:00
|
|
|
# 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
|
|
|
|
|
2012-05-22 22:40:39 +02:00
|
|
|
# information plugins
|
|
|
|
ident/geoip
|
|
|
|
#ident/p0f /tmp/.p0f_socket version 3
|
|
|
|
#connection_time
|
|
|
|
|
2006-04-07 20:58:02 +02:00
|
|
|
# enable to accept MAIL FROM:/RCPT TO: addresses without surrounding <>
|
|
|
|
dont_require_anglebrackets
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2003-11-06 23:31:38 +01:00
|
|
|
quit_fortune
|
2012-04-08 08:36:14 +02:00
|
|
|
# tls should load before count_unrecognized_commands
|
|
|
|
#tls
|
2003-11-06 23:31:38 +01:00
|
|
|
check_earlytalker
|
|
|
|
count_unrecognized_commands 4
|
2012-05-18 09:43:06 +02:00
|
|
|
relay
|
2003-11-06 23:31:38 +01:00
|
|
|
|
|
|
|
require_resolvable_fromhost
|
|
|
|
|
|
|
|
rhsbl
|
|
|
|
dnsbl
|
2012-06-23 02:21:09 +02:00
|
|
|
badmailfrom
|
2012-06-23 06:02:03 +02:00
|
|
|
badrcptto
|
2012-06-23 06:05:01 +02:00
|
|
|
helo
|
2003-11-06 23:31:38 +01:00
|
|
|
|
|
|
|
# sender_permitted_from
|
2010-05-11 07:31:52 +02:00
|
|
|
# greylisting p0f genre,windows
|
2003-11-06 23:31:38 +01:00
|
|
|
|
2012-06-03 03:47:12 +02:00
|
|
|
#auth/auth_checkpassword checkpw /usr/local/vpopmail/bin/vchkpw true /usr/bin/true
|
|
|
|
#auth/auth_vpopmail
|
|
|
|
#auth/auth_vpopmaild
|
|
|
|
#auth/auth_vpopmail_sql
|
2007-05-18 00:02:32 +02:00
|
|
|
auth/auth_flat_file
|
|
|
|
auth/authdeny
|
|
|
|
|
2002-07-08 04:30:11 +02:00
|
|
|
# this plugin needs to run after all other "rcpt" plugins
|
2004-09-22 18:01:16 +02:00
|
|
|
rcpt_ok
|
2002-08-06 14:01:22 +02:00
|
|
|
|
2012-06-23 02:26:31 +02:00
|
|
|
headers days 5 reject_type temp require From,Date
|
2012-05-21 10:01:42 +02:00
|
|
|
domainkeys
|
2012-05-13 05:27:50 +02:00
|
|
|
|
2003-11-06 23:31:38 +01:00
|
|
|
# content filters
|
2012-06-23 00:08:16 +02:00
|
|
|
#uribl
|
2004-06-30 11:26:18 +02:00
|
|
|
virus/klez_filter
|
2003-11-06 23:31:38 +01:00
|
|
|
|
|
|
|
# You can run the spamassassin plugin with options. See perldoc
|
2012-05-11 07:50:03 +02:00
|
|
|
# plugins/spamassassin for details.
|
2003-11-06 23:31:38 +01:00
|
|
|
#
|
|
|
|
spamassassin
|
|
|
|
|
|
|
|
# rejects mails with a SA score higher than 20 and munges the subject
|
2012-05-11 07:50:03 +02:00
|
|
|
# of the score is higher than 10.
|
2003-11-06 23:31:38 +01:00
|
|
|
#
|
|
|
|
# spamassassin reject_threshold 20 munge_subject_threshold 10
|
|
|
|
|
2012-04-20 07:42:04 +02:00
|
|
|
# dspam must run after spamassassin for the learn_from_sa feature to work
|
|
|
|
dspam learn_from_sa 7 reject 1
|
2003-11-06 23:31:38 +01:00
|
|
|
|
|
|
|
# run the clamav virus checking plugin
|
2004-06-30 11:26:18 +02:00
|
|
|
# virus/clamav
|
2003-11-06 23:31:38 +01:00
|
|
|
|
2007-09-24 22:59:27 +02:00
|
|
|
# You must enable a queue plugin - see the options in plugins/queue/ - for example:
|
|
|
|
|
|
|
|
# queue to a maildir
|
|
|
|
# queue/maildir /home/spamtrap/mail
|
|
|
|
|
2002-12-09 09:47:15 +01:00
|
|
|
# queue the mail with qmail-queue
|
2007-09-24 22:59:27 +02:00
|
|
|
# queue/qmail-queue
|
2002-09-08 12:07:34 +02:00
|
|
|
|
2004-09-07 07:36:41 +02:00
|
|
|
|
|
|
|
# If you need to run the same plugin multiple times, you can do
|
|
|
|
# something like the following
|
2012-05-18 09:43:06 +02:00
|
|
|
# relay
|
|
|
|
# relay:0 somearg
|
|
|
|
# relay:1 someotherarg
|