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=
|
|
|
|
|
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
|
|
|
|
|
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
|
2004-09-22 18:01:16 +02:00
|
|
|
check_relay
|
2003-11-06 23:31:38 +01:00
|
|
|
|
|
|
|
require_resolvable_fromhost
|
|
|
|
|
|
|
|
rhsbl
|
|
|
|
dnsbl
|
|
|
|
check_badmailfrom
|
|
|
|
check_badrcptto
|
|
|
|
check_spamhelo
|
|
|
|
|
|
|
|
# sender_permitted_from
|
2010-05-11 07:31:52 +02:00
|
|
|
# greylisting p0f genre,windows
|
2003-11-06 23:31:38 +01:00
|
|
|
|
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
|
|
|
|
2003-11-06 23:31:38 +01:00
|
|
|
# content filters
|
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
|
|
|
|
# plugins/spamassassin for details.
|
|
|
|
#
|
|
|
|
spamassassin
|
|
|
|
|
|
|
|
# rejects mails with a SA score higher than 20 and munges the subject
|
|
|
|
# of the score is higher than 10.
|
|
|
|
#
|
|
|
|
# spamassassin reject_threshold 20 munge_subject_threshold 10
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# check_relay
|
|
|
|
# check_relay:0 somearg
|
|
|
|
# check_relay:1 someotherarg
|