Slow POP3 with Dovecot and/or Courier

Discussion in 'Server Operation' started by makedo, Sep 6, 2006.

  1. makedo

    makedo New Member

    Hi everyone,

    I've got a problem with POP3 access on my server. The access to the mails is rather slow. I am using Outlook XP on Windows for retrieving the mails, and it seems to "pause" slightly after each email. All emails are downloaded fine, and there are no timeouts, however it takes up a lot of time.

    I have tried both Dovecot and Courier on the server. This is an issue with TLS or without TLS. I am authenticating against plain UNIX users (basically changed nothing in the configuration scripts, except the TLS cert). This is on a relatively unchanged Suse 9.3 system.

    No error or warning messages in the log.

    I am really at a loss here - what could possibly cause this problem? The server should be a lot faster than this (3 GHz, plenty of RAM, fast Internet connection).

    My previous server was less capable and worked fine, also with Outlook, same setup (also with courier, but on Debian). I just can't seem to find the relevant difference...

    Any ideas? Thanks a lot!
  2. falko

    falko Super Moderator

    Sounds like a firewall problem. What's the output of
    iptables -L
    ? Might also be a problem with your desktop firewall, if you use one.
  3. makedo

    makedo New Member

    Thanks for your answer!

    iptables is set to accept anything:

    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    I also do not have a desktop firewall.

    I tried using Thunderbird for a change, with the same result. I have also verified that the CLIENT seems to pause after each email, i.e. before sending the next "RCPT x" command to the POP server. (some 0.3 seconds to 1 second delay).

    I still have NO idea what's causing this...
  4. falko

    falko Super Moderator

    Do you see any errors in your log files?
  5. makedo

    makedo New Member

    No related errors in any of the mail log files (in fact, no errors at all for pop3). /var/log/mail logs a typical session like this:

    Sep 7 11:20:20 servername pop3d: Connection, ip=[::ffff:xx.xx.xx.xx]
    Sep 7 11:20:20 servername pop3d: LOGIN, user=makedo, ip=[::ffff:xx.xx.xx.xx]
    Sep 7 11:20:24 servername pop3d: LOGOUT, user=makedo, ip=[::ffff:xx.xx.xx.xx], top=0, retr=10128, time=4

    Hm... any other ideas? :(
  6. falko

    falko Super Moderator

    Didn't you say you are using Courier? Your logs show another POP3 daemon. What's the output of
    netstat -tap
  7. makedo

    makedo New Member

    Netstat coming up...:

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:pop3                  *:*                     LISTEN      12369/couriertcpd
    The courier package is from Suse 9.3. Started with /etc/init.d/courier-pop3.
  8. falko

    falko Super Moderator

    Ok, it's Courier then.
    What's the output of
    ps aux
    ? What's the output of
    locate courier
  9. makedo

    makedo New Member

    ps aux:
    root     26128  0.0  0.0   1380   464 ?        S    Sep05   0:00 /usr/sbin/courierlogger -pid=/var/run/authdaemon.courier-imap/pid -start /usr/lib/courier-imap/authlib/authdaemond.plain
    root     26129  0.0  0.0   1728   508 ?        S    Sep05   0:00 /usr/lib/courier-imap/authlib/authdaemond.plain
    root     26130  0.0  0.0   1924   728 ?        S    Sep05   0:00 /usr/lib/courier-imap/authlib/authdaemond.plain
    root     26131  0.0  0.0   1924   728 ?        S    Sep05   0:00 /usr/lib/courier-imap/authlib/authdaemond.plain
    root     26141  0.0  0.0   1924   728 ?        S    Sep05   0:00 /usr/lib/courier-imap/authlib/authdaemond.plain
    root     26142  0.0  0.0   1924   728 ?        S    Sep05   0:00 /usr/lib/courier-imap/authlib/authdaemond.plain
    root     26177  0.0  0.0   1924   728 ?        S    Sep05   0:00 /usr/lib/courier-imap/authlib/authdaemond.plain
    root     23718  0.0  0.0   1480   520 ?        S    14:57   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=pop3d -maxprocs=40 -maxperip=4 -pid=/var/run/ -nodnslookup -noidentlookup 110 /usr/sbin/pop3login /usr/lib/courier-imap/authlib/authdaemon /usr/sbin/pop3d Maildir
    root     23720  0.0  0.0   1252   296 ?        S    14:57   0:00 /usr/sbin/courierlogger pop3d
    locate courier

  10. falko

    falko Super Moderator

    Did you check the settings in the configuration files in /etc/courier?

Share This Page