All apps · 0 apps
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
Readme
View on GitHubdocker-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
Categories
Download Statistics
13,581
Total Downloads
744
This Month
404
Avg / Month
Total Downloads Over Time
Loading chart...
Related apps
Explore more like this
Explore allLinks
Details
Repository
patrickstigler/docker-fetchmailLast 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