1

Topic: dovecot/imap issue

Hey guys,

I'm nearly resigning here.
For the last few years I ran XMail on my debain server with XPai for account setup.
Now I decided to clean the server and go with a new Mail Service.
After installing iRedMail (with a few problems which could quite easily be solved) I ended up with a problem.
The Problem first seemed to be that dovecot was not running, so I started it manually.
That failed because it didn't know what to make of 'mail_uid' and 'mail_gid' and went down with a fatal error.
Which looked like this 'Error: Error in configuration [...]filedovecot.conf line 24: Unknown setting: mail_uid'
I also tried the settings which were used in older dovecot versions (global_user_gid etc.) which gave me the same error.
When commenting these lines out, dovecot starts normally, but a login (telnet: error, roundcube: timeout, squirrelmail: connection dropped by imap server) doesn't work.

I hope there's a solution.

Regards,
Nick

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: dovecot/imap issue

The problem is you didn't follow the installation guide STRICTLY.
Reference: http://www.iredmail.org/forum/topic700- … olved.html

3

Re: dovecot/imap issue

check it.
http://www.iredmail.org/forum/topic700- … olved.html

4

Re: dovecot/imap issue

hey,

you're right, but I still didn't find a way to get dovecot 1.1. It's either 1.0 on lenny stable, or 1.2 for sid unstable.
And if I try to use 1.2 I get the error for the setting 'umask'.
So, even if it might seem to be a dumb question: how/where the hell do I get dovecot 1.1?

5

Re: dovecot/imap issue

* Get necessary packages. It will create a local apt repository in current directory.

      # cd /path/to/iRedMail-x.y.z/pkgs/
      # bash get_all.sh

    * Make sure dovecot 1.1.x will be installed:

      # apt-get update
      # apt-cache policy dovecot-common dovecot-pop3d dovecot-imapd | grep 'Candidate'
        Candidate: 1:1.1.16-1~bpo50+1
        Candidate: 1:1.1.16-1~bpo50+1
        Candidate: 1:1.1.16-1~bpo50+1

    * Start iRedMail installer:

      # cd /path/to/iRedMail-x.y.z/
      # bash iRedMail.sh

6 (edited by daemon 2010-03-10 22:57:04)

Re: dovecot/imap issue

Of course I did all this, BUT when I check if Dovecot 1.1 is being installed, it tells me that 1.0 will be installed.
So I need a solution for that.
Looks like that:

#bash get_all.sh
...
# apt-get update
# apt-cache policy dovecot-common dovecot-pop3d dovecot-imapd | grep 'Candidate'
  Candidate: 1:1.0.15-2.3+lenny1
  Candidate: 1:1.0.15-2.3+lenny1
  Candidate: 1:1.0.15-2.3+lenny1

7

Re: dovecot/imap issue

PLEASE DO FOLLOW INSTALLATION GUIDE ***STRICTLY***.

8

Re: dovecot/imap issue

OKAY, my bad!!!

You were right, I missed the point where it said, that I had to download the package manually.
Since the get_all script seems to take care of that.

SORRY! Let's see if it works now.

Regards,
Nick

p.s.: I also hate it, if people don't really read manuals and I have to tell them the same thing a hundred times, but a 'you have to install it manually from iredmail' would have saved a lot of posts.

9

Re: dovecot/imap issue

Okay, working like a charme now, thanks!

Only a few things which might help people who are as stupid as I am:
* dovecot has to be downloaded manually
* python-jinja2 has to be downloaded manually or, in case of debian, installed from an unstable source
* postfix-policyd has to be installed manually via apt, since the automatic installation tries to connect to the database without a password

10

Re: dovecot/imap issue

Hey, @daemon.

I think installation tutorial is clear enough, the point was you didn't follow it.

daemon wrote:

Only a few things which might help people who are as stupid as I am:
* dovecot has to be downloaded manually

Dovecot can be downloaded and installed via apt-get after you updated /etc/apt/sources.list which mentioned in installation guide.

daemon wrote:

