[vPostMaster] Trouble using backup-and-restore method to move to new server

Jonathan Wilson jw at mailsw.com
Thu Jan 31 11:20:16 MST 2008


Hello,

My last attempt to move to a new  mail server failed because the new hardware 
went bad on me as soon as I started using it.

I've been busy but now I am trying again on anther server. I'm having a 
problem with dovecote that I don't remember having last time.

(The old server, BTW it Debian/Sarge and the new one is Debian/Etch):

The original dovecote.conf from debian looked like this when the vpostmaster 
install got done with it:

#  vPostMaster Configuration
protocol imap {
}

protocol pop3 {
}

auth default {
  mechanisms = plain
  passdb sql {
     args = /etc/dovecot/dovecot-vpostmaster.conf
  }
  userdb sql {
     args = /etc/dovecot/dovecot-vpostmaster.conf
  }
  user = root
}

default_mail_env = maildir:~/Maildir/
first_valid_uid = 100
protocols = imap imaps pop3 pop3s






And that's all. The old conf, on the other hand, had a ton more things in it. 
Here's the grep -"^#" output from the old conf:

protocols =
login = imap
login = pop3
mail_extra_groups = mail
auth = default
auth_mechanisms = plain
auth_userdb = passwd
auth_passdb = pam
auth_user = root
default_mail_env = maildir:~/Maildir/
auth_userdb = pgsql /etc/dovecot/dovecot-pgsql.conf
auth_passdb = pgsql /etc/dovecot/dovecot-pgsql.conf
first_valid_uid = 100
protocols = imap imaps pop3 pop3s



All those extra auth_user statements seem to be confusing dovecote on the new 
server, I get error messages like:


Starting mail server: dovecotWarning: Ignoring deprecated 'login' section 
handling. Use protocol imap/pop3 { .. } instead. Some settings may have been 
read incorrectly.
Warning: Ignoring deprecated 'login' section handling. Use protocol imap/pop3 
{ .. } instead. Some settings may have been read incorrectly.
Error: Error in configuration file /etc/dovecot/dovecot.conf line 433: Unknown 
setting: userdb


I made a backup of the new system configs before I "restored" the backups from 
the old server - should I just wipe the "restored" configs and use the 
default new ones that vPostmaster created?

 /etc/dovecot/dovecot-vpostmaster.conf on the NEW system seems to contain the 
same thing that  /etc/dovecot/dovecot-pgsql.conf contained on the OLD system


The old version was 2.12. The new versions is 2.20 (commercial). I'd rather 
say with the the newly installed configs and adjust them a little so I don't 
keep old cruft in there. 

Is the password hash the only thing that REALLY needs to be preserved from the 
old system (throughout all these config files)?

Thanks,

	JW

-- 

----------------------
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com


More information about the vPostMaster mailing list