Fetchmail ist ein Programm, welches Mails via POP3 oder IMAP abholen und dann per SMTP oder LMTP weiterleiten kann.
# aptitude install fetchmail
set daemon 180 set syslog set postmaster postmaster@meine-domain.de poll pop.gmx.net proto pop3 uidl port 995: user any@gmx.net, with password 'xxxxxxxx', is user@meine-domain.de here ssl keep norewrite;
Als Daemon starten:
# This file will be used to declare some vars for fetchmail # # Uncomment the following if you don't want localized log messages # export LC_ALL=C # If you want to specify any additional OPTION to the start # scripts specify them here # OPTIONS=... # Declare here if we want to start fetchmail. 'yes' or 'no' START_DAEMON=yes
Neben der Installation auf dem Zielsystem müssen folgende Schritte unternommen:
/etc/fetchmailrc)/var/lib/fetchmail/.fetchids)