Changes between Version 14 and Version 15 of howto/SetupFetchmail


Ignore:
Timestamp:
Jun 14, 2014, 5:19:46 PM (10 years ago)
Author:
kurthindenburg (Kurt Hindenburg)
Comment:

remove zsh reference - change folder for macports version of fetchmail

Legend:

Unmodified
Added
Removed
Modified
  • howto/SetupFetchmail

    v14 v15  
    44
    55 * Audience: Advanced E-Mail setup
    6  * Requires: MacPorts >= 1.6, mail/fetchmail, shells/zsh
     6 * Requires: MacPorts >= 1.6, mail/fetchmail
     7 * Last tested with Mac OS X 10.9.3
    78
    89== Introduction ==
     
    1819First set-up a mail storage and a [wikipedia:Mail_transfer_agent mail transfer agent]  . See [wiki:howto/SetupDovecot Dovecot] and [wiki:howto/SetupPostfix Postfix] a possible set-up. Fetchmail will not work without and you can lose your mail if those components are not set-up properly.
    1920
    20 === Z-Shell ===
    21 
    22 Install Z-Shell if you are planning to use the attached command files:
    23 
    24 {{{
    25 sudo port install zsh
    26 }}}
    27 
    2821=== Fetchmail ===
    2922
    30 Then install fetchmail with
     23Install fetchmail with
    3124
    3225{{{
     
    3427}}}
    3528
    36 Some older OSX version may come preinstalled with fetchmail (OSX 10.5).
     29Some older OSX version may come preinstalled with fetchmail (OSX 10.5).  For this howto we will be using macports's version.
    3730
    3831== Configuration ==
     
    4841Dovecot need two directories to work with - one to store the run status, one for the log files. You can use the [attachment:Make_Fetchmail_Directories.command] to create the directories.
    4942
    50 Depending on which fetchmail (macports or OSX) is used you might want to change the path names to better reflect you system set-up.
     43/opt/local/var/log/fetchmail
     44/opt/local/var/run/fetchmail
    5145
    52 ''Note:''
    53 
    54  * The directory {{{/var/run}}} (also {{{/opt/local/var/run}}} ?) is wiped every boot. I suggest using {{{(/opt/local)/var/fetchmail}}} instead of {{{(/opt/local)/var/run/fetchmail}}}.
     46These also need to be owned by _fetchmail
     47{{{
     48sudo chown _fetchmail:_fetchmail /opt/local/var/log/fetchmail
     49sudo chown _fetchmail:_fetchmail /opt/local/var/run/fetchmail
     50}}}
    5551
    5652=== Step 3: ''set-up configuration'' ===
    5753
    58 Next you need to set up [attachment:fetchmailrc]. You find the file in {{{/opt/local/etc}}} (macports) or {{{/private/etc}}}. The file should be owned by _fetchmail:_fetchmail and only be readable to _fetchmail an no one else.
     54Next 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.
    5955{{{
    60 sudo chown _fetchmail:_fetchmail /private/etc/fetchmailrc
     56sudo chown _fetchmail:_fetchmail /opt/local/etc/fetchmailrc
    6157}}}
    62 
    6358
    6459As a starting point you can use [attachment:fetchmailrc]. You will need to add all your mail source to [attachment:fetchmailrc].
     
    7267Fetchmail is started using {{{launchd}}} which is controlled by the attached [attachment:org.macports.fetchmail.plist].
    7368
    74 Depending on which fetchmail (macports or OSX) is used you might want to change the path names to better reflect you system setup.
    75 
    7669The 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.
    7770
    7871''Note:''
    7972
    80  * The logfile defined in [attachment:fetchmailrc] can only be used without {{{--nodetach}}} (see [http://fetchmail.berlios.de/fetchmail-man.html#24 man fetchmail]). With the configuration currently presented here everything will be logged to the system log.
     73 * The logfile defined in [attachment:fetchmailrc] can only be used without {{{--nodetach}}} (see [http://www.fetchmail.info/fetchmail-man.html#24 man fetchmail]). With the configuration currently presented here everything will be logged to the system log.
    8174
    8275=== Step 5: ''testing the deamon'' ===