fetchmail

fetchmail

Docker app from patrickstigler's Repository

Overview

Fetchmail is a handy tool to move / copy your emails from another email provider. Lets say you host your own Mailserver and also want to receive your mails from i.e. googlemail. Fetchmail will take them and put it in your own inbox. Create the "fetchmailrc" file in the mounted data folder. It should contain these lines - but you have to adapt it to fit your needs. i.e. your mail address and remove the "keep" if you want to remove the mails in the fetched remote mailbox. set no syslog set logfile /data/log/fetchmail.log set postmaster "fetchmail" poll imap.gmail.com with proto IMAP user 'someusername@gmail.com' there with password 'yourpassword' is fetchmail here options fetchall ssl keep smtphost mail.example.org smtpname some.user@example.org

docker-fetchmail

Fork to update fetchmail and provide it as an unraid app.

alpine linux with fetchmail and logrotate

docker run -it --name fetchmail -v /fetchmail_config:/data -e TIMECRON:300 patrickstigler/docker-fetchmail

TIMECRON: Time to Recheck mail, if nothing set it defaults to 300 seconds (which should accept the most mail servers)

configuration

create a local etc/fetchmailrc file and adjust it to your own needs

  • let the postmaster run as fetchmail
  • use the /data/log/fetchmail.log logging path for correct logrotate interop example:
set no syslog
set logfile /data/log/fetchmail.log

set postmaster "fetchmail"

poll imap.gmail.com with proto IMAP
  user 'someusername@gmail.com' there with password 'yourpassword' is fetchmail here options ssl
  smtphost mail.example.org
  smtpname some.user@example.org

docker-compose example

mount the folder, which contains the etc/fetchmailrc into the /data of the container

fetchmail:
  restart: always
  image: patrickstigler/docker-fetchmail
  hostname: fetchmail
  volumes:
    - ./fetchmail:/data:rw
  environment:
   - TIMECRON=300

The fetchmail container logs directly into the mountpoint log/fetchmail.log

Install Fetchmail on Unraid in a few clicks.

Find Fetchmail in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for Fetchmail Review the template variables and paths Click Install

Download Statistics

11,667
Total Downloads
183
This Month
205
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Details

Repository
patrickstigler/docker-fetchmail
Last Updated2026-01-10
First Seen2021-10-28

Runtime arguments

Network
bridge
Shell
sh
Privileged
false

Template configuration

TIMECRONVariable

TIMECRON: Time to Recheck mail, if nothing set it defaults to 300 seconds (which should accept the most mail servers)

Default
300
Value
300
ConfigPathrw

Container Path: /data

Target
/data/etc/
Default
/mnt/user/appdata/fetchmail
Value
/mnt/user/appdata/fetchmail