A few days back I installed Courier-MTA and Courier-Imap from sources on
a current Debian GNU/Linux buster/sid server. While I was at it, I wrote
down all the steps I took:
https://blog.sulweb.org/2018/08/04/compiling-courier-mta-debian-sid/
SMTP-wise it's working. However most Imap clients fail to download the
messages. Thunderbird, Claws-Mail and Geary all fail. Thunderbird stops
at "checking mail server capabilities".
Claws does not show any error, but it does not download messages either.
When trying to subscribe to imap folders, Claws reports in the terminal:
IMAP error on liszt.virtualbit.it: stream error
IMAP connection broken
Can't start STARTTLS session
This online imap server check tool manages to download them instead:
https://pingability.com/mailtest.jsp
and I don't know what kind of magic makes it work.
Server side, I get the following error when starting the Imap daemon:
# /opt/courier/courier/sbin/imapd start
chown: invalid user: ‘@authmailuser@’
chgrp: invalid group: ‘@authmailgroup@’
However the daemon does start and I can see it with ps. Looking for
those strings in my installation folder, I find
# sed "33q;d" /opt/courier/courier/share/imapd
chown @authmailuser@ "$TLS_CACHEFILE"
# sed "34q;d" /opt/courier/courier/share/imapd
chgrp @authmailgroup@ "$TLS_CACHEFILE"
However, since Claws complains about STARTTLS and STARTTLS is negotiated
before sending user credentials, I assume the first problem to solve is
STARTTLS. I've googled and found a thread pointing at dhparams.pem
problems: then I noticed my server lacks a dhparams.pem file and I tried
to create it, but:
# mkdhparams
/opt/courier/courier/sbin/mkdhparams: line 65: /usr/local/bin/certtool:
No such file or directory
and, in fact:
# which certtool
/usr/bin/certtool
but the /usr/local/bin path is hardcoded at line 65 of the mkdhparams
script:
# sed "65q;d" /opt/courier/courier/sbin/mkdhparams
/usr/local/bin/certtool --generate-dh-params --sec-param $BITS
>$TLS_DHPARAMS.tmp
And there I stopped, because I suspect that editing the script code is
not the correct solution, but I don't know what I should do to make it work.
Any clues?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap