For the last three days I have posted several messages asking "How to start
pop3?". I have received numerous responses. From these responses, I conclude
that many people have faced the same problem and each individual has come up
with one solution or another. I also has found a solution although I still
have a problem or two.

Several people who responded had asked many different questions, therefore,
I am making this write in detail so anyone who wants to help will have their
initial questions answered (I hope).


First, some of you who may be reading this message for the first time, I
will explain the problem:

GENERAL DESCRIPTION
====================

My test bed consists of two servers (ns1.mydomain.com & ns2.mydomain.com). I
am using ns1.mydomain.com server for DNS inquiries only. On both server, in
addition to RH 6.2 LINUX, I have installed the following software:

        ns1.mydomain.com
        ------------------------------
        1.  djbdns-1.05
        2.  daemontools-0.70
        3.  RH Patches (of course)
        

        ns2.mydomain.com
        ------------------------------
        1.  djbdns-1.05
        2.  daemontools-0.70
        3.  RH Patches (of course)
        4.  Apache _1.3.12, mySQL-3.22.32, PHP-4.0.2, openssl-0.9.5a,
mod_ssl-2.6.6
                 I followed installation outline in
http://www.devshed.com/server_side/PHP/SoothinglySeamless/page1.html to
install these packages
        5.  checkpassword-0.90
        6.  ucspi-tcp-0.88
        7.  qmail-1.03 (dns error manually updated in dns.c file)
            I followed installation instruction as outlined in "qmail-HOWTO"
http://www.flunder.net/qmail/qmail-howto.html
        

PROBLEM
=========

My initial problems were concerning adding pop3 script. I wanted to:

        1.  use SVSCAN to monitor (start) pop3 script from "/service"
directory (I understand it's DJB's favorite)

SOLUTION
=========

I duplicated the procedure of setting up "qmail-smtpd" as noted in
"qmail-HOWTO" and did the following:

        1.  Created a directory "/var/qmail/supervise/qmail-pop3"
        2.  Added a "run" file with the following script in it:

                #!/bin/sh
                exec /usr/local/bin/tcpserver -v -R 0 pop3
/var/qmail/bin/qmail-popup mail.mydomain.com \
                /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1 

        3.  Added a log folder "/var/qmail/supervise/qmail-pop3/log"
        4.  Added a "run" file with the following script in it:

                #!/bin/sh
                exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog
t /var/log/qmail/qmail-pop3

        4.  Added the directories to "/service" as follows (same as
suggested in qmail-HOWTO):

                ln -s /var/qmail/supervise/* /service/

SVSCAN starts everything fine....

NEW PROBLEM
=============

Please help me resolving the following new problems I have encountered:

A.  Log message displayed on screen...
----------------------------------------------------------

        Now when I reboot the system, just when the "login" is displayed,
the following message is displayed on the screen:

                        tcpserver: status: 0/40

        Why is this message is being displayed in the screen and not being
logged (see item B below also)?
        This message is being generated from
"/var/qmail/supervise/qmail-pop3/run" script. TRUST ME!

B. pop3 log folder has problem!!
--------------------------------------------------------

        When I look into the logs for qmqil-pop3
"/var/qmail/supervise/qmail-pop3/log", I see three files in it:

                (1) current  (2) lock  (3) state

        CLUE: /qmail-pop3/current    is EMPTY.     When this file is empty
and it can't be opened with a single click that that may be the answer!!!!
Please verify.

        Log folder for qmail-send & qmail-smtpd also have the same named
three files. However when I try to open "current" log file for qmail-pop3,
it does not open with a single click. I can open it using a text editor.
There is nothing in this "current" log file. THIS MIGHT EXPLAIN DISPLAY
PROBLEM AS I MENTIONED IN "A" ABOVE. I can open "current" log file for both
qmail-send & qmail-smtpd with a single click. They contain some log info.


        Log folder for all three were created the same way as follows ( and
as outlined in qmail-HOWTO):

                        # mkdir  /var/log/qmail
                        # mkdir  /var/log/qmail/qmail-send
                        # mkdir  /var/log/qmail/qmail-smtpd
                        # mkdir  /var/log/qmail/qmail-pop3
        
                        chown  qmaill  /var/log/qmail
                        chown  qmaill  /var/log/qmail/*

        When I check folders/log files, they all have the same ownership &
access permissions as follows:

                Folders:
                        /var/log/qmail/qmail-send
                        /var/log/qmail/qmail-smtpd
                        /var/log/qmail/qmail-pop3

                Owner: qmaill   Group: root     Access:  755

                Log File:
                        /var/log/qmail/qmail-send/current
                        /var/log/qmail/qmail-smtpd/current
                        /var/log/qmail/qmail-pop3/current

                Owner: qmaill   Group: nofiles  Access:  644

        Can some one explain why I can't open "current" log file for
qmail-pop3 when I can open the same for qmail-send & qmail-smtpd.

B. User/PW Invalid!!
--------------------------------------------------------

When Try to setup a connection to retrieve mail, I get an error saying that
"the connection is refused because user or password are invalid". 

I can verify:
                (a) user name and password are correct ( I can log into the
LINUX system with same UID/PW)
                (b) qmail "add user" command (below) is executed properly:

                        cat /etc/passwd | /var/qmail/bin/qmail-pw2u >
/var/qmail/users/assign
                        /var/qmail/bin/qmail-newu
                (c) user Maildir is setup properly ($home/user/Maildir) - I
can send mail to user and veryfy that is sitting in its Maildir
                (d) I am connecting to the right server
                (e) pop-3 is commented out in "/etc/inetd.conf"

So why I still continue to get error message that User or password is
invalid when I try to connect to receive mail??? Log files does not show
anything unless I am looking into wrong log files??

----------------------------------------------------------------------------
--------------------------------
Sorry for such a detailed explanation. I hope some of you, specially the
author of "qmail-HOWTO" can address these problems.


Kirti









Kirti 

Reply via email to