Vpopmail daemon: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
(Created page with " # cd /var/qmail/supervise && qmailctl stop # install -d -m1751 vpopmaild && chmod 1700 vpopmaild && chown qmaill:qmail vpopmaild && install -d -m751 vpopmaild/log && chmod 0700 vpopmaild/log # printf '%s\n' \ '#!/bin/sh' \ 'QMAILDUID=`id -u vpopmail`' \ 'NOFILESGID=`id -g vpopmail`' \ 'VPOPD=/home/vpopmail/bin/vpopmaild' \ '' \ 'exec 2>&1' 'exec /usr/bin/tcpserver -vRHD -u "$QMAILDUID" -g "$NOFILESGID" 127.0.0.1 89 $VPOPD' \ >./vpopmaild/run # printf '%s\...")
 
No edit summary
Line 1: Line 1:
  # cd /var/qmail/supervise && qmailctl stop  
  # cd /var/qmail/supervise && qmailctl stop  
  # install -d -m1751 vpopmaild && chmod 1700  vpopmaild && chown qmaill:qmail vpopmaild && install -d -m751 vpopmaild/log && chmod 0700  vpopmaild/log
  # install -d -m1751 vpopmaild && chmod 1700  vpopmaild && chown qmaill:qmail vpopmaild && install -d -m751 vpopmaild/log && chmod 0700  vpopmaild/log<br>
 
  # printf '%s\n' \
  # printf '%s\n' \
  '#!/bin/sh' \
  '#!/bin/sh' \
Line 9: Line 8:
  '' \
  '' \
  'exec 2>&1' 'exec /usr/bin/tcpserver -vRHD -u "$QMAILDUID" -g "$NOFILESGID" 127.0.0.1 89 $VPOPD' \
  'exec 2>&1' 'exec /usr/bin/tcpserver -vRHD -u "$QMAILDUID" -g "$NOFILESGID" 127.0.0.1 89 $VPOPD' \
  >./vpopmaild/run
  >./vpopmaild/run<br>
 
  # printf '%s\n' \
  # printf '%s\n' \
  '#!/bin/sh' \
  '#!/bin/sh' \
Line 18: Line 16:
  '    /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT \' \
  '    /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT \' \
  '    /var/log/qmail/vpopmaild 2>&1' \
  '    /var/log/qmail/vpopmaild 2>&1' \
  > ./vpopmaild/log/run
  > ./vpopmaild/log/run<br>
 
  # chown -R qmaill:qmail vpopmaild && chmod 0751 ./vpopmaild/run && chmod 0751 ./vpopmaild/log/run
  # chown -R qmaill:qmail vpopmaild && chmod 0751 ./vpopmaild/run && chmod 0751 ./vpopmaild/log/run
  # qmailctl start && firewall-cmd --zone=public --add-port=89/tcp --permanent && firewall-cmd --reload
  # qmailctl start && firewall-cmd --zone=public --add-port=89/tcp --permanent && firewall-cmd --reload
  # yum -y install telnet
  # yum -y install telnet
  # telnet 127.0.0.1 89
  # telnet 127.0.0.1 89

Revision as of 18:11, 26 March 2024

# cd /var/qmail/supervise && qmailctl stop 
# install -d -m1751 vpopmaild && chmod 1700  vpopmaild && chown qmaill:qmail vpopmaild && install -d -m751 vpopmaild/log && chmod 0700  vpopmaild/log
# printf '%s\n' \ '#!/bin/sh' \ 'QMAILDUID=`id -u vpopmail`' \ 'NOFILESGID=`id -g vpopmail`' \ 'VPOPD=/home/vpopmail/bin/vpopmaild' \ \ 'exec 2>&1' 'exec /usr/bin/tcpserver -vRHD -u "$QMAILDUID" -g "$NOFILESGID" 127.0.0.1 89 $VPOPD' \ >./vpopmaild/run
# printf '%s\n' \ '#!/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/vpopmaild 2>&1' \ > ./vpopmaild/log/run
# chown -R qmaill:qmail vpopmaild && chmod 0751 ./vpopmaild/run && chmod 0751 ./vpopmaild/log/run # qmailctl start && firewall-cmd --zone=public --add-port=89/tcp --permanent && firewall-cmd --reload # yum -y install telnet # telnet 127.0.0.1 89 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. +OK quit +OK Connection closed by foreign host.