Current time: 11-23-2024, 01:25 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[HowTo] Replace courier with dovecot
Author Message
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #21
RE: [HowTo] Replace courier with dovecot
thx @ joximu ;-)


please test also the avelsieve howto... this should work now too
10-01-2007 04:00 AM
Visit this user's website Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
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
10-01-2007 04:34 PM
Visit this user's website Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #23
RE: [HowTo] Replace courier with dovecot
what is the id of the vmail user and the gid of the mail group?
(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
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
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
10-01-2007 04:47 PM
Visit this user's website Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
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
10-01-2007 05:26 PM
Visit this user's website Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
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
10-01-2007 05:29 PM
Visit this user's website Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
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...
10-01-2007 05:30 PM
Visit this user's website Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #28
RE: [HowTo] Replace courier with dovecot
Ok, thanks! I have it Wink

Greez BeNe
10-01-2007 05:55 PM
Visit this user's website Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #29
RE: [HowTo] Replace courier with dovecot
updated howto
10-01-2007 05:59 PM
Visit this user's website Find all posts by this user
jmeyerdo Offline
Junior Member
*

Posts: 173
Joined: Oct 2007
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
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)