Back
SMTPS
# qmailctl stop
# cd /var/qmail/supervise
# cp -Rp submission smtps
# cat > smtps/run << __EOF__
#!/bin/sh
QMAILDUID=\`id -u vpopmail\`
NOFILESGID=\`id -g vpopmail\`
MAXSMTPD=\`cat /var/qmail/control/concurrencyincoming\`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=\`hostname\`
VCHKPW="/home/vpopmail/bin/vchkpw"
export SMTPS="1"
export FORCETLS="0"
export SMTPAUTH="!+cram"
exec /usr/bin/softlimit -m 128000000 \\
/usr/bin/tcpserver -v -R -H -l \$HOSTNAME -x \$TCP_CDB -c "\$MAXSMTPD" \\
-u "\$QMAILDUID" -g "\$NOFILESGID" 0 465 \\
\$SMTPD \$VCHKPW /bin/true 2>&1
__EOF__
# cat > smtps/log/run << __EOF__
#!/bin/sh
LOGSIZE=\`cat /var/qmail/control/logsize\`
LOGCOUNT=\`cat /var/qmail/control/logcount\`
exec /usr/bin/setuidgid qmaill /usr/bin/multilog \\
t s\$LOGSIZE n\$LOGCOUNT /var/log/qmail/smtps 2>&1
__EOF__
# qmailctl start
# firewall-cmd --zone=public --add-port=465/tcp --permanent
# firewall-cmd --reload