Vpopmail daemon: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
# cd /var/qmail/supervise && qmailctl stop  
[[Vpopmail|Back]]
# install -d -m1751 vpopmaild && chmod 1700  vpopmaild && chown qmaill:qmail vpopmaild && install -d -m751 vpopmaild/log && chmod 0700  vpopmaild/log<br>
<pre>
# printf '%s\n' \
# cd /var/qmail/supervise && qmailctl stop  
'#!/bin/sh' \
# install -d -m1751 vpopmaild && chmod 1700  vpopmaild && chown qmaill:qmail vpopmaild && install -d -m751 vpopmaild/log && chmod 0700  vpopmaild/log
'QMAILDUID=`id -u vpopmail`' \
# printf '%s\n' \
'NOFILESGID=`id -g vpopmail`' \
'#!/bin/sh' \
'VPOPD=/home/vpopmail/bin/vpopmaild' \
'QMAILDUID=`id -u vpopmail`' \
\'' \
'NOFILESGID=`id -g vpopmail`' \
'exec 2>&1' 'exec /usr/bin/tcpserver -vRHD -u "$QMAILDUID" -g "$NOFILESGID" 127.0.0.1 89 $VPOPD' \
'VPOPD=/home/vpopmail/bin/vpopmaild' \
>./vpopmaild/run<br>
'' \
# printf '%s\n' \
'exec 2>&1' 'exec /usr/bin/tcpserver -vRHD -u "$QMAILDUID" -g "$NOFILESGID" 127.0.0.1 89 $VPOPD' \
'#!/bin/sh' \
>./vpopmaild/run
'LOGSIZE=`cat /var/qmail/control/logsize`' \
 
'LOGCOUNT=`cat /var/qmail/control/logcount`' \
# printf '%s\n' \
'exec /usr/bin/setuidgid qmaill \' \
'#!/bin/sh' \
'    /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT \' \
'LOGSIZE=`cat /var/qmail/control/logsize`' \
'    /var/log/qmail/vpopmaild 2>&1' \
'LOGCOUNT=`cat /var/qmail/control/logcount`' \
> ./vpopmaild/log/run<br>
'exec /usr/bin/setuidgid qmaill \' \
# chown -R qmaill:qmail vpopmaild && chmod 0751 ./vpopmaild/run && chmod 0751 ./vpopmaild/log/run
'    /usr/bin/multilog t s$LOGSIZE n$LOGCOUNT \' \
# qmailctl start && firewall-cmd --zone=public --add-port=89/tcp --permanent && firewall-cmd --reload
'    /var/log/qmail/vpopmaild 2>&1' \
# yum -y install telnet
> ./vpopmaild/log/run
# telnet 127.0.0.1 89
 
Trying 127.0.0.1...
# chown -R qmaill:qmail vpopmaild && chmod 0751 ./vpopmaild/run && chmod 0751 ./vpopmaild/log/run
Connected to 127.0.0.1.
# qmailctl start && firewall-cmd --zone=public --add-port=89/tcp --permanent && firewall-cmd --reload
Escape character is '^]'.
# yum -y install telnet
+OK
# telnet 127.0.0.1 89
quit
Trying 127.0.0.1...
+OK
Connected to 127.0.0.1.
Connection closed by foreign host.
Escape character is '^]'.
+OK
quit
+OK
Connection closed by foreign host.
</pre>

Latest revision as of 20:26, 18 October 2024

Back

# 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.