Showing posts with label dovecot. Show all posts
Showing posts with label dovecot. Show all posts

Wednesday, August 11, 2010

dovecot的mail_location?

給未來的裕翔

dovecot架好後, 開放imaps和pop3s

然後在iptables開啟相對應的port之後(可查/etc/services)

selinux不需要設定

tcp_wrapper不需要設定

本來可以連成功的, 一般使用者

可是! 不知怎搞的

吃個飯回來就連不到了

錯誤訊息如下

mail_location not set and autodetection failed: Mail storage autodetection failed with ......

去查一下後

把/etc/dovecot.conf裡面新增一行

mail_location = mbox:~/mail:INBOX=/var/mail/%u

不用擔心記不起來, 因為這是dovecot.conf裡面的example

直接用即可

這樣就可以了^^

另外, 如果要自製憑證

make -C /etc/pki/tls/certs

填完資料後, 憑證會產生在/etc/pki/tls/certs

權限是只有root可以讀

不過書上說沒關係(有講理由但我不懂)

接著修改dovecot.conf如, 搞定~
ssl_cert_file = /etc/pki/tls/certs/dovecot.pem

ssl_key_file = /etc/pki/tls/certs/dovecot.pem

96 ssl_cert_file = /etc/pki/tls/certs/dovecot.pem  97 ssl_key_file = /etc/pki/tls/certs/dovecot.pem

Thursday, July 1, 2010

dovecot架設&自己發行憑證

給未來的裕翔

dovecot的安裝架設非常簡單

sudo yum -y install dovecot

然後去sudo vim /etc/dovecot.conf

把protocols那行反註解

照理說到這邊就可以用了

偏偏接下來還要多增加一個設定才可以使用
mail_location = /var/spool/mail/%u

那如果要自行發行憑證的話

make -C /etc/pki/tls/certs dovecot.pem

-C是change directory, 好像因為發行憑證需要的makefile在那裡

那接下來就是一般資訊填寫

填好之後就產生在/etc/pki/tls/certs

要使用它的話要修改/etc/dovecot.conf
ssl_cert_file = /etc/pki/tls/certs/dovecot.pem
ssl_key_file = /etc/pki/tls/certs/dovecot.pem

Saturday, May 15, 2010

dovecot, sendmail, postfix練習時哪些要開?

給未來的裕翔

當我裝好dovecot時, 啟動這項服務

原本以為它跟sendmailpostfix是同角色的

不過以alternatives --config mta來查看時

卻似乎不是

所以, sendmailpostfix至少要開啟一個才可以練習

postfix也許少設定什麼, 沒有成功

所以暫時以sendmail來練習

補充:

如果我現在要關掉sendmail開啟postfix

最好是先把sendmail服務停掉

service sendmail stop

然後再改mta

alternatives --config mta