Error connecting to imap server localhost

When i am opening webmail, i am getting this error message "error connecting to imap server localhost. 111 connection refused"



When you log on to the server with SSH and execute the following command, you should get a result like so:

netstat -tulpn | grep :143
tcp        0      0   *               LISTEN      1201/dovecot
tcp6       0      0 :::143                  :::*                    LISTEN      1201/dovecot

If you get nothing, try service dovecot start. Does that work?