Do You PHP はてブロ

Do You PHPはてなからはてブロに移動しました

fetchmailでpop3s

次にやるときには忘れてそうなのでメモ。
protocolに「pop3s」ではなく、キーワード「ssl」を付けるだけ。

$ man fetchmail
                             :
       Keyword            Opt   Function
       ------------------------------------------------------------
                             :
       ssl                      Connect to server over the  speci
                                fied   base   protocol  using  SSL
                                encryption
                             :

以下、3つのサーバからPOPし、最後の1つはpop3sする場合の設定例。

set postmaster "root"
set bouncemail
set no spambounce
set daemon 60
poll xxx.xxxx.ne.jp
       protocol POP3 user "xxxxxxx" there password "xxxxxxx" is shimooka here
poll mail.xxxxxxxx.jp
       protocol POP3 user "xxxxxxx" there password "xxxxxxx" is shimooka here
poll xxx.xxx.xxx.xxx
       protocol POP3 user "xxxxxxx" there password "xxxxxxx" ssl is shimooka here