Changes between Version 17 and Version 18 of howto/SetupFetchmail


Ignore:
Timestamp:
Jun 14, 2014, 9:02:07 PM (10 years ago)
Author:
kurthindenburg (Kurt Hindenburg)
Comment:

Finally figured out to get the daemon poll to work

Legend:

Unmodified
Added
Removed
Modified
  • howto/SetupFetchmail

    v17 v18  
    6767=== Step 4: ''starting the daemon'' ===
    6868
    69 Fetchmail is started using {{{launchd}}} which is controlled by the attached [attachment:org.macports.fetchmail.plist].
     69Fetchmail is started using {{{launchd}}} which is controlled by macport's fetchmail installed {{{/opt/local/etc/LaunchDaemons/org.macports.fetchmail/org.macports.fetchmail.plist}}}
     70
    7071
    7172"Note:"
     
    7475sudo ln -s /opt/local/etc/fetchmail /opt/local/etc/.fetchmail
    7576}}}
    76  * (As of Jun 2014), fetchmail.wrapper must be edited and the -d120 removed
     77 * (As of Jun 2014), change fetchmail.wrapper such that the Start() looks like the below.
    7778{{{
    7879sudo vi /opt/local/etc/LaunchDaemons/org.macports.fetchmail/fetchmail.wrapper
    7980}}}
     81{{{
     82Start()$
     83{$
     84     /opt/local/bin/fetchmail -f /opt/local/etc/.fetchmail --daemon=1200 --nodetach$
     85}$
     86}}}
     87
    8088* (As of Jun 2014), org.macports.fetchmail.plist must be edited and these 2 lines added before the </dict></plist>
    8189{{{
    8290sudo vi /opt/local/etc/LaunchDaemons/org.macports.fetchmail/org.macports.fetchmail.plist
    83 
     91}}}
     92{{{
    8493<key>UserName</key>
    8594<string>_fetchmail</string>
    8695}}}
    87 
    88 "Note:"
    89 This setup currently only runs once at startup; it does not try to poll every so often.  Trying to have fetchmail detach will cause it to crash.
    90  
    9196
    9297The 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.