I have got qmail up and running on a standalone mailserver. Also courier-imap seems to 
be running:

31774 ?        S      0:00 /usr/lib/courier-imap/libexec/authlib/authdaemond.pla
31784 ?        S      0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=10
31787 ?        S      0:00 /usr/lib/courier-imap/libexec/courierlogger imapd

and as is sshd:

 3205 ?        S      0:00 /usr/sbin/sshd
 3404 ?        S      0:00 /usr/sbin/sshd
  585 ?        S      0:01 /usr/sbin/sshd
  671 ?        S      0:00 /usr/sbin/sshd
31657 ?        S      0:01 /usr/sbin/sshd

I am now trying to connect to the mailserver over SSL from the MUA (KMail) (running on 
a Suse 8.0 workstation). I have no problem logging into the mailserver via ssh, but I 
have not succeeded in getting the MUA to connect and fetch new mail from the Maildir. 

I presume that "mkimapdcert" should be run as root? I ran it as root and checked that 
the file imapd.pem resides in /usr/lib/courier-imap/share. I also tried to copy 
imapd.pem to /var/qmail/control/servercert.pem, but it didn't seem to change anything.

/usr/lib/courier-imap/etc/imapd-ssl is as follows:

SSLPORT=993
SSLADDRESS=0
SSLPIDFILE=/var/run/imapd-ssl.pid
IMAPSSLDSTART=YES
IMAPDSTARTTLS=NO
IMAPD_TLS_REQUIRED=0
COURIERTLS=${bindir}/couriertls
TLS_PROTOCOL=SSL3
TLS_STARTTLS_PROTOCOL=TLS1
TLS_CERTFILE=/usr/lib/courier-imap/share/imapd.pem
TLS_VERIFYPEER=NONE
TLS_CACHEFILE=/usr/lib/courier-imap/var/couriersslcache
TLS_CACHESIZE=524288

The MUA does prompt for a password when it starts; but that probably doesn't mean 
much, as KMail might just sit on the password until the connection has been 
authenticated? 

I have opened the firewall for ports 143, 443 and 993 and the log confirms that the 
firewall lets through the incoming connections. It appears therefore that the problem 
is related to SSL authorisation. 

When I try to fetch mail the MUA (KMail) reports that it cannot connect to the host. 

I noticed a few occasions of the following message in /var/log/maillog: 
date & time mailserver imapd /usr/lib/courier-imap/libexec/authlib/authpam: No such 
file or directory
However, I am not able to provoke it again.

KMail has a filed entitled: "Prefix to folders", which I have left it empty. I presume 
that courier-imap is able to find Maildir in ~?

Any suggestion are welcome.
Thanks in advance.

Reply via email to