#1  
Old 12th March 2010, 15:23
goebelmeier goebelmeier is offline
Junior Member
 
Join Date: Nov 2009
Location: Bremen
Posts: 14
Thanks: 2
Thanked 3 Times in 2 Posts
Send a message via ICQ to goebelmeier Send a message via AIM to goebelmeier Send a message via MSN to goebelmeier Send a message via Yahoo to goebelmeier Send a message via Skype™ to goebelmeier
Default Courier to Dovecot migration

Hey,

is there already a migration path / best practice, to change imapd from courier to dovecot. I'm running ISPConfig 3.0.2 on Debian Lenny.

Thanks in advance,

Timo
Reply With Quote
Sponsored Links
  #2  
Old 12th March 2010, 17:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Courier and dovecot implementations use a different maildir layou, so you can not simply switch the imap daemon. If you want to migrate your server to dovecot, you will have to create a new "Maildir" subfolder in every ecisting maildir and copy all the contents of the existing maildir into this new subfolder. Exa,ple:

Courier layout:

/var/vmail/domian.com/user/

Dovecot Layout:

/var/vmail/domian.com/user/Maildir/

If your users have created any mailfilters, then these filters will get lost as they are written in maildrop syntax and not sieve as required by dovecot.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 4th April 2010, 15:13
goebelmeier goebelmeier is offline
Junior Member
 
Join Date: Nov 2009
Location: Bremen
Posts: 14
Thanks: 2
Thanked 3 Times in 2 Posts
Send a message via ICQ to goebelmeier Send a message via AIM to goebelmeier Send a message via MSN to goebelmeier Send a message via Yahoo to goebelmeier Send a message via Skype™ to goebelmeier
Default

If found 2 helpful information sources regarding courier migrations, i.e.:
http://wiki.dovecot.org/Migration/Courier and http://www.arschkrebs.de/slides/dovecot-slides.pdf

Imagining i would like to dismiss all my mailfilter rules (which are not much in this case), which tasks i would have to do regarding ISPConfig to get my system up and running again? I would appreciate to get rid of courier soon :-)

Thanks in advance, Timo!
Reply With Quote
  #4  
Old 8th April 2010, 13:26
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

I've got a successful migration working on my config with sieve filtering and managesieve for squirrelmail rule editing and so on.

the only thing that doesnt work is updating the ispconfig_mailsize file in each homedir as it's processed by maildrop rules.

I'm currently working on a dovecot solution using global sieve script to process mail for each user. only problem i'm still trying to fix is that it's not running as vmail:vmail user causing me grief and for some reason the ispc dev guys didnt use db tables to populate the counts so atm i'm trying to make it use dovecot transport which is suppose to run as vmail:vmail but still doesn't..

getting there.....
__________________
www.emperor-it.com for ISPConfig mods/hacks
Reply With Quote
  #5  
Old 8th April 2010, 13:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Quote:
the only thing that doesnt work is updating the ispconfig_mailsize file in each homedir as it's processed by maildrop rules.
Yes, thats not implemented yet as sieve lacks some functions that maildrop has. It is planned to implement a different solution for dovecot that is based on the dovecot binlog.

Quote:
and for some reason the ispc dev guys didnt use db tables to populate the counts
Not sure what you mean with that.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 8th April 2010, 15:28
goebelmeier goebelmeier is offline
Junior Member
 
Join Date: Nov 2009
Location: Bremen
Posts: 14
Thanks: 2
Thanked 3 Times in 2 Posts
Send a message via ICQ to goebelmeier Send a message via AIM to goebelmeier Send a message via MSN to goebelmeier Send a message via Yahoo to goebelmeier Send a message via Skype™ to goebelmeier
Default

Quote:
Originally Posted by djtremors View Post
I've got a successful migration working on my config with sieve filtering and managesieve for squirrelmail rule editing and so on.
Could you please shortly post a list of steps what you currently did for that successful migration? Maybe we can avoid some obstacles you had while your migration.
Reply With Quote
  #7  
Old 16th May 2010, 23:26
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
Default

Quote:
Originally Posted by till View Post
Courier and dovecot implementations use a different maildir layou, so you can not simply switch the imap daemon. If you want to migrate your server to dovecot, you will have to create a new "Maildir" subfolder in every ecisting maildir and copy all the contents of the existing maildir into this new subfolder. Exa,ple:

