/var/qmail/rc:
#!/bin/sh
# Using splogger to send the log through
syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.
# Using qmail-local to deliver messages to ~/Mailbox by default.
exec env - PATH="/var/qmail/bin:$PATH"
\
qmail-start ./Maildir/ splogger qmail
qmail-start ./Maildir/ splogger qmail
/etc/rc.d/init.d/run_qmail
csh -cf /var/qmail/rc &
tcpserver -u 512 -g 511 -c 100 0 smtp /var/qmail/bin/qmail-smtpd &
tcpserver -c 100 0 pop-3 /var/qmail/bin/qmail-popup www3.imaginechina.com /var/qmail/bin/auth_pop /var/qmail/bin/qmail-pop3d Maildir
&
tcpserver -u 512 -g 511 -c 100 0 smtp /var/qmail/bin/qmail-smtpd &
tcpserver -c 100 0 pop-3 /var/qmail/bin/qmail-popup www3.imaginechina.com /var/qmail/bin/auth_pop /var/qmail/bin/qmail-pop3d Maildir
&
This is the /var/log/maillog says:
May 24 15:38:57 www qmail:
990689937.699571 alert: cannot start qmail-lspawn or it had an error! Check if
~control/ldapserver exists.
May 24 15:39:41 www qmail: 990689981.845511 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 24 15:40:03 www qmail: 990690003.008395 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 24 15:45:55 www qmail: 990690355.426249 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 24 16:10:54 www qmail: 990691854.819946 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 25 13:58:24 www qmail: 990770304.079339 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 24 15:39:41 www qmail: 990689981.845511 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 24 15:40:03 www qmail: 990690003.008395 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 24 15:45:55 www qmail: 990690355.426249 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 24 16:10:54 www qmail: 990691854.819946 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
May 25 13:58:24 www qmail: 990770304.079339 alert: cannot start qmail-lspawn or it had an error! Check if ~control/ldapserver exists.
Bellow is the POP-3 test:
[root@www openldap]# telnet localhost
110
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
User liuzhi
+OK
Password sjtu
-ERR authorization first
quit
+OK
Connection closed by foreign host.
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
User liuzhi
+OK
Password sjtu
-ERR authorization first
quit
+OK
Connection closed by foreign host.
On another machine:
[liuzhi@WebServ liuzhi]$ telnet
90.0.0.100 110
Trying 90.0.0.100...
Connected to 90.0.0.100.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user liuzhi
+OK
pass sjtu
-ERR temporary error
Connection closed by foreign host.
Trying 90.0.0.100...
Connected to 90.0.0.100.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user liuzhi
+OK
pass sjtu
-ERR temporary error
Connection closed by foreign host.
