[CentOS] dovecot move doesn't work: RESLOVED

Wed Jan 7 23:16:11 UTC 2015
Chuck Campbell <campbell at accelinc.com>

On 1/7/2015 4:01 PM, Peter wrote:
> On 01/08/2015 05:39 AM, Chuck Campbell wrote:
>> I tried this using yum install dovecot22, but I get a lot of these:
>> file xxx from install of dovecot22-1:2.2.15-1.gf.el6.x86_64 conflicts with file
>> from package dovecot-1:2.0.9-8.el6_6.4.x86_64
>>
>> I tried yum update dovecot22, but I get:
>> Package(s) dovecot22 available, but not installed.
>>
>> What is the right way to do this?
> yum shell
> remove dovecot
> install dovecot22
> run
>
> I should warn you that there are subtle changes to dovecot config
> between 2.0 and 2.2 that may give you issues when switching.  You will
> likely have to tweak a few config options to get it to work the way you
> want.
>
> If you're using MailDir storage then you can simply move the messages
> yourself, it's as easy as using the mv command to move them from one
> directory to another and you won't need the doveadm move command.
>
> If you have any more questions feel free to ask them here or in
> #ghettoforge on FreeNode IRC.
>
>
> Peter
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Peter,
thank you, I was guessing this is what might be needed, and I appreciate the
heads up on what to expect when I do the update.

The resolution I achieved is a bit more convoluted, but it consists of the
following, and remains consistent with centos 6.6 version of dovecot:

wrote a cron script that does the following:

stop fetchmail process
stop sendmail process
stop spamassassin process
run sa-learn against the user's spam_to_learn mailbox
run 'doveadm mailbox unsubscribe' to unsubscribe the spam_to_learn mailbox
run 'doveadm mailbox rename' to rename the spam_to_learn mailbox to
${date}_spam_learned
run 'doveadm mailbox subscribe' to subscribe the ${date}_spam_learned mailbox
(for testing and validation purposes, I will disable this eventually)
run 'doveadm mailbox create' to create a new spam_to_learn mailbox
run 'doveadm mailbox subscribe' to subscribe the new spam_to_learn mailbox
then
run sa-learn against the user's ham_to_learn mailbox
run 'doveadm mailbox unsubscribe' to unsubscribe the ham_to_learn mailbox
run 'doveadm mailbox rename' to rename the ham_to_learn mailbox to
${date}_ham_learned
run 'doveadm mailbox subscribe' to subscribe the ${date}_ham_learned mailbox
(for testing and validation purposes, I will disable this eventually)
run 'doveadm mailbox create' to create a new ham_to_learn mailbox
run 'doveadm mailbox subscribe' to subscribe the new ham_to_learn mailbox
start spamassassin
start sendmail
start fetchmail

Note that the doveadm-mailbox help indicates that some of these steps can be
combined by using the -s option to subscribe or unsubscribe, depending on the
function invoked (rename, create, delete), but they don't work. You need to do
the steps manually, one at a time as I have them listed here.

When I have more time, I will go ahead with a dovecot 2.2x install and report on
any issues I find.

thanks,
-chuck

-- 
ACCEL Services, Inc.| Specialists in Gravity, Magnetics |  (713)993-0671 ph.
                    |   and Integrated Interpretation   |  (713)993-0608 fax
448 W. 19th St. #325|            Since 1992             |  (713)306-5794 cell
 Houston, TX, 77008 |          Chuck Campbell           | campbell at accelinc.com
                    |  President & Senior Geoscientist  |

     "Integration means more than having all the maps at the same scale!"