Current time: 04-24-2024, 05:00 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: #61
RE: [HowTo] Replace courier with dovecot
yeah it is (quota at least).. you can us this with maildir++ support. But you better use a version 1.1 of dovecot. Checkout the dovecot wiki for more details...
05-23-2008 02:34 AM
Visit this user's website Find all posts by this user
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #62
RE: [HowTo] Replace courier with dovecot
I would like to move my server over to dovecot, but i'm curious if this will result in any missing functionality with ispCP as opposed to running with courier. Will it end up working 100% after the transition, or will i be missing some stuff?
05-23-2008 04:17 AM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #63
RE: [HowTo] Replace courier with dovecot
Well i switched to dovecot, but i don't ever missed something and all the ispcp stuff is working here. Well in fact I miss the wasted memory used by courier-imap ;-)))
05-23-2008 04:34 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: #64
RE: [HowTo] Replace courier with dovecot
Some changes are in the new DoveCot Version. If you have also this Message
Code:
dovecotWarning: mail_extra_groups setting was often used insecurely so it is now deprecated, use mail_access_groups or mail_privileged_group instead
Change in your dovecot.conf
Code:
mail_extra_groups = mail
to
Code:
mail_access_groups = mail

Greez BeNe
05-29-2008 07:23 PM
Visit this user's website Find all posts by this user
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #65
RE: [HowTo] Replace courier with dovecot
I upgraded the wiki to explain how to implement Quota, it's not configurable from the panel yet (RC5), but the information is in the database, so using that is quite easy.
I've been testing a little and using Debian etch (version 1.0rc15) it's working fine.
06-15-2008 01:44 AM
Find all posts by this user
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #66
RE: [HowTo] Replace courier with dovecot
Since RC5, there is the feature of an address being at the same time a normal address and a forward, some lines have to be changed in the dovecot-sql-domain.conf to be able to autenticate with those aliases too.

from:
Code:
password_query = SELECT md5(mail_pass) AS password FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and domain.domain_name='%d' and mail_type='normal_mail';

to:
Code:
password_query = SELECT md5(mail_pass) AS password FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and domain.domain_name='%d' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');

and also from:

Code:
user_query = SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1001' as uid, '8' as gid FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and domain.domain_name='%d' and mail_type='normal_mail';
to:

Code:
user_query = SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1001' as uid, '8' as gid FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and domain.domain_name='%d' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');

Same changes apply to people using quota
You can look at the wiki for updated config
06-16-2008 07:21 PM
Find all posts by this user
aphorist Offline


Posts: 4
Joined: Jul 2008
Reputation: 0
Post: #67
RE: [HowTo] Replace courier with dovecot
Some system like me used uid=1001 (Default Value) but in this step in wiki

17. Changes in dovecot-sql-domain.conf
Code:
user_query = SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1000' as uid, '8' as gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');

uid is 1000 please check

Thank ^.^
(This post was last modified: 07-19-2008 02:34 PM by aphorist.)
07-19-2008 02:31 PM
Find all posts by this user
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #68
RE: [HowTo] Replace courier with dovecot
quote from howto:
Quote:(In the sql for user_query there are uids and gids 'hardcoded'. The uid must be the uid of vmail user and gid the gid of the mail group. Maybe you have to change the defaults (1001/8))
(This post was last modified: 07-19-2008 05:34 PM by Zothos.)
07-19-2008 05:33 PM
Find all posts by this user
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #69
RE: [HowTo] Replace courier with dovecot
Ouch, I'm installing ispcp in vz containers, so there's no default user created, the first user is created with uid 1000, while with a normal installation the first user is created during the install and so the vmail user will be 1001.
To make the install more standard it would be cool that the installer itself used the uid 1001 (if available).
PS: I'll try to keep this in mind for my next install ...
07-19-2008 11:35 PM
Find all posts by this user
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #70
RE: [HowTo] Replace courier with dovecot
Hi, I found that when regenerating the configs there is also the master.cf regenerated and also the main.cf.
To avoid that is as simple as to put prepared templates on the proper places:

/etc/ispcp/postfix/master.cf
/etc/ispcp/postfix/main.cf

Somehow the attachment system is not working for me, so I cannot post the templates until I can put them somewhere (either here or on the wiki)

NOTE: I also updated the wiki so it uses uid 1001 in all the configs
(This post was last modified: 08-13-2008 10:50 PM by aseques.)
08-13-2008 10:49 PM
Find all posts by this user
Thread Closed 


Forum Jump:


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