カスタム検索
このエントリーをはてなブックマークに追加
tomo.gif (1144 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)To previous pageTo home pageMailing to me

Dovecotの小技

Modified: 6 August 2006


POP3のサービスを有効にする方法 (18 August 2006
"Permission denied","file_lock_dotlock"のエラーに悩む (19 August 2006


POP3のサービスを有効にする方法 

"/etc/dovecot.conf"を変更して設定します。

# Protocols we want to be serving:
#  imap imaps pop3 pop3s
#protocols = imap imaps

デフォルトの上記の設定に対して、以下のように設定変更します。

# Protocols we want to be serving:
#  imap imaps pop3 pop3s
protocols = imap imaps pop3 pop3s

設定後、以下のように再起動し、確認してみます。

# service dovecot restart
Shutting down IMAP daemon (dovecot):                       [  OK  ]
Starting IMAP daemon (dovecot):                            [  OK  ]
# nmap localhost

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on localhost (127.0.0.1):
(The 1593 ports scanned but not shown below are in state: closed)
Port       State       Service
22/tcp     open        ssh                     
25/tcp     open        smtp                    
110/tcp    open        pop-3                   
113/tcp    open        auth                    
143/tcp    open        imap2                   
199/tcp    open        smux                    
993/tcp    open        imaps                   
995/tcp    open        pop3s                   

Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds
#

"Permission denied","file_lock_dotlock"のエラーに悩む

dovecotのバグだと思うのですが、突然、クライアントからメールが読めなくなり、以下のエラーが記録されるようになりました。

Aug 19 12:11:18 mail3 dovecot: Dovecot starting up
Aug 19 12:11:23 mail3 pop3-login: Login: tomo [192.168.0.76]
Aug 19 12:11:27 mail3 pop3(tomo): open(/var/mail/tomo.lock) failed: Permission denied
Aug 19 12:11:27 mail3 pop3(tomo): file_lock_dotlock() failed with mbox file /var/mail/tomo: Permission denied

一旦停止して、CentOS3に内蔵の、"pop3"を、"xinetd"で立ち上げて、メールが読めたら、またとめて、dovecotを再起動すれば問題が解決しました。


To previous pageTo home pageMailing to meJump to Top of pageline.gif (927 ツバツイツト)line.gif (927 ツバツイツト)tomo.gif (1144 ツバツイツト)
カスタム検索



このエントリーをはてなブックマークに追加