Post Reply  Post Thread 
Pages (7): « First < Previous 1 2 [3] 4 5 6 7 Next > Last »
[HowTo] Replace courier with dovecot
Author Message
rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
Post: #21
RE: [HowTo] Replace courier with dovecot

thx @ joximu ;-)


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


OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications
10-01-2007 04:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #22
RE: [HowTo] Replace courier with dovecot

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




:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--
10-01-2007 04:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
Post: #23
RE: [HowTo] Replace courier with dovecot

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


OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications

This post was last modified: 10-01-2007 04:43 PM by rbtux.

10-01-2007 04:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
Post: #24
RE: [HowTo] Replace courier with dovecot

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


OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications
10-01-2007 04:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #25
RE: [HowTo] Replace courier with dovecot

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




:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--
10-01-2007 05:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
Post: #26
RE: [HowTo] Replace courier with dovecot

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


OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications
10-01-2007 05:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
Post: #27
RE: [HowTo] Replace courier with dovecot

[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...


OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications
10-01-2007 05:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #28
RE: [HowTo] Replace courier with dovecot

Ok, thanks! I have it Wink

Greez BeNe




:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--
10-01-2007 05:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
Post: #29
RE: [HowTo] Replace courier with dovecot

updated howto


OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications
10-01-2007 05:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jmeyerdo
Junior Member
*


Posts: 135
Group: Registered
Joined: Oct 2007
Status: Offline
Reputation: 2
Post: #30
RE: [HowTo] Replace courier with dovecot

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

10-24-2007 06:10 PM
Find all posts by this user Quote this message in a reply
Pages (7): « First < Previous 1 2 [3] 4 5 6 7 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

| All rights reserved : isp-control.net |