Hello All/David -

You were right. The tcpserver process was already running in the background.
So I commented all the start up scripts for the pop, imap & smtp from the
inetd.conf file.
Now the qmail server is able to authenticate email account names using
vpopmail's MySQL database for incoming mails using POP services in Netscape
as well as KDE Mail Client.

I am also able to send mails. But the following problems still persists:

1. Mail client softwares are able to authenticate user accounts for incoming
mails, but mails are not being downloaded to the INBOX. When I logged in for
the first time to
check incoming mails, a table named - "lastauth" got created in the vpopmail
database with the last login details.

2. I am able to send mails, but the mails are no where to be found. They are
not going to the -
/home/vpopmail/domains/email_domain.com/username/Maildir/new/ folder.

3. If I use IMAP protocol to receive mails, the mail client is unable to
authenticate using vpopmail's MySQL database. Netscape displays error:
"Login failed". But the same
works for POP3 protocol.

4. I hope I can use IMAP protocol to receive mails using vpopmail services?

5. Another thing that I noticed is that if I start qmail-pop3d using the
command "qmailctl start", I am unable to receive or send mails. KDE mail
Client displays the error following:
-----------------------------------------
Pop Mail Network Error
Account: email_domain
In OPEN:
Timed out while waiting for server
-----------------------------------------

6. Are there any other softwares available for running IMAP services on
qmail, which creates virtual email usernames instead of system users for
each and every email user and which would be easily configurable,
comparatively. Please advice.

But the same works if I start qmail-pop3d using the run script as ./run
start. I am really perplexed as to what's going on inside.

I have installed the following programs for the mail server on a Red Hat
Linux 6.2 box:

1. qmail 1.03
2. ucspi-tcp-0.88
3. daemontools-0.70
4. checkpassword-0.90
5. imap_4.5_maildirpatched-1.00 by David
6. vpopmail-4.9.10
6. MySQL 3.23.40

Also pls note that I have disabled "sendmail" program.

----------------------------------- qmail-smtpd run
script -------------------------------
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 2000000 \


/usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
        -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd
2>&1
----------------------------------------------------------------------------
--------------------

--------------------- qmail-pop3d run
script ------------------------------------------------
#!/bin/sh
export

PATH="/sbin:/usr/sbin:/bin:/usr/bin:/var/qmail/bin"
/etc/rc.d/init.d/functions
[ -f /var/qmail/bin/qmail-start ] || exit 0
case "$1" in
start)
echo -n "Starting

qmail..."
echo
/bin/csh -cf '/var/qmail/rc &'
/usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup
email_domain.com /home/vpopmail/bin/vchkpw

/var/qmail/bin/qmail-pop3d Maildir 2>&1
/usr/local/bin/tcpserver -v -R -H -l 0 0 143
/usr/local/src/imap/imap-4.5_maildirpatched-1.00/imapd/imapd

email_domain.com /home/vpopmail/bin/vchkpw -u 89 -g 89
/usr/local/src/imap/imap-4.5_maildirpatched-1.00/imapd/imapd imapd Maildir
2>&2
#/usr/local/bin/tcpserver -c 200 -p -x /etc/tcp.smtp 0 25
/var/qmail/bin/qmail-smtpd &
;;
stop)
echo -n "Stopping qmail..."
echo
killall qmail-send
killall

tcpserver
;;
restart)
$0 stop
$0 start
;;
*)
echo -n "Usage: $0 {start|stop|restart}"
echo
exit 1
esac
exit 0
----------------------------------------------------------------------------
-------------

--------------- qmail-send run
script ------------------------------------------------
#!/bin/sh
exec

/var/qmail/rc
----------------------------------------------------------------------------

---------------
nted.conf  -----------------------------------------------------------------
-----------------------------
#pop   stream  tcp     nowait  root
/usr/local/src/imap/imap-4.5_maildirpatched-1.00/ipopd/ipop2d ipop2d
#pop3   stream  tcp     nowait  root
/usr/local/src/imap/imap-4.5_maildirpatched-1.00/ipopd/ipop3d ipop3d
#imap    stream  tcp     nowait  root
/usr/local/src/imap/imap-4.5_maildirpatched-1.00/imapd/imapd imapd
----------------------------------------------------------------------------
------------------------------------------------

-----------------------------
etc/services  ------------------------------------
smtp  25/tcp  mail
# Pop & Imap Services
pop  109/tcp
pop3

110/tcp
imap  143/tcp
----------------------------------------------------------------------------
------

Any clue/suggestions/help is welcome and most needed.

Thanks to one and all.

Kind regards.

KK
[EMAIL PROTECTED]

----- Original Message -----
From: David Gartner <[EMAIL PROTECTED]>
To: KK <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 7:24 PM
Subject: Re: RES: RES: Telnet fail!


> KK,
>
> This means that port 110 or port 25 are already open.  You may be running
110
> or 25 through inet.  In this case, edit /etc/inetd.conf and comment out
the
> lines with pop-3 and smtp, then restart inetd.  Not running inetd?  Maybe
you
> have a tcpserver already running.  Try killing all tcpserver processes.
You
> can see what ports are open using this command:
>
> for tcp ports: netstat -tla
> for udp ports: netstat -ula
> for both: netstat -utla
>
> Hope this helps!
>
> David Gartner
>
> KK wrote:
>
> > Hello Daniel -
> >
> > I am facing the same pbl as described below and I followed the same
steps as
> > instructed by u, making changes where ever required (pls see the code
> > below). But when try to execute the script as "./run start" from the
command
> > prompt, it gives me the following output:
> >
> > Starting qmail...
> > [1] 20142
> > tcpserver: fatal: unable to bind: address already used
> >
> > Any clues, what could have gone wrong. Thanks.
> >
> > Kind regards.
> >
> > KK
> > [EMAIL PROTECTED]


Reply via email to