# Configuration file for qmail-smtpd
# $Id: conf-smtpd,v 1.17 2005/06/25 22:05:25 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=""

# if you want to bind on specific IP
#TCPSERVER_HOST=192.168.2.83

# 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 servers in conf-rblsmtpd.
# see http://cr.yp.to/ucspi-tcp/rblsmtpd.html for more details of using rblsmtpd
[ -e ${QMAIL_CONTROLDIR}/conf-rblsmtpd ] && RBL_SERVERS=$(egrep -v '^(#| *$)' ${QMAIL_CONTROLDIR}/conf-rblsmtpd)
[ -n "$RBL_SERVERS" ] && QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} rblsmtpd $RBL_SERVERS"

# 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_CHECKPASSWORD 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="/var/qmail/bin/checkpass"
#QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"
