fetchmail
Home Page
- http://www.fetchmail.info/
- 最新版は6.3.21 (2011/8/21 release)
cygwin + fetchmail
最近のcygwinでfetchmailをdaemonとして実行し,fetchmailからprocmailを実行するようにしていると,procmail実行のたびにウィンドウが開くようになってしまった.
- 関連メール
- 対処法
- サービスとしての設定方法 (from /usr/share/doc/Cygwin/fetchmail-6.3.8.README)
- Typically fetchmail is run in daemon mode in order to retrieve one's mail in the background. Under Windows NT/2000/XP, Cygwin fetchmail can be installed as a NT service. To install Cygwin fetchmail as a service use the following:
- $ cygrunsrv --install fetchmail --path /usr/bin/fetchmail --env HOME=$HOME --user "$USERDOMAIN\\$USERNAME" --args '--daemon 300 --nodetach' --shutdown
- Note the following:
- the above installs Cygwin fetchmail to run under your normal login account instead of the LocalSystem account
- the account executing cygrunsrv must have local Administrators privileges for this command to succeed
- the $USERDOMAIN\\$USERNAME account must have the "Log on as a service" user right for Cygwin fetchmail to start as a NT service (管理ツール→ローカルセキュリティポリシー→ローカルポリシー→ユーザー権利の割り当て→「サービスとしてログオン」に当該ユーザを追加)
- 設定例
cygrunsrv --install fetchmail --path /usr/bin/fetchmail --env HOME=$HOME \ --user "$USERDOMAIN\\$USERNAME" \ --args '--daemon 90 --nodetach --fetchall --fetchmailrc /path/to/.myfetchmailrc' \ --shutdown
- 下記エラーが出る場合:ターミナルを管理者権限で開き,上記を実行する
cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5: アクセスが拒否されました。