Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
imapd via STARTLS not working after upgrade{SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
octavsly
n00b
n00b


Joined: 22 Aug 2007
Posts: 22
Location: Eindhoven, HTC

PostPosted: Sun Jul 06, 2014 10:28 am    Post subject: imapd via STARTLS not working after upgrade{SOLVED] Reply with quote

Posted so other can find the solution easier.

After updating the net-mail/courier-imap to 4.15-r1, I could not retrieve the e-mails via STARTTLS anymore.
Strangely enough it still worked via SSL/TLS (port 993).

Tried debugging via http://www.courier-mta.org/authlib/README.authdebug.html but STARTTLS was not there.

Then found in the /var/log/messages the following error:
Code:
imapd-ssl: couriertls: /usr/share/dhparams.pem: error:02001002:system library:fopen:No such file or directory


http://www.courier-mta.org/imap/INSTALL.html shows:
Quote:
Upgrading from Courier-IMAP 4.14, and earlier

Version 4.15 removes the TLS_DHCERTFILE parameter from imap, and pop3d configuration files. DH parameters, and DH parameters only, get read from the new TLS_DHPARAMS file (and the other functionaly of TLS_DHCERTFILE, for DSA certificates, is merged into TLS_CERTFILE). The default startup script in the package is updated to run the new mkdhparams script, that creates a new TLS_DHPARAMS file.


In gentoo /etc/*/impad-ssl file, parameter TLS_DHPARAMS was set to /usr/share/dhparams.pem and the file was not existent.

Two solutions:
1. Disable th aparameter in the impad-ssl file:
Code:
#TLS_DHPARAMS=/usr/share/dhparams.pem


OR
2. Run, as the manual says, mkdhparams which will create that file
Back to top
View user's profile Send private message
cilly
n00b
n00b


Joined: 27 Jun 2006
Posts: 2

PostPosted: Mon Jul 21, 2014 5:12 pm    Post subject: Re: imapd via STARTLS not working after upgrade{SOLVED] Reply with quote

Thank you!!!!!!

:lol:
Back to top
View user's profile Send private message
Floppe
n00b
n00b


Joined: 27 Feb 2003
Posts: 48
Location: Finland

PostPosted: Wed Jul 23, 2014 10:01 am    Post subject: Reply with quote

Many thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum