BeNe
Offline
Moderator
    
BeNe
Moderator
    
Posts: 2,944
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 41
|
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
![[Image: ispcpsw.png]](http://bene.homelinux.net/autoindex/Files/ispCP%20Omega/ispcp_userbars/ispcpsw.png)
Ein Betriebssystem ist immer nur so gut und sicher wie der Administrator der es verwaltet.
Wie gut der Administrator jedoch seine Fähigkeiten ausspielen kann, legt das Betriebssystem fest.
-> Linux rulZ!
|
|
| 05-29-2008 07:23 PM |
|
aseques
Offline
Junior Member

aseques
Junior Member

Posts: 58
Group: Registered
Joined: May 2008
Status:
Offline
Reputation: 0
|
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 |
|
aseques
Offline
Junior Member

aseques
Junior Member

Posts: 58
Group: Registered
Joined: May 2008
Status:
Offline
Reputation: 0
|
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 |
|
aphorist
Offline
aphorist
Posts: 3
Group: Registered
Joined: Jul 2008
Status:
Offline
Reputation: 0
|
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 |
|
aseques
Offline
Junior Member

aseques
Junior Member

Posts: 58
Group: Registered
Joined: May 2008
Status:
Offline
Reputation: 0
|
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 |
|
aseques
Offline
Junior Member

aseques
Junior Member

Posts: 58
Group: Registered
Joined: May 2008
Status:
Offline
Reputation: 0
|
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 |
|