# Configuration file for qmail-smtpd
# $Id: conf-smtpd,v 1.10 2004/12/22 18:34:54 glen Exp $

# Stuff to run before tcpserver
#QMAIL_TCPSERVER_PRE=""
# Stuff to run before qmail-smtpd
#QMAIL_SMTP_PRE=""
# Stuff to after qmail-smtpd
#QMAIL_SMTP_POST=""

# we limit data and stack segments to 20mbytes, as 8mb is not sufficent with QMAILQUEUE/QHPSI
SOFTLIMIT_OPTS="-m 20000000"

# this turns off the IDENT grab attempt on connecting
TCPSERVER_OPTS="${TCPSERVER_OPTS} -R"

# Put rblsmtpd entries to separate file
LOG_DEST="'-* rblsmtpd: *' ${LOG_DEST} '-*' '+* rblsmtpd: *' /var/log/qmail/rblsmtpd"

# If you don't want to use rblsmtpd, then disable this whole directive.
# see http://cr.yp.to/ucspi-tcp/rblsmtpd.html for more details
QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} rblsmtpd
-r relays.ordb.org
-r bl.spamcop.net
-r dnsbl.njabl.org
-r sbl-xbl.spamhaus.org
-r dnsbl.ahbl.org
-r cbl.abuseat.org
-r list.dsbl.org
-r opm.blitzed.org
-r dsn.rfc-ignorant.org
-r ipwhois.rfc-ignorant.org
-r postmaster.rfc-ignorant.org
-r dnsbl.sorbs.net
"

# If you are interested in providing POP or IMAP before SMTP type relaying,
# emerge relay-ctrl, then uncomment the next 2 lines
#QMAIL_TCPSERVER_PRE="${QMAIL_TCPSERVER_PRE} envdir /etc/relay-ctrl relay-ctrl-chdir"
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} relay-ctrl-check"
# In /etc/courier-imap/authdaemonrc add the next line to the end:
#authmodulelist="${authmodulelist} relay-ctrl-allow"
# Then in /etc/courier-imap/{imapd,imapd-ssl,pop3d,pop3d-ssl}
# Add this at the end
#PRERUN="${PRERUN} envdir /etc/relay-ctrl relay-ctrl-chdir"

# This next block is for SMTP-AUTH 
# This provides the LOGIN, PLAIN and CRAM-MD5 types
# the 'cmd5checkpw' used in $QMAIL_SMTP_AUTHCHECKPASSWORD supports CRAM-MD5
# and reads it's data from /etc/poppasswd
# see the manpage for cmd5checkpw for details on the passwords
# uncomment the next four lines to enable SMTP-AUTH
#QMAIL_SMTP_AUTHHOST=$(<${QMAIL_CONTROLDIR}/me)
#[ -z "${QMAIL_SMTP_POST}" ] && QMAIL_SMTP_POST=/bin/true
#QMAIL_SMTP_CHECKPASSWORD="/bin/cmd5checkpw"
#QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"
