SMTPS: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
(Created page with "Back = SMTPS = # qmailctl stop # cd /var/qmail/supervise # cp -Rp submission smtps<br> # 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"<br> export SMTPS="1" export FORCETLS="0" export SMTPAUTH="!+cra...")
 
No edit summary
 
Line 1: Line 1:
[[Configuration#SMTPS|Back]]
[[Configuration#SMTPS|Back]]<br>
= SMTPS =
 
  # qmailctl stop
  # qmailctl stop
  # cd /var/qmail/supervise
  # cd /var/qmail/supervise

Latest revision as of 11:57, 19 October 2024

Back

# 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