Changes between Version 15 and Version 16 of howto/SetupFetchmail


Ignore:
Timestamp:
Jun 14, 2014, 6:59:00 PM (10 years ago)
Author:
kurthindenburg (Kurt Hindenburg)
Comment:

add a bunch of changes to get fetch mail to actually work

Legend:

Unmodified
Added
Removed
Modified
  • howto/SetupFetchmail

    v15 v16  
    5555{{{
    5656sudo chown _fetchmail:_fetchmail /opt/local/etc/fetchmailrc
     57sudo chmod 710 /opt/local/etc/fetchmailrc
    5758}}}
    58 
    59 As a starting point you can use [attachment:fetchmailrc]. You will need to add all your mail source to [attachment:fetchmailrc].
    6059
    6160''Note:''
    6261
    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.
    6465
    6566=== Step 4: ''starting the daemon'' ===
     
    6768Fetchmail is started using {{{launchd}}} which is controlled by the attached [attachment:org.macports.fetchmail.plist].
    6869
     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{{{
     73sudo 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{{{
     77sudo 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{{{
     81sudo vi /opt/local/etc/LaunchDaemons/org.macports.fetchmail/org.macports.fetchmail.plist
     82
     83<key>UserName</key>
     84<string>_fetchmail</string>
     85}}}
     86
     87 
    6988The 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.
    7089