Mit fetchmail lassen sich Mails über alle üblichen Protokolle [+] zum lokalen Mail-System transferieren. Dort kann man seine Mail dann wie gewohnt weiter verarbeiten. Beispiel-Datei:
# fetchmail control file sample # This file should be located # in your home directory with the name .fetchmailrc. # Permissions on this file may be no greater than # -rw------- (0600), or fetchmail will refuse to # use it. # To see what effect your ~/.fetchmailrc file has, do # fetchmail --version # Comments begin with a '#' and extend through the # end of the line. # Blank lines between server entries are ignored. # Keywords and identifiers are case sensitive. set daemon 600 # Poll at 5-minute intervals set logfile = ~/fetchmail # Defaults gelten fuer alle Eintraege, # wenn dort nichts gegenteiliges steht. defaults protocol pop3 keep fetchall is Lackas; poll pbox.dialup.rwth-aachen.de protocol pop3: username cl916913 password f0ntan3 poll pop.gmx.net protocol pop3: username delta username lackas password enibas is Kopper keep;
Mit protocol wird das Protokoll, also z.B. POP2, POP3 oder IMAP angegeben. Mit keep sage ich fetchmail, daß es meine Mails auf dem Server, nach abholen, belassen soll. username und password [+] sollten klar sein. Den Rest kann man wie üblich den man-pages zu fetchmail entnehmen.