* python-jinja2 has to be downloaded manually or, in case of debian, installed from an unstable source

We use only -stable branch.

daemon wrote:

* postfix-policyd has to be installed manually via apt, since the automatic installation tries to connect to the database without a password

postfix-policyd is provided by official debian repositories.

11

Re: dovecot/imap issue

Hey Zhang,

ZhangHuangbin wrote:

Dovecot can be downloaded and installed via apt-get after you updated /etc/apt/sources.list which mentioned in installation guide.

As I said, on debian 5.0 lenny you can only get dovecot 1.0 via apt-get, which is not the right version.
To get 1.1 you have to download the .deb manually and use dpkg.

ZhangHuangbin wrote:

We use only -stable branch.

Actually its the same as above, if you download the .deb manually from iredmail.org it works fine, I only used the unstable workaround since you don't get it via apt-get in lenny.

ZhangHuangbin wrote:

postfix-policyd is provided by official debian repositories.

Maybe I wasn't really clear here.
If you just go through with the installation as stated in the manual, the routine will stop with an error, when trying to install postfix-policyd.
The Problem is not, that it won't be in the repository, BUT if it's trying to be installed in the routine it tries to connect to the mysql databes with 'Using Password: NO', which obviously can't work.
So, if you do a quick 'apt-get install postfix-policyd' it will ask you for the database password and you can start the routine anew.

12

Re: dovecot/imap issue

In installation tutorial:

Get necessary packages. It will create a local apt repository in current directory.
# cd /path/to/iRedMail-x.y.z/pkgs/
# bash get_all.sh

File 'get_all.sh' will add an apt repository in /etc/apt/sources.list, and then execute 'apt-get update'. So when we execute 'bash iRedMail.sh', apt-get will download and install dovecot correctly.

13

Re: dovecot/imap issue

Would be great if it does, but it didn't do it for me. And I installed it about 10 times off a fresh debian.
Thats what I was trying to tell you in post 6.
I'm giving you the whole bash here now:
sources.list:

deb http://http.us.debian.org/debian lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free

bash from where I fetched it on putty:

# bash get_all.sh
[...]
< INFO > Creating necessary directories ...
< INFO > Checking necessary command/package: which/debianutils ...
< INFO > Checking necessary command/package: wget/wget ...
< INFO > Checking necessary command/package: dpkg-scanpackages/dpkg-dev ...
< INFO > Installing package(s): dpkg-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  binutils build-essential cpp cpp-4.3 g++ g++-4.3 gcc gcc-4.3 libc6-dev
  libgmp3c2 libgomp1 libmpfr1ldbl libstdc++6-4.3-dev libtimedate-perl
  linux-libc-dev make patch perl perl-modules
Suggested packages:
  binutils-doc cpp-doc gcc-4.3-locales debian-keyring g++-multilib
  g++-4.3-multilib gcc-4.3-doc libstdc++6-4.3-dbg gcc-multilib manpages-dev
  autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.3-multilib
  libmudflap0-4.3-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg glibc-doc
  libstdc++6-4.3-doc make-doc diff-doc perl-doc libterm-readline-gnu-perl
  libterm-readline-perl-perl
The following NEW packages will be installed:
  binutils build-essential cpp cpp-4.3 dpkg-dev g++ g++-4.3 gcc gcc-4.3
  libc6-dev libgmp3c2 libgomp1 libmpfr1ldbl libstdc++6-4.3-dev
  libtimedate-perl linux-libc-dev make patch perl perl-modules
