Current time: 12-23-2024, 11:40 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[HowTo] Replace courier with dovecot
Author Message
Kotty Offline
Junior Member
*

Posts: 167
Joined: Mar 2008
Reputation: 3
Post: #101
RE: [HowTo] Replace courier with dovecot
(12-16-2008 05:53 PM)joximu Wrote:  Thenn have a look at the permissions in

/var/mail/virtual/myk1ng.info/k1ng
/var/mail/virtual/myk1ng.info
/var/mail/virtual/

/J

solved by setting the correct uid at the dovecot configs Wink
12-16-2008 07:53 PM
Find all posts by this user
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #102
RE: [HowTo] Replace courier with dovecot
Do we need to change all the courier init.d paths in ispcp.conf? I'm assuming after removing courier, ispcp will error when trying to restart the imap daemons? Does dovecot need to be restarted after accounts are added/deleted?

-
pGentoo
01-01-2009 11:53 AM
Find all posts by this user
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #103
RE: [HowTo] Replace courier with dovecot
(01-01-2009 11:53 AM)pgentoo Wrote:  Do we need to change all the courier init.d paths in ispcp.conf? I'm assuming after removing courier, ispcp will error when trying to restart the imap daemons?
Didn't tought of that, I've console access, so whenever I've to do something I do it from shell.
In the case of dovecot there's a single init.d entity for¡ everything, so maybe you could have in your ispcp.conf the following:
CMD_AUTHD = /etc/init.d/dovecot
CMD_IMAP_SSL = /etc/init.d/dovecot
CMD_IMAP = /etc/init.d/dovecot
CMD_POP_SSL = /etc/init.d/dovecot
CMD_POP = /etc/init.d/dovecot

Quote:Does dovecot need to be restarted after accounts are added/deleted?
Dovecot is reading the users directly from the database, so there's no need to restart it when there are changes
01-03-2009 12:04 AM
Find all posts by this user
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #104
RE: [HowTo] Replace courier with dovecot
(01-03-2009 12:04 AM)aseques Wrote:  
(01-01-2009 11:53 AM)pgentoo Wrote:  Do we need to change all the courier init.d paths in ispcp.conf? I'm assuming after removing courier, ispcp will error when trying to restart the imap daemons?
Didn't tought of that, I've console access, so whenever I've to do something I do it from shell.
In the case of dovecot there's a single init.d entity for¡ everything, so maybe you could have in your ispcp.conf the following:
CMD_AUTHD = /etc/init.d/dovecot
CMD_IMAP_SSL = /etc/init.d/dovecot
CMD_IMAP = /etc/init.d/dovecot
CMD_POP_SSL = /etc/init.d/dovecot
CMD_POP = /etc/init.d/dovecot

Quote:Does dovecot need to be restarted after accounts are added/deleted?
Dovecot is reading the users directly from the database, so there's no need to restart it when there are changes

Ok, this is what I actually ended up doing so that it wouldn't try to restart a nonexistant courier. However, now it will likely restart dovecot multiple times after a change is made right?

I don't want dovecot restarting 4-5 times after an email address is added... Smile

If anyone has any guidance for the best way to set this up, please chime in.

-
pGentoo
01-03-2009 10:11 AM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #105
RE: [HowTo] Replace courier with dovecot
just add a dummy script that does nothing (well exit 0 would be great imho;-))
01-03-2009 01:11 PM
Visit this user's website Find all posts by this user
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #106
RE: [HowTo] Replace courier with dovecot
Ok, I created a empty init.d script for this purpose, and it seems to work now without having to restart dovecot. Thanks. Smile

One more quick question...

Logged in as a reseller, and looking at the "Domain Statistics", I see "0 B" across the board for IMAP/POP traffic. Is this not supported for dovecot, or do i need to do some tweaks somewhere? I have a few customers that use a TON more IMAP/SMTP traffic then web traffic, so it would be great if I can get this going.

Thanks,
pGentoo
01-05-2009 11:33 AM
Find all posts by this user
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #107
RE: [HowTo] Replace courier with dovecot
(01-05-2009 11:33 AM)pgentoo Wrote:  Logged in as a reseller, and looking at the "Domain Statistics", I see "0 B" across the board for IMAP/POP traffic. Is this not supported for dovecot, or do i need to do some tweaks somewhere? I have a few customers that use a TON more IMAP/SMTP traffic then web traffic, so it would be great if I can get this going.
Some time ago I posted a little patch to solve this problem accouting.
It's a trivial change in a regex, it could be done differently to work both with dovecot and courier, but since upstream doesn't like to mix both (dovecot and courier) in configs I never did it properly.
You can find the patch in this thread thread
01-16-2009 12:51 AM
Find all posts by this user
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #108
RE: [HowTo] Replace courier with dovecot
(01-16-2009 12:51 AM)aseques Wrote:  
(01-05-2009 11:33 AM)pgentoo Wrote:  Logged in as a reseller, and looking at the "Domain Statistics", I see "0 B" across the board for IMAP/POP traffic. Is this not supported for dovecot, or do i need to do some tweaks somewhere? I have a few customers that use a TON more IMAP/SMTP traffic then web traffic, so it would be great if I can get this going.
Some time ago I posted a little patch to solve this problem accouting.
It's a trivial change in a regex, it could be done differently to work both with dovecot and courier, but since upstream doesn't like to mix both (dovecot and courier) in configs I never did it properly.
You can find the patch in this thread thread

I see that now this patch has become part of trunk in rev 1597
It's post 1.0, so you'll have to integrate it by yourself.

Note: It seems trought the comment from rats that from 1.0 onwards, there's a more open approach to dovecot (at least meanwhile it doesn't break anything). So finally we might get the ispcp-dovecot-mngr into trunk.
BeNe, coud that be possible?
01-20-2009 12:31 AM
Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #109
RE: [HowTo] Replace courier with dovecot
Quote:So finally we might get the ispcp-dovecot-mngr into trunk.
BeNe, coud that be possible?
Maybe if we try to integrate Dovecot after 1.0. But at this time we are not supporting it. So long the ispcp-dovecot-mngr is still only in the wiki available.
As RatS said, it would be nice if the Admin can choose during the install between Courier and Dovecot in later versions.

Greez BeNe
01-20-2009 05:14 PM
Visit this user's website Find all posts by this user
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #110
RE: [HowTo] Replace courier with dovecot
exactly, lets wait until stable. Then we can revisit this howto, rewrite it or create a new one for the stable. And maybe it can be inegrated then easily
01-20-2009 06:45 PM
Find all posts by this user
Thread Closed 


Forum Jump:


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