Submission

From QmailToaster
Revision as of 12:00, 19 October 2024 by Ebroch (talk | contribs)
Jump to navigation Jump to search

Back

# qmailctl stop
# cd /var/qmail/supervise
# cat > submission/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 FORCETLS="1" export SMTPAUTH="!"
exec /usr/bin/softlimit -m 128000000 \\ /usr/bin/tcpserver -v -R -H -l \$HOSTNAME -x \$TCP_CDB -c "\$MAXSMTPD" \\ -u "\$QMAILDUID" -g "\$NOFILESGID" 0 587 \\ \$SMTPD \$VCHKPW /bin/true 2>&1 __EOF__
# qmailctl start 
# firewall-cmd --zone=public --add-port=587/tcp --permanent
# firewall-cmd --reload