Q & A: webmail / mail problem, imap dropped connection

Guest: http://panel.xxxxx.co.cc/webmail/src/login.php
user name sales@xxxxx.co.cc pass: xxxx
when trying to log in i get that error

me: 1min
i will check
Sent at 12:23 AM on Saturday

Guest: k thnxs
Sent at 12:25 AM on Saturday

me: what is your ip ?
cannot reach that url here.
i will try ip

Guest: 88.xxx

me: i cannot reach your ip too
is it open outside ?

Guest: yep
i'm logged in via ssh and web

me: sory, your ip is not reachable from here.
i cannot check
write here the error

Guest: i did.
ERROR: Connection dropped by IMAP server.
thats the error when i try logging in
Sent at 12:31 AM on Saturday

me: you have something wrong in your server.
now,
in your server console,
try
tail -f /var/log/syslog
then, re-try login
what you see in log ?
Sent at 12:33 AM on Saturday

Guest:
tail -f/var/log/syslog
Jan 8 23:17:19 Server1 imapd: chdir xxxxx.co.cc/sales/: No such file or directory
Jan 8 23:17:19 Server1 imapd: sales@xxxxx.co.cc: No such file or direct

me: ok.
now, do this:
go to ehcp gui,
delete that email,
then, re-add it
keep console open
then retry login

Guest: doing it now
Sent at 12:38 AM on Saturday

Guest: Jan 8 23:38:43 Server1 postfix/sendmail[23567]: fatal: open /etc/postfix/main.cf: No such file or directory
Jan 8 23:39:01 Server1 CRON[23570]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Jan 8 23:39:43 Server1 imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 8 23:39:43 Server1 imapd: chdir xxxxx.co.cc/sales/: No such file or directory
Jan 8 23:39:43 Server1 imapd: sales@xxxxx.co.cc: No such file or directory
Sent at 12:40 AM on Saturday

me: may I login to your server ?
you have something more
which are in trouble
maybe, you may need to reinstall all
Sent at 12:42 AM on Saturday

Guest: ssh to xxx user: root pass: xxxx
Sent at 12:44 AM on Saturday

me: 2min
Sent at 12:46 AM on Saturday

Guest: k
Sent at 12:47 AM on Saturday

me: your postfix install has errors
what did you do to main.cf file of postfix ?

Guest: i never.. this server is a clean install and I ran the install for ehcp

me: ok.
1min
Sent at 12:50 AM on Saturday

Guest: k
Sent at 12:51 AM on Saturday

me: now
go to ehcp gui
options->fix mail configuration

Guest: Success sending info to daemon (fix mail configuration)
Sent at 12:53 AM on Saturday

Guest: just deleted the email account and re-added it.
Jan 8 23:53:34 Server1 postfix[24257]: fatal: /etc/mailname: cannot open file: No such file or directory
Jan 8 23:54:22 Server1 postfix/sendmail[24463]: fatal: /etc/mailname: cannot open file: No such file or directory

me: 2min

Guest: k
Sent at 12:57 AM on Saturday

Guest: sorry to be a pain
Sent at 1:02 AM on Saturday

Guest: i'll be right back .. gotta pop to the shop .. be back in 5 - 10 mins .. sorry

me: re-try login to webmail
now, it should be fixed
What I did: your /etc/postfix/main.cf was empty, i put a valid generic main.cf, then use ehcp->options->fix mail config, to make it suitable for your server.
then,
put something in /etc/mailname
then restart postfix.

Guest: working .. thank you very much

me: your postfix was broken somehow.. i fixed that

Guest: thank you very much for all your help

me: ok. have nice days with ehcp.
see you, bye

Forums: 

hi all
i have same problem in my web mail
"ERROR: Connection dropped by IMAP server.
"
i checked all the above recommendation , but it isnot works.
how can i solve it.
thanks inadvanced

  • apply debug procedures in http://ehcp.net/?q=node/771
  • reinstall postfix: aptitude install postfix
  • make sure /etc/postfix/main.cf is not empty. if it is empty, fill it with an example one,
  • Try ehcp->options->fix mail config
  • Say me results in debug windows/consoles
  • thank you
    but i try your command and i installed ehcp again. and i have this error again "ERROR: Connection dropped by IMAP server.
    "

    may I connect to your server by ssh ? if yes, send login info to info@ehcp.net I will connect and check

    yes sure. i will send you user and password login.

    i tried to connect to your server by ssh, but, no luck.
    make sure your server is turned on, and your router redirect all necessary ports to your server. (http://www.ehcp.net/helper/yardim/cat.php?cid=6&qid=59)

    I will retry later.

    ohhhhhhh
    iam sorry.
    please try again.
    thanks.