pop3d-ssl: Unexpected SSL connection shutdown

Discussion in 'Server Operation' started by Hans, Jun 19, 2007.

  1. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

    Due the update from Sarge to Etch, Postfix has been updated to version 2.3.8.

    Since then (sometimes) an error occurs within my /var/log/mail.log which says:

    pop3d-ssl: Unexpected SSL connection shutdown

    I am not sure why this happens.
    When i do a netstat -tap, i can see the line:
    tcp6 0 0 *: pop3s *:* LISTEN 2004/couriertcpd

    Can anyone put me on the right track to solve this problem?

    Thanks in advance!
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    I'm not sure what's causing this, but I don't think it has anything to do with Postfix. This seems to be Courier-related.
     
  3. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You could replace Courier with Dovecot (both use Maildir, so there should be no problem):

    Code:
    apt-get install Package dovecot-pop3d Package dovecot-imapd
     
  5. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

    Falko,

    I will give it a try.
    Thank you for your reply.
     
  6. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

    Replace Courier by Dovecot | another question to be sure

    Falko,

    I just want to be sure before i do a test with Dovecot so here are 2 other questions:

    1) Before i install imap/pop3 server Dovecot with:

    apt-get install dovecot-pop3d dovecot-imapd

    do i have to remove Courier first with:

    apt-get --purge remove courier-authdaemon courier-base courier-imap courier-imap-ssl courier-pop courier-pop-ssl courier-ssl gamin libgamin0 libglib2.0-0

    ?

    2) Is Dovecot compatible with ISPConfig? I mean within your Perfect howto for Debian Etch, you mention how to setup Courier not Dovecot.
     
    Last edited: Jun 22, 2007
  7. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    No, that should be done by apt automatically because courier and dovecot are conflicting packages (i.e., they both do the same).

    Yes. In the Fedora Perfect Setups I use Dovecot because there's no Courier package, so that should work for Debian as well.
     
  8. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

    Problem with pop after replacing Courier with Dovecot

    Falko,

    In the mean time i've installed Dovecot on my test-server with: apt-get install dovecot-pop3d dovecot-imapd
    The Courier has been removed as well, indeed, so that's ok! :)

    There is only one problem:
    Within ISPConfig the pop3-server seems to be down :(

    So, i did an netstat -tap | grep pop and i discovered that pop was not available indeed.
    What can be wrong?
     
  9. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Can you check dovecot.conf (I think it's /etc/dovecot.conf) if it's configured to run on the right ports? Maybe there's also a /etc/default/dovecot file that needs to be configured.
     
  10. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

    Falko, i did not notice that.
    It's the first time i start to use Dovecot instead of Courier.
    (I'am used to Courier and it starts automaticly).

    I start with the configuration of Dovecot now.
    Thanks.
     
  11. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Does it work now?
     
  12. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

    Falko,

    First, will setup Dovecot on a test-server. After that i make the decision to make the switch to Dovecot or not. I did not have the time yet to finish it.
    Probably it is a simple job, but ia want to read some documentation first. ;)
     
  13. marulu

    marulu New Member

    Hi Hans,

    I know this is an old thread, but I was having the same problem as you and although Squirrel mail was working when I tried to download the emails using Outlook Express my mail.log was showing :
    pop3d-ssl: Unexpected SSL connection shutdown.

    So I used the advice Falko gave you and installed Dovecot.
    Squirrelmail is not working now.
    ERROR: Connection dropped by IMAP server.

    Next I uncommented in /etc/dovecot/dovecot.conf:
    listen = *
    and added :
    mail_location = /home/%u/Maildir

    Then mande the foll. changes:
    # It's possible to export the authentication interface to other programs:

    socket listen {

    #master {

    # Master socket provides access to userdb information. It's typically

    # used to give Dovecot's local delivery agent access to userdb so it

    # can find mailbox locations.

    #path = /var/run/dovecot/auth-master

    #mode = 0600

    # Default user/group is the one who started dovecot-auth (root)

    #user =

    #group =

    #}

    client {

    # The client socket is generally safe to export to everyone. Typical

    use

    # is to export it to your SMTP server so it can do SMTP AUTH lookups

    # using it.

    #path = /var/run/dovecot/auth-client

    path = /var/spool/postfix/private/auth-client

    mode = 0660

    user = postfix

    group = postfix

    }

    }

    After that, I restarted dovecot.

    Now Squirrel mail gives me:
    Unknown user or password incorrect.

    I thought you might be able to help me as you had the same problem to start with.

    Thanks in advance,

    Marulu.
     
  14. Hans

    Hans Moderator Moderator HowtoForge Supporter ISPConfig Developer

    I did install Dovecot for i while, but later i used Courier again, because it did not solve the problem.
    Now i do not have the problem anymore. I thought it had something to do with an older version of RoundCube webmail, but i'm not sure.
    I don't use Squirrelmail, so i can't say anything about that.

    Hope you'll find a solution soon.
     
  15. marulu

    marulu New Member

    Cannot download emails using Outlook Express

    Hi Hans,

    Many thanks for your reply.
    Even before I received it, I removed dovecot and re-installed courier. And squirrel Mail started working promptly. Actually the tutorial I used showed Squirrel mail working as part of it. But I would like the clients to use Outlook Express or Outlook.

    I just got it working... I tried using the whole username@domain.com in OE instead of just username!!

    Thanks anyway!

    Marulu.
     

Share This Page