Current time: 11-15-2024, 03:56 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Replace courier with dovecot
Author Message
edeis Offline
Junior Member
*

Posts: 34
Joined: May 2010
Reputation: 0
Post: #51
RE: [HowTo] Replace courier with dovecot
Thanks Aseques. The HowTo on the wiki was not clear, I thought this is something that had to be done for the distros listed: Debian Etch usw, Debian Lenny, and *BSD dovecot from port.

Looking at my directory structure (Centos5.4), I see dovecot/deliver is in: /usr/libexec/dovecot/deliver

So this should be the correct piping for RHEL and CentOS??:

Quote:dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient} -s

I get the following error in /var/log/maillog:

Quote:(command line usage error. Command output: Fatal: Unknown argument: -s Usage: deliver [-c <config file>] [-d <destination user>] [-m <mailbox>] [-n] [-e] [-f <envelope sender>] )
(This post was last modified: 05-07-2010 04:00 AM by edeis.)
05-07-2010 03:17 AM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #52
RE: [HowTo] Replace courier with dovecot
From deliver manual:
-s: Subscribe to mailboxes that are automatically created (via -m parameter or fileinto Sieve action). (v1.1.3+)


It might be that you're using an older versions than 1.1.3 or that this option is not availabel on centOS. Delete the -s part from master.cf and should go fine.
05-07-2010 09:12 PM
Find all posts by this user Quote this message in a reply
edeis Offline
Junior Member
*

Posts: 34
Joined: May 2010
Reputation: 0
Post: #53
RE: [HowTo] Replace courier with dovecot
Thanks. Yes, CentOS uses version 1.07 in their repository. Used the atrpms.net repository and upgrade to latest version, now it works with "-s".

Still have a problem trying to use sieve and managesieve, even after restarting the services. But, I guess that isn't for this forum. The ISP portion is working now.

dovecot: dovecot: Created login processes successfully, unstalling
May 7 12:46:47 drizzle dovecot: dovecot: Temporary failure in creating login processes, slowing down for now
May 7 12:46:47 drizzle dovecot: managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.11, login is v1.2.10 (if you don't care, set version_ignore=yes)
May 7 12:46:47 drizzle dovecot: dovecot: Created login processes successfully, unstalling
May 7 12:46:48 drizzle dovecot: managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.11, login is v1.2.10 (if you don't care, set version_ignore=yes)
05-08-2010 05:49 AM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #54
RE: [HowTo] Replace courier with dovecot
(05-08-2010 05:49 AM)edeis Wrote:  Thanks. Yes, CentOS uses version 1.07 in their repository. Used the atrpms.net repository and upgrade to latest version, now it works with "-s".

Still have a problem trying to use sieve and managesieve, even after restarting the services. But, I guess that isn't for this forum. The ISP portion is working now.

dovecot: dovecot: Created login processes successfully, unstalling
May 7 12:46:47 drizzle dovecot: dovecot: Temporary failure in creating login processes, slowing down for now
May 7 12:46:47 drizzle dovecot: managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.11, login is v1.2.10 (if you don't care, set version_ignore=yes)
May 7 12:46:47 drizzle dovecot: dovecot: Created login processes successfully, unstalling
May 7 12:46:48 drizzle dovecot: managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.11, login is v1.2.10 (if you don't care, set version_ignore=yes)
This seems to be something related to the compilation of sieve module, it might be that sieve and dovecot are packaged with different versions, you should look at the source of those packages or try with the "version_ignore=yes" (I've never used it tought)
05-10-2010 08:54 PM
Find all posts by this user Quote this message in a reply
edeis Offline
Junior Member
*

Posts: 34
Joined: May 2010
Reputation: 0
Post: #55
RE: [HowTo] Replace courier with dovecot
Yes, it was a version problem.

For anyone else who experiences the following error using ATRPMS repo for dovecot:

May 6 17:12:31 drizzle dovecot: dovecot: Created login processes successfully, unstalling
May 6 17:12:31 drizzle dovecot: managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.11, login is v1.2.10 (if you don't care, set version_ignore=yes)
May 6 17:12:31 drizzle last message repeated 2 times
May 6 17:12:31 drizzle dovecot: dovecot: Temporary failure in creating login processes, slowing down for now


Here are the steps to correct:
# yum install dovecot-devel dovecot-sieve-devel
# wget http://dl.atrpms.net/all/dovecot-manages..._4.src.rpm
# rpmbuild --rebuild dovecot-managesieve-0.11.11-0_4.src.rpm
# yum remove dovecot-managesieve
!! yum upgrade will not work because atrpms package is same version, so remove it.
# cd /usr/src/redhat/RPMS/x86_64
# yum --nogpgcheck install dovecot-managesieve-0.11.11-0_4.x86_64.rpm
# service dovecot restart
05-11-2010 03:16 AM
Find all posts by this user Quote this message in a reply
bodysplit Offline
Junior Member
*

Posts: 45
Joined: Nov 2007
Reputation: 1
Post: #56
RE: [HowTo] Replace courier with dovecot
To me, Fedora's EPEL-backports repository worked fine.
05-11-2010 05:51 AM
Find all posts by this user Quote this message in a reply
chani Offline
Junior Member
*

Posts: 10
Joined: Jul 2010
Reputation: 0
Post: #57
RE: [HowTo] Replace courier with dovecot
imap/pop3 traffic-accounting not working after switching to dovecot?
(This post was last modified: 08-14-2010 05:45 PM by chani.)
08-14-2010 05:00 PM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #58
RE: [HowTo] Replace courier with dovecot
(08-14-2010 05:00 PM)chani Wrote:  imap/pop3 traffic-accounting not working after switching to dovecot?

It should work with no problems, at least for POP3, about imap you should have a look at here, there is a pending patch, that behaves properly.
http://isp-control.net/forum/thread-1071...#pid815623
08-16-2010 10:17 PM
Find all posts by this user Quote this message in a reply
Mazga Offline
Junior Member
*

Posts: 16
Joined: Mar 2010
Reputation: 0
Post: #59
RE: [HowTo] Replace courier with dovecot
Another small issue for people who are not so familar with linux, after replace of Courier with Dovecot everything works fine until the first reboot - on debian hosts dovecot isnt started automatically so you have to run
8. Start services
/etc/init.d/dovecot start
/etc/init.d/postfix restart

maybe you can put this info into the wiki
regards Martin
09-10-2010 11:58 PM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #60
RE: [HowTo] Replace courier with dovecot
(09-10-2010 11:58 PM)Mazga Wrote:  Another small issue for people who are not so familar with linux, after replace of Courier with Dovecot everything works fine until the first reboot - on debian hosts dovecot isnt started automatically so you have to run
8. Start services
/etc/init.d/dovecot start
/etc/init.d/postfix restart

maybe you can put this info into the wiki
regards Martin
Dovecot is definitively started automatically on any standard install. You should check that there are the appropiate links in /etc/rcX.d in your case.
09-14-2010 06:57 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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