Changes between Version 15 and Version 16 of howto/SetupFetchmail
- Timestamp:
- Jun 14, 2014, 6:59:00 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/SetupFetchmail
v15 v16 55 55 {{{ 56 56 sudo chown _fetchmail:_fetchmail /opt/local/etc/fetchmailrc 57 sudo chmod 710 /opt/local/etc/fetchmailrc 57 58 }}} 58 59 As a starting point you can use [attachment:fetchmailrc]. You will need to add all your mail source to [attachment:fetchmailrc].60 59 61 60 ''Note:'' 62 61 63 * The "ID-file" is used to store the message IDs of messages already downloaded. If you use the {{{keep}}} option with one of your mail sources to ''not'' delete messages on the server after downloading them the ID-file is used to prevent downloading these messages again on the next run of fetchmail. Do not put this file in a directory under {{{(/opt/local)/var/run}}} as suggested in [attachment:fetchmailrc] as it will be deleted the next time your machine (re)boots which will result in duplicating your emails! 62 * The "ID-file" is used to store the message IDs of messages already downloaded. If you use the {{{keep}}} option with one of your mail sources to ''not'' delete messages on the server after downloading them the ID-file is used to prevent downloading these messages again on the next run of fetch mail. 63 64 * It is highly recommended that you use the {{{keep}}} option in the fetchmailrc until you are sure everything is working O.K. This will keep the emails on the server while downloading a copy to your system. 64 65 65 66 === Step 4: ''starting the daemon'' === … … 67 68 Fetchmail is started using {{{launchd}}} which is controlled by the attached [attachment:org.macports.fetchmail.plist]. 68 69 70 "Note:" 71 * (As of Jun 2014), the .plist uses a wrapper that denotes the fetchmailrc file as /opt/local/etc/.fetchmail so unless you want to edit this file, create a link 72 {{{ 73 sudo ln -s /opt/local/etc/fetchmail /opt/local/etc/.fetchmail 74 }}} 75 * (As of Jun 2014), fetchmail.wrapper must be edited and the -d120 removed 76 {{{ 77 sudo vi /opt/local/etc/LaunchDaemons/org.macports.fetchmail/fetchmail.wrapper 78 }}} 79 * (As of Jun 2014), org.macports.fetchmail.plist must be edited and these 2 lines added before the </dict></plist> 80 {{{ 81 sudo vi /opt/local/etc/LaunchDaemons/org.macports.fetchmail/org.macports.fetchmail.plist 82 83 <key>UserName</key> 84 <string>_fetchmail</string> 85 }}} 86 87 69 88 The attached [attachment:Restart_Fetchmail.command] command will stop and restart fetchmail which forces a re-read of the configuration files and triggers an immediate mail collection - quite helpful while debugging the system. 70 89