Results 1 to 3 of 3

Thread: Dovecot ok for port 110, but not for SSL

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    Sweden
    Beans
    Hidden!
    Distro
    Ubuntu

    Dovecot ok for port 110, but not for SSL

    Hello,
    I just installed Dovecot. It works for plaintext autorization, port 110. It has connected with Telnet, Thunderbird and an on-line pop3 client.
    Telnet:
    Code:
    +OK Dovecot ready.
    user nnnnn
    -ERR Unknown command.
    user nnnnn
    +OK
    pass xxxxxxxxxx
    +OK Logged in.
    stat
    +OK 1 1553
    retr 1
    +OK 1553 octets
    Return-path: <sssssss@hotmail.com>
    Envelope-to: nnnnnn@mydomain.com
    Delivery-date: Tue, 06 Nov 2012 12:02:28 +0100
    Received: from bay0-xcvxcv-xvxcv.bay333.hotmail.com ([123.123.123.123])
            by deb7.pc with esmtp (Exim 4.80)
    But when I try ssl (port 995) with an on-line pop3 client, it will not work:
    /var/log/mail.log
    Code:
    Nov  7 02:46:55 deb7 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=12.12.12.7, lip=123.123.123.123, TLS: Disconnected, session=<Iza75N3NlABBNykH>
    Nov  7 02:46:56 deb7 dovecot: pop3-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=12.12.12.7, lip=123.123.123.123, TLS: Disconnected, session=<nWTF5N3NlQBBNykH>
    root@deb7:~#
    Code:
    root@deb7:~# doveconf -n
    # 2.1.7: /etc/dovecot/dovecot.conf
    # OS: Linux 3.2.0-3-686-pae i686
    disable_plaintext_auth = no
    mail_gid = mail
    mail_location = mbox:~/mail:INBOX=/var/mail/%u
    namespace inbox {
      inbox = yes
      location =
      prefix =
    }
    passdb {
      args = username_format=%u /etc/dovecot/users
      driver = passwd-file
    }
    plugin {
      sieve = ~/.dovecot.sieve
      sieve_dir = ~/sieve
    }
    protocols = " imap pop3"
    ssl_cert = </etc/ssl/certs/dovecot.pem
    ssl_key = </etc/ssl/private/dovecot.pem
    userdb {
      args = username_format=%u /etc/dovecot/users
      driver = passwd-file
    }
    root@deb7:~#
    I know very little about mail and ssl. I have assumed that ssl will be set up "automatically" when Dovecot is installed. But maybe I have missed something here. Please give me pointers.
    The following two files contain ssl keys:
    Code:
    ssl_cert = </etc/ssl/certs/dovecot.pem
    ssl_key = </etc/ssl/private/dovecot.pem
    Thanks.
    Last edited by yc2; November 7th, 2012 at 04:50 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Sweden
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Dovecot ok for port 110, but not for SSL

    I have discussed this with different people and got advice.
    The problem seems to be that my ssl-certificate is not signed by an official part, some websites therefore refuse connecting to it over ssl. This thread is solved.

  3. #3
    Join Date
    Dec 2010
    Location
    Chicago
    Beans
    4
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Dovecot ok for port 110, but not for SSL

    Just to clarify, you can make your local computer trust the self-signed cert so that you can use it with Thunderbird or other email clients. Make sure 100% for your OS that you're trusting the cert.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •