[MacPorts] howto/SetupFetchmail modified

MacPorts noreply at macports.org
Sat Jun 14 11:59:02 PDT 2014


Page "howto/SetupFetchmail" was changed by khindenburg at macports.org
Diff URL: <https://trac.macports.org/wiki/howto/SetupFetchmail?action=diff&version=16>
Revision 16
Comment: add a bunch of changes to get fetch mail to actually work
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/SetupFetchmail
=========================================================================
--- howto/SetupFetchmail (version: 15)
+++ howto/SetupFetchmail (version: 16)
@@ -54,18 +54,37 @@
 Next you need to set up [attachment:fetchmailrc] and save it to {{{/opt/local/etc}}}. The file should be owned by _fetchmail:_fetchmail and only be readable to _fetchmail an no one else.
 {{{
 sudo chown _fetchmail:_fetchmail /opt/local/etc/fetchmailrc
+sudo chmod 710 /opt/local/etc/fetchmailrc
 }}}
-
-As a starting point you can use [attachment:fetchmailrc]. You will need to add all your mail source to [attachment:fetchmailrc].
 
 ''Note:''
 
- * 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!
+ * 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.
+
+ * 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.
 
 === Step 4: ''starting the daemon'' ===
 
 Fetchmail is started using {{{launchd}}} which is controlled by the attached [attachment:org.macports.fetchmail.plist].
 
+"Note:"
+ * (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
+{{{
+sudo ln -s /opt/local/etc/fetchmail /opt/local/etc/.fetchmail
+}}}
+ * (As of Jun 2014), fetchmail.wrapper must be edited and the -d120 removed
+{{{
+sudo vi /opt/local/etc/LaunchDaemons/org.macports.fetchmail/fetchmail.wrapper 
+}}}
+* (As of Jun 2014), org.macports.fetchmail.plist must be edited and these 2 lines added before the </dict></plist>
+{{{
+sudo vi /opt/local/etc/LaunchDaemons/org.macports.fetchmail/org.macports.fetchmail.plist
+
+<key>UserName</key>
+<string>_fetchmail</string>
+}}}
+
+  
 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.
 
 ''Note:''
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/SetupFetchmail>
MacPorts <http://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'howto/SetupFetchmail' page.
If it was not you, please report to .


More information about the macports-changes mailing list