Find the answer to your Linux question:
Results 1 to 7 of 7
I've set Dovecot to run with Postfix. When i did not use SSL both POP3 and IMAP wore running fine. Then i used SSL with a self-certified certificate. Now POP3 ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3

    Dovecot - POP3 works fine but IMAP just wont :(

    I've set Dovecot to run with Postfix. When i did not use SSL both POP3 and IMAP wore running fine. Then i used SSL with a self-certified certificate. Now POP3 and POP3S work fine but both IMAP and IMAPS just sit there and time timeout. I have manually tried logging in to IMAP via telnet and the server just sits there regardless if it type in correct commands or gibberish. Obviously i havent manually tried to test IMAPS but i assume its acting the same as IMAP.

    I've been poking this for several days now and go nowhere. Any help would be brilliant

    My dovecot configuration file is: (I condensed it using "dovecot -n")

    # 1.0.7: /etc/dovecot.conf
    listen: *
    ssl_cert_file: /etc/ssl/server.crt
    ssl_key_file: /etc/ssl/server.key
    login_dir: /var/run/dovecot/login
    login_executable(default): /usr/libexec/dovecot/imap-login
    login_executable(imap): /usr/libexec/dovecot/imap-login
    login_executable(pop3): /usr/libexec/dovecot/pop3-login
    login_processes_count: 2
    login_max_processes_count: 2
    mail_location: maildir:/var/mail/vhosts/%d/%n/
    mail_executable(default): /usr/libexec/dovecot/imap
    mail_executable(imap): /usr/libexec/dovecot/imap
    mail_executable(pop3): /usr/libexec/dovecot/pop3
    mail_plugin_dir(default): /usr/lib64/dovecot/imap
    mail_plugin_dir(imap): /usr/lib64/dovecot/imap
    mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
    auth default:
    mechanisms: plain login
    user: postfix
    passdb:
    driver: passwd-file
    args: /etc/dovecot/passwd
    userdb:
    driver: static
    args: uid=5000 gid=5000 home=/var/vmail/%d/%u
    socket:
    type: listen
    client:
    path: /var/spool/postfix/private/auth
    mode: 432
    user: postfix
    group: postfix

  2. #2
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Hi there,

    Do you have a line in the configuration file like the following? There isn't any indication that imaps is turned on:

    Code:
    protocols = imap pop3 imaps pop3s
    Also, I assume your firewall is allowing the appropriate ports through?

  3. #3
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3
    Yes it is enabled. And the firewall is not blocking it. The tcp connection is being established but it just sits there.

  4. #4
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Ok, what about tcp_wrappers? Check your hosts.allow & hosts.deny files in /etc

  5. #5
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Also, anything in /var/log/messages?

  6. #6
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3
    Ok so hosts.allow and host.deny only contain some default comment.
    But /var/log/mailbox contains


    Apr 26 13:01:55 server dovecot: imap-login: Login: user=<kieran@epicpineapple.co.uk>, method=PLAIN, rip=178.106.154.158, lip=94.76.237.41, TLS
    Apr 26 13:01:57 server dovecot: imap-login: Disconnected: Shutting down: rip=178.106.154.158, lip=94.76.237.41, TLS
    Apr 26 13:01:57 server dovecot: IMAP(kieran@epicpineapple.co.uk): Connection closed
    Apr 26 13:01:59 server dovecot: imap-login: Login: user=<kieran@epicpineapple.co.uk>, method=PLAIN, rip=178.106.154.158, lip=94.76.237.41, TLS
    Apr 26 13:02:01 server dovecot: imap-login: Disconnected: Shutting down: rip=178.106.154.158, lip=94.76.237.41, TLS
    Apr 26 13:02:04 server dovecot: imap-login: Disconnected: Shutting down: rip=178.106.154.158, lip=94.76.237.41, TLS handshake
    Apr 26 13:02:35 server last message repeated 4 times


    only many many more times


    I put the full log here, i know i should do that but this server is for learning only

    epicpineapple.co.uk/maillog

    Also thankyou for the help im getting

  7. #7
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Sounds like you are not handshaking properly.. is the client you are using configured to use TLS as per the logs? There should be an option in whatever mail client you are using for you IMAP account.

Posting Permissions

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