HowTo Setup Imap.

milan

Verified User
Joined
Dec 29, 2005
Messages
78
Hi I am looking for a how to about how to setup imap for an external client like thunderbird.

Could someone help me?
 
I did setup thunderbird:




















Then I found this howto:

http://www.directadmin.com/help/item.php?id=18

server01:/etc/init.d# /usr/sbin/imapd
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN] server01.xxxx.xx IMAP4rev1 2003.339 at Thu, 22 Feb 2007 13:54:46 +0100 (CET)

server01:/etc/init.d# ps -ax | grep inetd | grep -v grep
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
1911 ? Ss 0:00 /usr/sbin/inetd

further on i cant go because i use a debian box. And all the quides on the da site are for redhat/fedora/centos/freebsd
 
Last edited:
Warning; I've no direct debian/DA experience.

That said, check out man ps on your server; based on the referral page, it appears the version of ps you're running requires you eliminate the - character.

You can check to see if imapd is set up properly and running on your server by trying a squirrelmail connection; squirrelmail uses imap. If squirrelmail works, then the problem is in your firewall; make sure port 143 is open. If squirrelmail doesn't work you may have to reinstall the imap daemon.

Have you done a conversion to Dovecot? If so the imap daemon is part of Dovecot and will appear differently; in that case do:
Code:
$ ps waux | grep dovecot | grep -v grep
instead of the code in the DA howto.

Jeff
 
Thanks, it looks indeed that I cant connect via webmail either.
 
Debian edition!

1) Make sure /usr/sbin/imapd exists and is executeable. You should be able to run it and see:


Code:
[root@user sbin]# /usr/sbin/imapd
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN]
server.hostname.com IMAP4rev1 2003.339 at Thu, 13 May 2004 12:34:14 -0600 (MDT)


2) make sure xinetd is running:
Code:
[root@user sbin]# ps waux | grep dovecot | grep -v grep


On machines, you can install it with:
Code:
apt-get install dovecot

3) Make sure dovecot has the proper settings:
/etc/dovecot/imap (is this the correct one?)
Code:
# default: on
# description: imapd
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}

To test it out, run:
Code:
[root@user]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN]
localhost IMAP4rev1 2003.339 at Thu, 13 May 2004 12:39:55 -0600 (MDT)

4) You can also double check that the imapd binary is the one we included by running:
Code:
rm -f /usr/sbin/imapd
cd /usr/local/directadmin/scripts
./imapd.sh
 
but when I apt-get dovecot I got the next error:

Code:
server01:/# apt-get install dovecot
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  dovecot-common dovecot-imapd dovecot-pop3d libmysqlclient12 libpq3 mysql-common
Suggested packages:
  postgresql-doc postgresql-client
The following NEW packages will be installed:
  dovecot dovecot-common dovecot-imapd dovecot-pop3d libmysqlclient12 libpq3 mysql-common
0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
Need to get 1273kB of archives.
After unpacking 2736kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 ftp://ftp.nl.debian.org stable/main mysql-common 4.0.24-10sarge2 [34.6kB]
Get:2 ftp://ftp.nl.debian.org stable/main libmysqlclient12 4.0.24-10sarge2 [297kB]
Get:3 ftp://ftp.nl.debian.org stable/main libpq3 7.4.7-6sarge3 [128kB]
Err ftp://ftp.nl.debian.org stable/main libpq3 7.4.7-6sarge3
  Unable to fetch file, server said 'Failed to open file.  '
Get:4 ftp://ftp.nl.debian.org stable/main dovecot-common 0.99.14-1sarge0 [245kB]
Get:5 ftp://ftp.nl.debian.org stable/main dovecot-imapd 0.99.14-1sarge0 [293kB]
Get:6 ftp://ftp.nl.debian.org stable/main dovecot-pop3d 0.99.14-1sarge0 [268kB]
Get:7 ftp://ftp.nl.debian.org stable/main dovecot 0.99.14-1sarge0 [7516B]
Fetched 1145kB in 1s (1003kB/s)
Failed to fetch ftp://ftp.nl.debian.org/debian/pool/main/p/postgresql/libpq3_7.4.7-6sarge3_i386.deb  Unable to fetch file, server said 'Failed to open file.  '
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
server01:/# apt-get install dovecot
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  dovecot-common dovecot-imapd dovecot-pop3d libmysqlclient12 libpq3 mysql-common
Suggested packages:
  postgresql-doc postgresql-client
The following NEW packages will be installed:
  dovecot dovecot-common dovecot-imapd dovecot-pop3d libmysqlclient12 libpq3 mysql-common
0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
Need to get 128kB/1273kB of archives.
After unpacking 2736kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 ftp://ftp.nl.debian.org stable/main libpq3 7.4.7-6sarge3 [128kB]
Err ftp://ftp.nl.debian.org stable/main libpq3 7.4.7-6sarge3
  Unable to fetch file, server said 'Failed to open file.  '
Failed to fetch ftp://ftp.nl.debian.org/debian/pool/main/p/postgresql/libpq3_7.4.7-6sarge3_i386.deb  Unable to fetch file, server said 'Failed to open file.  '
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Then I did fix missing
Code:
server01:~# apt-get install dovecot --fix-missing
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  dovecot-common dovecot-imapd dovecot-pop3d libmysqlclient12 libpq3 mysql-common
Suggested packages:
  postgresql-doc postgresql-client
The following NEW packages will be installed:
  dovecot dovecot-common dovecot-imapd dovecot-pop3d libmysqlclient12 libpq3 mysql-common
0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
Need to get 128kB/1273kB of archives.
After unpacking 2736kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 ftp://ftp.nl.debian.org stable/main libpq3 7.4.7-6sarge3 [128kB]
Err ftp://ftp.nl.debian.org stable/main libpq3 7.4.7-6sarge3
  Unable to fetch file, server said 'Failed to open file.  '
Failed to fetch ftp://ftp.nl.debian.org/debian/pool/main/p/postgresql/libpq3_7.4.7-6sarge3_i386.deb  Unable to fetch file, server said 'Failed to open file.  '
Selecting previously deselected package mysql-common.
(Reading database ... 22780 files and directories currently installed.)
Unpacking mysql-common (from .../mysql-common_4.0.24-10sarge2_all.deb) ...
Selecting previously deselected package libmysqlclient12.
Unpacking libmysqlclient12 (from .../libmysqlclient12_4.0.24-10sarge2_i386.deb) ...
Setting up mysql-common (4.0.24-10sarge2) ...
Setting up libmysqlclient12 (4.0.24-10sarge2) ...
 
If found the dovecot how to on the da site via customapache. And removed dovecot via apt-get remove.

Then i did te install via the customapache way. Rebooted my server and but it locked down named so I logged in via the servers ip and checked services restarted named. And then i saw dovecot service was not up. Starting it using the buttom doesnt work reload and restart give me the same error.

dovecot Process is stopped Start Stop Restart Reload

server01:/# service dovecot restart
-bash: service: command not found
 
Last edited:
Back
Top