|
[HowTo] Replace courier with dovecot
|
| Author |
Message |
rbtux
Member
  
Posts: 1,200
Group: Registered
Joined: Feb 2007
Status:
Away
Reputation: 22
|
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 |
|
 |
BeNe
Moderator
    
Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 35
|
RE: [HowTo] Replace courier with dovecot
I started to test it on my new Server.
But i have a Permission Error:
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:
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 |
|
 |
rbtux
Member
  
Posts: 1,200
Group: Registered
Joined: Feb 2007
Status:
Away
Reputation: 22
|
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 |
|
 |
rbtux
Member
  
Posts: 1,200
Group: Registered
Joined: Feb 2007
Status:
Away
Reputation: 22
|
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 |
|
 |
BeNe
Moderator
    
Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 35
|
RE: [HowTo] Replace courier with dovecot
You are right. The UID in the passwd is wrong:
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:
vmail:x:1001:8:vmail-user:/home/vmail:/bin/false
Here is the group entry:
mail:!:8:dovecot
dovecot:x:111:
But get the same Error. 
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 |
|
 |
rbtux
Member
  
Posts: 1,200
Group: Registered
Joined: Feb 2007
Status:
Away
Reputation: 22
|
RE: [HowTo] Replace courier with dovecot
But get the same Error.
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 |
|
 |
rbtux
Member
  
Posts: 1,200
Group: Registered
Joined: Feb 2007
Status:
Away
Reputation: 22
|
RE: [HowTo] Replace courier with dovecot
[quote=BeNe]
You are right. The UID in the passwd is wrong:
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 |
|
 |
BeNe
Moderator
    
Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 35
|
|
| 10-01-2007 05:55 PM |
|
 |
rbtux
Member
  
Posts: 1,200
Group: Registered
Joined: Feb 2007
Status:
Away
Reputation: 22
|
|
| 10-01-2007 05:59 PM |
|
 |
jmeyerdo
Junior Member

Posts: 135
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 2
|
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 |
|
 |
|
|