Dovecotが起動できない件(旧ブログ)



※このコンテンツは旧ブログからの移行です。
未だに旧コンテンツのURLへアクセスが多いため、アクセスの多いコンテンツを順次以降しています。
すべてのコンテンツは移行しませんのでご了承ください。




サーバーのことなんか放置になってましたがアップデートを再開。
依存関係はrpmfindから取得して手動インストールで解決。
無事yum upgradeが通り何事もなくインストール完了。

。。。。がしかし、そう甘くはありませんでした。

今日になって気づきましたがメールが受信できません。
うちのサーバはメール受信にIMAPを使用しているのでdovecotが動いています。
どうせ自動起動設定がおかしくなったんだろうと帰宅してからSSHでログイン。
んで
[root@nezweb ~]# service dovecot start
Dovecot Imap を起動中: Error: Error in configuration file
 /etc/dovecot.conf line 232: Unknown setting: default_mail_env
Fatal: Invalid configuration in /etc/dovecot.conf
                                                           [失敗]

えー!!!!!
ちょwww起動できないってさ
しかもdefault_mail_envがunknown settingだと??

設定の仕様でも変わったんかな。とりあえず新しく作成された/etc/dovecot.conf.rpmnewを見てみる。

##
## Mailbox locations and namespaces
##

# Location for users' mailboxes. This is the same as the old default_mail_env
# setting. The default is empty, which means that Dovecot tries to find the
# mailboxes automatically. This won't work if the user doesn't have any mail
# yet, so you should explicitly tell Dovecot the full location.
#

# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
# isn't enough. You'll also need to tell Dovecot where the other mailboxes are
# kept. This is called the "root mail directory", and it must be the first
# path given in the mail_location setting.
#
# There are a few special variables you can use, eg.:
#
#   %u - username
#   %n - user part in user@domain, same as %u if there's no domain
#   %d - domain part in user@domain, empty if there's no domain
#   %h - home directory
#
# See doc/wiki/Variables.txt for full list. Some examples:
#
#   mail_location = maildir:~/Maildir
#   mail_location = mbox:~/mail:INBOX=/var/mail/%u
#   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
#
# 
#
#mail_location =


やっぱり、This is the same as the old default_mail_env setting. ということらしい。
へえ~ default_mail_envが mail_locationに変わったのね。

そんじゃあ/etc/dovecot.confをviして。。。 default_mail_envをmail_locationに書き換えて:wqしてみる。

[root@nezweb ~]# service dovecot start
Dovecot Imap を起動中:                                     [  OK  ]

おk





コメント: