Submission: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 17: Line 17:
     -u "\$QMAILDUID" -g "\$NOFILESGID" 0 587 \\
     -u "\$QMAILDUID" -g "\$NOFILESGID" 0 587 \\
     \$SMTPD \$VCHKPW /bin/true 2>&1
     \$SMTPD \$VCHKPW /bin/true 2>&1
  __EOF__
  __EOF__<br>
 
  # qmailctl start  
  # qmailctl start  
  # firewall-cmd --zone=public --add-port=587/tcp --permanent
  # firewall-cmd --zone=public --add-port=587/tcp --permanent
  # firewall-cmd --reload
  # firewall-cmd --reload

Latest revision as of 13:01, 19 October 2024

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