Post Reply  Post Thread 
Pages (10): « First < Previous 5 6 [7] 8 9 Next > Last »
[HowTo] Replace courier with dovecot
Author Message
rbtux Away
Member
***

rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
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...

OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications
05-23-2008 02:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
pgentoo Offline
Junior Member
****
Dev Team

pgentoo
Junior Member
****
Dev Team


Posts: 124
Group: Dev Team
Joined: Mar 2007
Status: Offline
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 Quote this message in a reply
rbtux Away
Member
***

rbtux
Member
***


Posts: 1,200
Group: Registered
Joined: Feb 2007
Status: Away
Reputation: 22
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 ;-)))

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

BeNe
Moderator
*****


Posts: 2,944
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 41
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

[Image: 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
Visit this user's website Find all posts by this user Quote this message in a reply
aseques Offline
Junior Member
*

aseques
Junior Member
*


Posts: 58
Group: Registered
Joined: May 2008
Status: Offline
Reputation: 0
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 Quote this message in a reply
aseques Offline
Junior Member
*

aseques
Junior Member
*


Posts: 58
Group: Registered
Joined: May 2008
Status: Offline
Reputation: 0
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 Quote this message in a reply
aphorist Offline


aphorist



Posts: 3
Group: Registered
Joined: Jul 2008
Status: Offline
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 Quote this message in a reply
Zothos Offline
Administrator
*******
Administrators

Zothos
Administrator
*******
Administrators


Posts: 719
Group: Administrators
Joined: Feb 2007
Status: Offline
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))

Real programmers don't comment their code - it was hard to write, it should be hard to understand

OS : Gentoo 32bit Stage1
ispCP Version : RC4
Mods : Dovecot | Pure-ftpd

No Support via PM - Payed Support via request

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 Quote this message in a reply
aseques Offline
Junior Member
*

aseques
Junior Member
*


Posts: 58
Group: Registered
Joined: May 2008
Status: Offline
Reputation: 0
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 Quote this message in a reply
aseques Offline
Junior Member
*

aseques
Junior Member
*


Posts: 58
Group: Registered
Joined: May 2008
Status: Offline
Reputation: 0
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 Quote this message in a reply
Pages (10): « First < Previous 5 6 [7] 8 9 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this thread |

Forum Jump:

| All rights reserved : isp-control.net |