bestlong 怕失憶論壇

 

 

搜索
bestlong 怕失憶論壇 論壇 MIS Dovecot 錯誤 mail_location not set and autodetection ...
查看: 6322|回復: 0
go

Dovecot 錯誤 mail_location not set and autodetection failed [複製鏈接]

Rank: 9Rank: 9Rank: 9

1#
發表於 2010-10-15 09:52 |只看該作者 |倒序瀏覽 |打印
用重建的方式升級 Linux 系統後,結果 WebMail 的 IMAP 有問題,檢查 /var/log/maillog 內發現下列訊息:

dovecot: IMAP(bestlong): mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/bestlong
dovecot: IMAP(bestlong): Fatal: Namespace initialization failed


設定方式都是延用舊環境下的參數,結果來到 Fedora 13 就丟出這個新課題。從訊息字面上的意思去找了 /etc/dovecot.conf 內有這麼一大段註解說明:
  1. ##
  2. ## Mailbox locations and namespaces
  3. ##

  4. # Location for users' mailboxes. This is the same as the old default_mail_env
  5. # setting. The default is empty, which means that Dovecot tries to find the
  6. # mailboxes automatically. This won't work if the user doesn't have any mail
  7. # yet, so you should explicitly tell Dovecot the full location.
  8. #
  9. # If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
  10. # isn't enough. You'll also need to tell Dovecot where the other mailboxes are
  11. # kept. This is called the "root mail directory", and it must be the first
  12. # path given in the mail_location setting.
  13. #
  14. # There are a few special variables you can use, eg.:
  15. #
  16. #   %u - username
  17. #   %n - user part in user@domain, same as %u if there's no domain
  18. #   %d - domain part in user@domain, empty if there's no domain
  19. #   %h - home directory
  20. #
  21. # See <doc/wiki/Variables.txt> for full list. Some examples:
  22. #
  23. #   mail_location = maildir:~/Maildir
  24. #   mail_location = mbox:~/mail:INBOX=/var/mail/%u
  25. #   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
  26. #
  27. # <doc/wiki/MailLocation.txt>
  28. #
  29. #mail_location =
複製代碼
原來 mail_location 真的沒設定, 看了 examples 就將
  1. #mail_location =
複製代碼
改成
  1. mail_location = mbox:~/mail:INBOX=/var/mail/%u
複製代碼
然後重新啟動 dovecot 服務後問題就解決了。
我是雪龍
http://blog.bestlong.idv.tw
http://www.bestlong.idv.tw
‹ 上一主題|下一主題

Archiver|怕失憶論壇

GMT+8, 2024-5-4 18:26 , Processed in 0.009743 second(s), 10 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.