ispCP - Board - Support
[HowTo] Replace courier with dovecot - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HowTo] Replace courier with dovecot (/thread-1421.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: [HowTo] Replace courier with dovecot - rbtux - 10-01-2007 04:00 AM

thx @ joximu ;-)


please test also the avelsieve howto... this should work now too


RE: [HowTo] Replace courier with dovecot - BeNe - 10-01-2007 04:34 PM

I started to test it on my new Server.
But i have a Permission Error:
Code:
Oct  1 06:23:03 vs24 dovecot: chdir(/var/mail/virtual/my-domain.tld/bene) failed with uid 1001: Permission denied
Oct  1 06:23:04 vs24 dovecot: child 3909 (imap) returned error 89
Oct  1 06:23:57 vs24 dovecot: chdir(/var/mail/virtual/my-domain.tld/test) failed with uid 1001: Permission denied
Oct  1 06:23:57 vs24 dovecot: child 5413 (imap) returned error 89
Oct  1 06:24:00 vs24 dovecot: chdir(/var/mail/virtual/my-domain.tld/test) failed with uid 1001: Permission denied
Oct  1 06:24:00 vs24 dovecot: child 5431 (imap) returned error 89

I created the Mailboxes AFTER the install, so this could not be a migration Error.

Here the two users:
Code:
drwxr-xr-x 9 vmail mail 4096 Sep 30 13:38 bene
drwxr-xr-x 5 vmail mail 4096 Oct  1 06:23 test

Greez BeNe


RE: [HowTo] Replace courier with dovecot - rbtux - 10-01-2007 04:36 PM

what is the id of the vmail user and the gid of the mail group?


RE: [HowTo] Replace courier with dovecot - rbtux - 10-01-2007 04:47 PM

i can't reproduce the error now... i haven't access to a installed ispcp server before evening...

But I think your vmail user has an id different than 1001...

If thats true you have to change the uid part in the files /etc/dovecot/dovecot-sql-{subdomain,domain}.conf


RE: [HowTo] Replace courier with dovecot - BeNe - 10-01-2007 05:26 PM

You are right. The UID in the passwd is wrong:
Code:
vmail:x:65002:8:vmail-user:/home/vmail:/bin/false
Because i created a user on my system before and his uid was 65001.

I changed the vmail user back to 1001 like this:
Code:
vmail:x:1001:8:vmail-user:/home/vmail:/bin/false
Here is the group entry:
Code:
mail:!:8:dovecot
dovecot:x:111:

But get the same Error. Rolleyes

Greez BeNe


RE: [HowTo] Replace courier with dovecot - rbtux - 10-01-2007 05:29 PM

BeNe Wrote:But get the same Error. Rolleyes

Greez BeNe

have you applied the new rights to the filesystem (filesystem stores uid not username!)

chown -R vmail:mail /var/mail/virtual


RE: [HowTo] Replace courier with dovecot - rbtux - 10-01-2007 05:30 PM

[quote=BeNe]
You are right. The UID in the passwd is wrong:
Code:
vmail:x:65002:8:vmail-user:/home/vmail:/bin/false
Because i created a user on my system before and his uid was 65001.
[/code]

you could alter the sql files to the uid 65002 when the directories have this permissions...


RE: [HowTo] Replace courier with dovecot - BeNe - 10-01-2007 05:55 PM

Ok, thanks! I have it Wink

Greez BeNe


RE: [HowTo] Replace courier with dovecot - rbtux - 10-01-2007 05:59 PM

updated howto


RE: [HowTo] Replace courier with dovecot - jmeyerdo - 10-24-2007 06:10 PM

Hello!

I found this howto yesterday and read the howto and the forum-thread in detail. Great concept!

If I understand the config-files correctly dovecot is using the mysql-records for emails directly?
But postfix is still using the alias-configurationfiles, isn't it?

I would like to see a full database-driven mailhandling in the future.
It should be no major problem to change the postfix-configuration to use mysql for mail-requests.

What is your opinion about that:
+ easier generation of postboxes/aliases
+ less errors (?)
+ ???
- postfix-mysql must be compiled on several distros
- ???

Kind regards,

Jens