# Configuration file for ofmipd
# $Id: conf-ofmipd,v 1.5 2005/02/18 17:31:45 glen Exp $

# if You've setup stunnel (/etc/ofmipd/stunnel.conf) change this to yes
STUNNEL=no

# memory size 30MB and filesize 10MB
SOFTLIMIT_OPTS="-m 30000000 -f 20000000"

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

# Host and port to listen on
if [ "$STUNNEL" = yes ]; then
	TCPSERVER_PORT=465
else
	# You should use different port than qmail-smtpd (25)
	TCPSERVER_PORT=26

	# or You could bind to different IP than qmail-smtpd
	#TCPSERVER_HOST=192.168.2.2
fi


# directory to log to
LOG_DEST=/var/log/${SERVICE}d

# tcpserver maximum concurrency, defaults to 40 in tcpserver
#MAXCONN=10

# do the address rewriting. see ofmipname(8) for more information
CDB=/etc/ofmipd/ofmipname.cdb

# This next block is for SMTP-AUTH
# This provides the LOGIN and PLAIN types
# NOTE: as of now (2005-02-18) ofmipd smtp auth and cdb file can't be used together, so CDB must be cleared up.
# uncomment the next five lines to enable SMTP-AUTH
#OFMIPD_SMTP_AUTHHOST=$(<${QMAIL_CONTROLDIR}/me)
#[ -z "${OFMIPD_SMTP_POST}" ] && OFMIPD_SMTP_POST=/bin/true
#OFMIPD_SMTP_CHECKPASSWORD="/usr/sbin/checkpassword-pam -e -s ${SERVICE}d"
#OFMIPD_SMTP_POST="${OFMIPD_SMTP_AUTHHOST} ${OFMIPD_SMTP_CHECKPASSWORD} ${OFMIPD_SMTP_POST}"
#CDB=""