Courier layout:

/var/vmail/domian.com/user/

Dovecot Layout:

/var/vmail/domian.com/user/Maildir/

If your users have created any mailfilters, then these filters will get lost as they are written in maildrop syntax and not sieve as required by dovecot.
In 1.2.9 (Ubuntu 10.04) is directive in /etc/dovecot.conf
mail_location , which should be set to
mail_location = maildir:/var/vmail/%d/%n

Assuming i have to stay with mail_location = maildir:/var/vmail/%d/%n/Maildir as ISPC3 dovecot mail plugin is expecting this location ?
Reply With Quote
  #8  
Old 17th May 2010, 12:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

The dovecot mail location is read directly from the ispconfig database. Please see dovecot-sql.conf file. The mail_location setting in dovecot.conf is not used, so do not alter it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 17th May 2010, 13:26
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 418
Thanks: 33
Thanked 24 Times in 19 Posts
Send a message via ICQ to radim_h
 
Default

Quote:
Originally Posted by till View Post
The dovecot mail location is read directly from the ispconfig database. Please see dovecot-sql.conf file. The mail_location setting in dovecot.conf is not used, so do not alter it.
the mail_location setting must be set, or dovecot will not start..
i spent couple hours yeasterday with setting up dovecot in Ubuntu 10.04
and here is my config, may be useful for someone..
Be Aware, that Sieve settings are not included, as i was not able to set sieve correctly yet. I'm also not sure quota works as Roundcubemail doensn't show quota as it does for courier (

Dovecot config Ubuntu 10.04:

protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "

ssl_cert_file = /etc/ssl/_.mydomain.tld/_.mydomain.tld.crt
ssl_key_file = /etc/ssl/_.mydomain.tld/_.mydomain.tld.key

mail_privileged_group = mail

## IMAP specific settings
protocol imap {
mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
# Support for dynamically loadable plugins. mail_plugins is a space separated
# list of plugins to load.
mail_plugins = quota
#mail_plugin_dir = /usr/lib/dovecot/modules/imap
}

## POP3 specific settings
protocol pop3 {
mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/pop3
pop3_uidl_format = %08Xu%08Xv
mail_plugins = quota
}

##
## LDA specific settings
##

protocol lda {
# Address to use when sending rejection mails.
postmaster_address = postmaster@example.com

# Hostname to use in various parts of sent mails, eg. in Message-Id.
# Default is the system's real hostname.
#hostname =

# Support for dynamically loadable plugins. mail_plugins is a space separated
# list of plugins to load.
mail_plugin_dir = /usr/lib/dovecot/modules/lda

# Binary to use for sending mails.
#sendmail_path = /usr/lib/sendmail

# UNIX socket path to master authentication server to find users.
auth_socket_path = /var/run/dovecot/auth-master

# Enabling Sieve plugin for server-side mail filtering
mail_plugins = sieve quota
}

## Authentication processes
##

# Executable location
#auth_executable = /usr/lib/dovecot/dovecot-auth
auth default {
mechanisms = plain login
passdb pam {
}



# SQL database <doc/wiki/AuthDatabase.SQL.txt>
passdb sql {
# Path for SQL configuration file
args = /etc/dovecot/dovecot-sql.conf
}

## dovecot-lda specific settings
##
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail # User running Dovecot LDA
#group = vmail # Or alternatively mode 0660 + LDA user in this group
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}

}

dict {
#quota = mysql:/etc/dovecot-dict-quota.conf
}

## Plugin settings
plugin {
quota = maildir

}

mail_uid = 5000
mail_gid = 5000

mail_location = maildir:/var/vmail/%d/%n/Maildir
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Postfix can't received email from exterior astra2000 Server Operation 5 17th October 2009 23:26
Dovecot fails to deliver to all mail clients zwelabantu Server Operation 8 26th June 2009 12:17
Dovecot fails to deliver to all mail clients zwelabantu Installation/Configuration 3 19th June 2009 16:57
Dovecot instead of Courier dmgrant Installation/Configuration 1 26th July 2008 12:04


All times are GMT +2. The time now is 04:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.