Dovecot 2.0 beta

CentOS から Fedora に移行する条件の1つが、Dovecot がすんなり動くこと。
Fedora のローハイドみていたら、Dovecot 2.0 の beta の SRPM が出ていた。
dovecot-2.0-0.5.beta4.20100414.fc14.src.rpm
入れる可能性の低い CentOS でビルドを試した。

configure: error: unrecognized option: --docdir=/usr/share/doc/dovecot-2.0
Try `./configure --help' for more information.
error: Bad exit status from /var/tmp/rpm-tmp.89438 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.89438 (%build)

Fedora 12 でビルド

書き込み完了: /root/rpmbuild/RPMS/i386/dovecot-2.0-0.5.beta4.20100414.fc12.i386.rpm
書き込み完了: /root/rpmbuild/RPMS/i386/dovecot-pigeonhole-2.0-0.5.beta4.20100414.fc12.i386.rpm
書き込み完了: /root/rpmbuild/RPMS/i386/dovecot-pgsql-2.0-0.5.beta4.20100414.fc12.i386.rpm
書き込み完了: /root/rpmbuild/RPMS/i386/dovecot-mysql-2.0-0.5.beta4.20100414.fc12.i386.rpm
書き込み完了: /root/rpmbuild/RPMS/i386/dovecot-devel-2.0-0.5.beta4.20100414.fc12.i386.rpm

ありゃ、変わりましたね。

# rpm -ql dovecot
/etc/dovecot
/etc/dovecot/conf.d
/etc/dovecot/conf.d/10-auth.conf
/etc/dovecot/conf.d/10-logging.conf
/etc/dovecot/conf.d/10-mail.conf
/etc/dovecot/conf.d/10-master.conf
/etc/dovecot/conf.d/10-ssl.conf
/etc/dovecot/conf.d/15-lda.conf
/etc/dovecot/conf.d/20-imap.conf
/etc/dovecot/conf.d/20-lmtp.conf
/etc/dovecot/conf.d/20-pop3.conf
/etc/dovecot/conf.d/90-plugin.conf
/etc/dovecot/conf.d/auth-checkpassword.conf.ext
/etc/dovecot/conf.d/auth-deny.conf.ext
/etc/dovecot/conf.d/auth-ldap.conf.ext
/etc/dovecot/conf.d/auth-master.conf.ext
/etc/dovecot/conf.d/auth-passwdfile.conf.ext
/etc/dovecot/conf.d/auth-sql.conf.ext
/etc/dovecot/conf.d/auth-system.conf.ext
/etc/dovecot/conf.d/auth-vpopmail.conf.ext
/etc/dovecot/dovecot.conf
/etc/pam.d/dovecot
/etc/pki/dovecot
/etc/pki/dovecot/certs
/etc/pki/dovecot/certs/dovecot.pem
/etc/pki/dovecot/dovecot-openssl.cnf
/etc/pki/dovecot/private
/etc/pki/dovecot/private/dovecot.pem
/etc/rc.d/init.d/dovecot
/etc/sysconfig/dovecot
.
.
.
# /etc/init.d/dovecot start
Dovecot Imap を起動中: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:380: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:424: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:435: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:454: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1116: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1248: passdb passwd-file {} has been replaced by passdb { driver=passwd-file }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1344: userdb passwd-file {} has been replaced by userdb { driver=passwd-file }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1422: auth_user has been replaced by service auth { user }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set
                                                           [失敗]

ごにょっといじってもう1度。

# /etc/init.d/dovecot start
Starting Dovecot Imap: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:381: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:425: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:436: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:455: namespace private {} has been replaced by namespace { type=private }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1118: add auth_ prefix to all settings inside auth {} and remove the auth {} section completely
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1250: passdb passwd-file {} has been replaced by passdb { driver=passwd-file }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1346: userdb passwd-file {} has been replaced by userdb { driver=passwd-file }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1424: auth_user has been replaced by service auth { user }
                                                           [  OK  ]

IMAP サーバとしては動いているっぽい。
あと、LDA も動くかどうか確認しないといけないが、設定ファイルがちょこっといじれば動きそうだってことが分かって、とりあえず終了。