Courier Imap is not working

Discussion in 'General' started by HellMind, Apr 10, 2012.

  1. HellMind

    HellMind New Member

    [Solved] Courier Imap is not working

    I was running ispconfig 3 last version on lenny

    Then I upgraded to squeeze, but in there I lost connection and the dist-upgrade command didnt end well.
    So I had to do a masive apt-get install of everything missing.

    Now everything works, but I got disconected from imap.
    It can send emails fine.
    And I see that incoming mails are stored too!

    How can I check whats wrong with courier-imap ?

    I dont see any errors on the logs.

    The configs seems untouched

    Code:
    Apr  9 20:00:01 tiamat postfix/sendmail[772]: fatal: could not find any active network interfaces
    Apr  9 20:00:01 tiamat postfix/sendmail[776]: fatal: could not find any active network interfaces
    Apr  9 20:00:01 tiamat postfix/sendmail[782]: fatal: could not find any active network interfaces
    Apr  9 20:03:01 tiamat postfix/sendmail[836]: fatal: could not find any active network interfaces
    Apr  9 20:03:01 tiamat postfix/sendmail[839]: fatal: could not find any active network interfaces
    Apr  9 20:06:01 tiamat postfix/sendmail[906]: fatal: could not find any active network interfaces
    Apr  9 20:06:01 tiamat postfix/sendmail[908]: fatal: could not find any active network interfaces
    Apr  9 20:30:20 tiamat postfix/trivial-rewrite[710]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:30:22 tiamat postfix/trivial-rewrite[713]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:31:21 tiamat postfix/trivial-rewrite[859]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:32:22 tiamat postfix/trivial-rewrite[891]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:32:24 tiamat postfix/trivial-rewrite[892]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:32:26 tiamat postfix/trivial-rewrite[893]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:32:28 tiamat postfix/trivial-rewrite[895]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:32:30 tiamat postfix/trivial-rewrite[896]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:33:31 tiamat postfix/trivial-rewrite[997]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:33:33 tiamat postfix/trivial-rewrite[1115]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:34:34 tiamat postfix/trivial-rewrite[3061]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:35:36 tiamat postfix/trivial-rewrite[3462]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:36:37 tiamat postfix/trivial-rewrite[3804]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:37:38 tiamat postfix/trivial-rewrite[3818]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:38:39 tiamat postfix/trivial-rewrite[4154]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:39:40 tiamat postfix/trivial-rewrite[4184]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:02 tiamat postfix/smtp[4426]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:02 tiamat postfix/smtp[4431]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:02 tiamat postfix/smtp[4436]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:02 tiamat postfix/smtp[4439]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:02 tiamat postfix/smtp[4441]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:02 tiamat postfix/smtp[4442]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:02 tiamat postfix/smtp[4444]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:03 tiamat postfix/smtp[4446]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:03 tiamat postfix/error[4463]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:03 tiamat postfix/smtp[4452]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:03 tiamat postfix/error[4445]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:03 tiamat postfix/error[4453]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:03 tiamat postfix/error[4461]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:03 tiamat postfix/error[4443]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:04 tiamat postfix/qmgr[706]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:07 tiamat postfix/smtp[4429]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:07 tiamat postfix/smtp[4433]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:07 tiamat postfix/smtp[4434]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 20:41:16 tiamat postfix/smtp[4449]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem
    Apr  9 21:10:46 tiamat imapd: authdaemon: s_connect() failed: Connection refused
    Apr  9 21:10:46 tiamat imapd: [Hint: perhaps authdaemond is not running?]
    Apr  9 21:10:46 tiamat imapd: authentication error: Connection refused
    Apr  9 21:10:46 tiamat imapd: authdaemon: s_connect() failed: Connection refused
    Apr  9 21:10:46 tiamat imapd: [Hint: perhaps authdaemond is not running?]
    Apr  9 21:10:46 tiamat imapd: authentication error: Connection refused
    Apr  9 21:10:46 tiamat imapd: authdaemon: s_connect() failed: Connection refused
    Apr  9 21:10:46 tiamat imapd: [Hint: perhaps authdaemond is not running?]
    Apr  9 21:10:46 tiamat imapd: authentication error: Connection refused
    Apr  9 21:10:46 tiamat imapd: authdaemon: s_connect() failed: Connection refused
    Apr  9 21:10:46 tiamat imapd: [Hint: perhaps authdaemond is not running?]
    Apr  9 21:10:46 tiamat imapd: authentication error: Connection refused
    Apr  9 21:10:46 tiamat imapd: authdaemon: s_connect() failed: Connection refused
    Apr  9 21:10:46 tiamat imapd: [Hint: perhaps authdaemond is not running?]
    Apr  9 21:10:46 tiamat imapd: authentication error: Connection refused
    Apr  9 21:10:46 tiamat imapd: authdaemon: s_connect() failed: Connection refused
    Apr  9 21:10:46 tiamat imapd: [Hint: perhaps authdaemond is not running?]
    Apr  9 21:10:46 tiamat imapd: authentication error: Connection refused
    
    That is my mail.err, but that last error I cannot reproduce, I ve restarted courier-imap and it doesnt say nothing at all in there.


    Code:
    Apr  9 23:40:17 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:18 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:18 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:18 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:18 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:18 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:19 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:19 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:19 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:19 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:19 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:20 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:20 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:20 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:20 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr  9 23:40:20 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    
    More log that doesnt say anything at all

    I dont see any error debuging the auth daemon
    Code:
    Apr 10 04:48:35 tiamat imapd: Connection, ip=[::ffff:200.114.210.215]
    Apr 10 04:48:35 tiamat authdaemond: received auth request, service=imap, authtype=login
    Apr 10 04:48:35 tiamat authdaemond: authmysql: trying this module
    Apr 10 04:48:35 tiamat authdaemond: SQL query: SELECT login, password, "", uid, gid, homedir, maildir, quota, "", concat('disableimap=',disableimap,',disablepop3=',disablepop3)
     FROM mail_user WHERE login = 'info@theserver.com'
    Apr 10 04:48:35 tiamat authdaemond: password matches successfully
    Apr 10 04:48:35 tiamat authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/vmail, address=info@theserver.com, fullname=<null>, maildir=/
    var/vmail/theserver.com/info, quota=0, options=disableimap=,disablepop3=
    Apr 10 04:48:35 tiamat authdaemond: authmysql: clearpasswd=<null>, passwd=$1$hoRHXuRA$Z4pWn1ZLLRFhWHZkE6T01
    Apr 10 04:48:35 tiamat authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/vmail, address=info@theserver.com, fullname=<null>, maild
    ir=/var/vmail/theserver.com/info, quota=0, options=disableimap=,disablepop3=
    Apr 10 04:48:35 tiamat authdaemond: Authenticated: clearpasswd=aRWKG246PEZ, passwd=$1$hoRHXRA$Z4pWn91ZLLRFhWHZkE6T01
    
    
    It seems I got disconnected when Im asking for the folders

    --
    Fixed

    "options=disableimap=,disablepop3="
    Dont know why very old emails account got corrupted, it should say N or Y

    I fixed it reseting those values in the panel.
     
    Last edited: Apr 10, 2012
  2. chaloum

    chaloum New Member

    I've got the same issue (IMAP and POP) and so far havent been able to get it resolved
     
  3. falko

    falko Super Moderator

    Any errors in your mail log?

    What's the output of
    Code:
    netstat -tap
    ?
     
  4. chaloum

    chaloum New Member

  5. falko

    falko Super Moderator

    netstat output looks ok. Are there any errors in your mail log?
     
  6. chaloum

    chaloum New Member

    using tail -f /var/log/maillog

    It looks ok

    Apr 12 08:48:22 server1 postfix/anvil[17217]: statistics: max connection rate 1/60s for (smtp:xxx.xxx.xxx.xxx) at Apr 12 08:45:02
    Apr 12 08:48:22 server1 postfix/anvil[17217]: statistics: max connection count 1 for (smtp:xxx.xxx.xxx.xxx) at Apr 12 08:45:02
    Apr 12 08:48:22 server1 postfix/anvil[17217]: statistics: max cache size 1 at Apr 12 08:45:02
    Apr 12 08:50:02 server1 postfix/smtpd[17347]: connect from someaddress.com[xxx.xxx.xxx.xxx]
    Apr 12 08:50:02 server1 postfix/smtpd[17347]: lost connection after CONNECT from someaddress.com[124.188.240.27]
    Apr 12 08:50:02 server1 postfix/smtpd[17347]: disconnect from someaddress.com[xxx.xxx.xxx.xxx]
    Apr 12 08:53:22 server1 postfix/anvil[17367]: statistics: max connection rate 1/60s for (smtp:xxx.xxx.xxx.xxx) at Apr 12 08:50:02
    Apr 12 08:53:22 server1 postfix/anvil[17367]: statistics: max connection count 1 for (smtp:xxx.xxx.xxx.xxx) at Apr 12 08:50:02
    Apr 12 08:53:22 server1 postfix/anvil[17367]: statistics: max cache size 1 at Apr 12 08:50:02
    Apr 12 08:53:29 server1 clamd[1835]: SelfCheck: Database status OK.
    Apr 12 08:55:02 server1 postfix/smtpd[17500]: connect from someaddress.com[xxx.xxx.xxx.xxx]
    Apr 12 08:55:02 server1 postfix/smtpd[17500]: lost connection after CONNECT from someaddress.com[xxx.xxx.xxx.xxx]
    Apr 12 08:55:02 server1 postfix/smtpd[17500]: disconnect from someaddress.com[xxx.xxx.xxx.xxx]
    Apr 12 08:58:22 server1 postfix/anvil[17520]: statistics: max connection rate 1/60s for (smtp:xxx.xxx.xxx.xxx) at Apr 12 08:55:02
    Apr 12 08:58:22 server1 postfix/anvil[17520]: statistics: max connection count 1 for (smtp:xxx.xxx.xxx.xxx) at Apr 12 08:55:02
    Apr 12 08:58:22 server1 postfix/anvil[17520]: statistics: max cache size 1 at Apr 12 08:55:02
     

Share This Page