# Configuration file for qmail-pop3d

# Stuff to run before tcpserver
#QMAIL_TCPSERVER_PRE=""
# Stuff to run before the authenticator
#QMAIL_POP3_PREAUTH=""
# Stuff to run after the user has authenticated successfully
#QMAIL_POP3_POSTAUTH=""

# this should contain the FQDN of your server
# by default it pulls the value from qmail
# which should be correct
QMAIL_POP3_POP3HOST="$(<${QMAIL_CONTROLDIR}/me)"

# If you want POP3 before SMTP, and you are using this POP3 daemon
# uncomment the next two lines
#QMAIL_TCPSERVER_PRE="${QMAIL_TCPSERVER_PRE} envdir /etc/relay-ctrl relay-ctrl-chdir"
#QMAIL_POP3_POSTAUTH="${QMAIL_POP3_POSTAUTH} /usr/bin/relay-ctrl-allow"

# This controls what password authentication tool POP3 uses
# It must support DJB's checkpassword interface (http://cr.yp.to/checkpwd.html)
QMAIL_POP3_CHECKPASSWORD="/usr/bin/checkpassword"
# cmd5checkpw only validates passwords from /etc/poppasswd
#QMAIL_POP3_CHECKPASSWORD="/usr/bin/cmd5checkpw"

# The name of the maildir in each user's directory.
# This should be the same thing that defaultdelivery points to
QMAIL_MAILDIR=".maildir"

# Needed for pop3s with sslserver
export CAFILE="/var/qmail/control/servercert.pem"
export CADIR="/usr/share/ca-certificates"
export CERTFILE="/var/qmail/control/servercert.pem"
export KEYFILE="/var/qmail/control/servercert.pem"