0 upgraded, 20 newly installed, 0 to remove and 1 not upgraded.
Need to get 27.1MB of archives.
After this operation, 89.2MB of additional disk space will be used.
Get:1 http://security.debian.org lenny/updates/main linux-libc-dev 2.6.26-21lenny3 [751kB]
Get:2 http://security.debian.org lenny/updates/main libc6-dev 2.7-18lenny2 [3388kB]
Get:3 http://http.us.debian.org lenny/main patch 2.5.9-5 [97.5kB]
Get:4 http://security.debian.org lenny/updates/main dpkg-dev 1.14.29 [771kB]
Get:5 http://http.us.debian.org lenny/main perl-modules 5.10.0-19lenny2 [3198kB]
Get:6 http://http.us.debian.org lenny/main perl 5.10.0-19lenny2 [4549kB]
Get:7 http://http.us.debian.org lenny/main binutils 2.18.1~cvs20080103-7 [2686kB]
Get:8 http://http.us.debian.org lenny/main libgmp3c2 2:4.2.2+dfsg-3 [231kB]
Get:9 http://http.us.debian.org lenny/main libmpfr1ldbl 2.3.1.dfsg.1-2 [339kB]
Get:10 http://http.us.debian.org lenny/main cpp-4.3 4.3.2-1.1 [3087kB]
Get:11 http://http.us.debian.org lenny/main cpp 4:4.3.2-2 [13.9kB]
Get:12 http://http.us.debian.org lenny/main libgomp1 4.3.2-1.1 [13.2kB]
Get:13 http://http.us.debian.org lenny/main gcc-4.3 4.3.2-1.1 [2747kB]
Get:14 http://http.us.debian.org lenny/main gcc 4:4.3.2-2 [5008B]
Get:15 http://http.us.debian.org lenny/main libstdc++6-4.3-dev 4.3.2-1.1 [1389kB]
Get:16 http://http.us.debian.org lenny/main g++-4.3 4.3.2-1.1 [3414kB]
Get:17 http://http.us.debian.org lenny/main g++ 4:4.3.2-2 [1368B]
Get:18 http://http.us.debian.org lenny/main make 3.81-5 [382kB]
Get:19 http://http.us.debian.org lenny/main libtimedate-perl 1.1600-9 [32.9kB]
Get:20 http://http.us.debian.org lenny/main build-essential 11.4 [7118B]
Fetched 27.1MB in 25s (1052kB/s)
Selecting previously deselected package patch.
(Reading database ... 8768 files and directories currently installed.)
Unpacking patch (from .../patch_2.5.9-5_i386.deb) ...
Selecting previously deselected package perl-modules.
Unpacking perl-modules (from .../perl-modules_5.10.0-19lenny2_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.10.0-19lenny2_i386.deb) ...
Selecting previously deselected package binutils.
Unpacking binutils (from .../binutils_2.18.1~cvs20080103-7_i386.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.26-21lenny3_i386.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.7-18lenny2_i386.deb) ...
Selecting previously deselected package libgmp3c2.
Unpacking libgmp3c2 (from .../libgmp3c2_2%3a4.2.2+dfsg-3_i386.deb) ...
Selecting previously deselected package libmpfr1ldbl.
Unpacking libmpfr1ldbl (from .../libmpfr1ldbl_2.3.1.dfsg.1-2_i386.deb) ...
Selecting previously deselected package cpp-4.3.
Unpacking cpp-4.3 (from .../cpp-4.3_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.3.2-2_i386.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package gcc-4.3.
Unpacking gcc-4.3 (from .../gcc-4.3_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.3.2-2_i386.deb) ...
Selecting previously deselected package libstdc++6-4.3-dev.
Unpacking libstdc++6-4.3-dev (from .../libstdc++6-4.3-dev_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package g++-4.3.
Unpacking g++-4.3 (from .../g++-4.3_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.3.2-2_i386.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.81-5_i386.deb) ...
Selecting previously deselected package libtimedate-perl.
Unpacking libtimedate-perl (from .../libtimedate-perl_1.1600-9_all.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.14.29_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.4_i386.deb) ...
Processing triggers for man-db ...
Setting up patch (2.5.9-5) ...
Setting up binutils (2.18.1~cvs20080103-7) ...
Setting up linux-libc-dev (2.6.26-21lenny3) ...
Setting up libc6-dev (2.7-18lenny2) ...
Setting up libgmp3c2 (2:4.2.2+dfsg-3) ...
Setting up libmpfr1ldbl (2.3.1.dfsg.1-2) ...
Setting up cpp-4.3 (4.3.2-1.1) ...
Setting up cpp (4:4.3.2-2) ...
Setting up libgomp1 (4.3.2-1.1) ...
Setting up gcc-4.3 (4.3.2-1.1) ...
Setting up gcc (4:4.3.2-2) ...
Setting up make (3.81-5) ...
Setting up perl-modules (5.10.0-19lenny2) ...
Setting up libstdc++6-4.3-dev (4.3.2-1.1) ...
Setting up perl (5.10.0-19lenny2) ...
Setting up g++-4.3 (4.3.2-1.1) ...
Setting up g++ (4:4.3.2-2) ...
Setting up libtimedate-perl (1.1600-9) ...
Setting up dpkg-dev (1.14.29) ...
Setting up build-essential (11.4) ...
< INFO > ==================== Fetching Binary Packages ====================
< INFO > * 1/9: http://www.iredmail.org/apt/debian/lenny/postfix-policyd_1.82-2_amd64.deb
< INFO > * 2/9: http://www.iredmail.org/apt/debian/lenny/libmail-dkim-perl_0.36-0.1~bpo50+1_all.deb
< INFO > * 3/9: http://www.iredmail.org/apt/debian/lenny/python-jinja2_2.2.1-1~bpo50+1_amd64.deb
< INFO > * 4/9: http://www.iredmail.org/apt/debian/lenny/python-netifaces_0.5-1_amd64.deb
< INFO > * 5/9: http://www.iredmail.org/apt/debian/lenny/python-webpy_0.32+dak1-1_all.deb
< INFO > * 6/9: http://www.iredmail.org/apt/debian/lenny/libapache2-mod-wsgi_2.5-1_amd64.deb
< INFO > * 7/9: http://www.iredmail.org/apt/debian/lenny/dovecot-common_1.1.16-1~bpo50+1_amd64.deb
< INFO > * 8/9: http://www.iredmail.org/apt/debian/lenny/dovecot-imapd_1.1.16-1~bpo50+1_amd64.deb
< INFO > * 9/9: http://www.iredmail.org/apt/debian/lenny/dovecot-pop3d_1.1.16-1~bpo50+1_amd64.deb
< INFO > Generating local apt repository ...    [ OK ]
< INFO > Append local repository to /etc/apt/sources.list ...   [ OK ]
Hit http://security.debian.org lenny/updates Release.gpg
Hit http://security.debian.org lenny/updates Release
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/contrib Packages
Hit http://http.us.debian.org lenny Release.gpg
Hit http://http.us.debian.org lenny Release
Ign http://http.us.debian.org lenny/main Packages/DiffIndex
Ign http://http.us.debian.org lenny/contrib Packages/DiffIndex
Ign http://http.us.debian.org lenny/non-free Packages/DiffIndex
Hit http://http.us.debian.org lenny/main Packages
Hit http://http.us.debian.org lenny/contrib Packages
Hit http://http.us.debian.org lenny/non-free Packages
W: Failed to fetch http://security.debian.org/dists/lenny/updates/Release  Unable to find expected entry  non-freedeb/binary-i386/Packages in Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been ignored, or old ones used instead.
< INFO > ==================== Fetching Source Tarballs ====================
< INFO > * 1/17: http://www.iredmail.org/apt/misc/postfixadmin-2.2.1.1.tar.gz
< INFO > * 2/17: http://www.iredmail.org/apt/misc/phpMyAdmin-2.11.9.5-all-languages.tar.bz2
< INFO > * 3/17: http://www.iredmail.org/apt/misc/roundcubemail-0.2.1.tar.gz
< INFO > * 4/17: http://www.iredmail.org/apt/misc/phpldapadmin-1.1.0.7.tar.gz
< INFO > * 5/17: http://www.iredmail.org/apt/misc/squirrelmail-1.4.19.tar.bz2
< INFO > * 6/17: http://www.iredmail.org/apt/misc/change_ldappass-2.2-1.4.0.tar.gz
< INFO > * 7/17: http://www.iredmail.org/apt/misc/change_sqlpass-3.3-1.2.tar.gz
< INFO > * 8/17: http://www.iredmail.org/apt/misc/compatibility-2.0.14-1.0.tar.gz
< INFO > * 9/17: http://www.iredmail.org/apt/misc/check_quota-2.2-1.4.0.tar.gz
< INFO > * 10/17: http://www.iredmail.org/apt/misc/select_language-1.1-1.4.0.tar.gz
< INFO > * 11/17: http://www.iredmail.org/apt/misc/autosubscribe-1.1-1.4.2.tar.gz
< INFO > * 12/17: http://www.iredmail.org/apt/misc/email_footer-0.5-1.4.2.tar.gz
< INFO > * 13/17: http://www.iredmail.org/apt/misc/login_auto-1.1-1.2.tar.gz
< INFO > * 14/17: http://www.iredmail.org/apt/misc/avelsieve-1.0.1.tar.gz
< INFO > * 15/17: http://www.iredmail.org/apt/misc/all_locales-1.4.13-20071220.tar.gz
< INFO > * 16/17: http://www.iredmail.org/apt/misc/add_address-1.0.1-1.4.0.tar.gz
< INFO > * 17/17: http://www.iredmail.org/apt/misc/iRedAdmin-0.1.1.tar.bz2
< INFO > Validate Packages via md5sum ...       [ OK ]
< INFO > Checking necessary command/package: dialog/dialog ...
< INFO > Installing package(s): dialog
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dialog
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 260kB of archives.
After this operation, 1380kB of additional disk space will be used.
Get:1 http://http.us.debian.org lenny/main dialog 1.1-20080316-1 [260kB]
Fetched 260kB in 1s (165kB/s)
Selecting previously deselected package dialog.
(Reading database ... 12329 files and directories currently installed.)
Unpacking dialog (from .../dialog_1.1-20080316-1_i386.deb) ...
Processing triggers for man-db ...
Setting up dialog (1.1-20080316-1) ...
< INFO > Checking necessary command/package: setfacl/acl ...
< INFO > Installing package(s): acl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  acl
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 56.9kB of archives.
After this operation, 176kB of additional disk space will be used.
Get:1 http://http.us.debian.org lenny/main acl 2.2.47-2 [56.9kB]
Fetched 56.9kB in 0s (59.3kB/s)
Selecting previously deselected package acl.
(Reading database ... 12462 files and directories currently installed.)
Unpacking acl (from .../archives/acl_2.2.47-2_i386.deb) ...
Processing triggers for man-db ...
Setting up acl (2.2.47-2) ...
********************************************************
* All tasks had been finished Successfully. Next step:
*
*   # cd ..
*   # bash iRedMail.sh
*
********************************************************

# apt-get update
Hit http://security.debian.org lenny/updates Release.gpg
Hit http://security.debian.org lenny/updates Release
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/contrib Packages/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/contrib Packages
Hit http://http.us.debian.org lenny Release.gpg
Hit http://http.us.debian.org lenny Release
Ign http://http.us.debian.org lenny/main Packages/DiffIndex
Ign http://http.us.debian.org lenny/contrib Packages/DiffIndex
Ign http://http.us.debian.org lenny/non-free Packages/DiffIndex
Hit http://http.us.debian.org lenny/main Packages
Hit http://http.us.debian.org lenny/contrib Packages
Hit http://http.us.debian.org lenny/non-free Packages
W: Failed to fetch http://security.debian.org/dists/lenny/updates/Release  Unable to find expected entry  non-freedeb/binary-i386/Packages in Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been ignored, or old ones used instead.

# apt-cache policy dovecot-common dovecot-pop3d dovecot-imapd | grep 'Candidate'
  Candidate: 1:1.0.15-2.3+lenny1
  Candidate: 1:1.0.15-2.3+lenny1
  Candidate: 1:1.0.15-2.3+lenny1

14

Re: dovecot/imap issue

After actually checking the output, I see the problem.
The script tries to use the amd64 versions, though it's a i386 system.