Fetchmail
Fetchmail is an email retrieval tool that fetches mail from remote IMAP and POP3 mailboxes and delivers it to your own mail server.
Platform availability
Available on 1 of 10 platforms
- Unraid
- TrueNAS (not listed)
- Umbrel (not listed)
- ZimaOS (not listed)
- Proxmox (not listed)
- Helm (not listed)
- Mac (not listed)
- Windows (not listed)
- Linux (not listed)
- Any server (not listed)
Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.
10/100 Low
- Maintained
- 0last commit 1800 days ago
- Popular
- 61 GitHub stars
- Easy to install
- 351 install platform, install notes, Docker image
- Light to run
- No data
Based on 3 of 4 factors.
Availability: platform listings confirmed today, links checked 33 days ago
- GitHub stars
- 1
- Open issues
- 0
- Last commit
- 2021-12-17
- License
- MIT
- Activity
- stale
Checked 10 days ago - source: GitHub (patrickstigler/docker-fetchmail)
Resources & Compatibility
ARM (e.g. Raspberry Pi) is not supported.
Checked 54 days ago - source: Docker Hub image tags and published docs
First-install notes
- Fill in your mail account details Open the fetchmail config and replace the sample server, protocol, username, password, local address, and delivery path with your own values. If these are missing or wrong, fetchmail can't connect to the mail server or deliver mail to the right place. source
- Give fetchmail a place to remember mail Set idfile to a real path that fetchmail can write to, because it uses that file to remember which messages it has already fetched. If it can't keep that record, it may fetch the same mail again or lose track of what was delivered. source
- Check name lookups if using a host name If your mail server is a name instead of an IP address, check the name-resolution file /etc/nsswitch.conf and make sure it uses hosts: files dns so it checks local files before DNS. Otherwise the computer may not find the mail server name. source
- Configure fetchmailrc Create a fetchmailrc file in the mounted /data folder; adjust the poll lines (server, username, password, options) for each mailbox and remove the 'keep' option if you want fetched mail deleted from the remote box. source
- Recheck interval (TIMECRON) Set the TIMECRON environment variable to control how often fetchmail rechecks for mail; it defaults to 300 seconds, which most mail servers accept. Use /data/log/fetchmail.log as the log path so logrotate works. source
Fetched 39 days ago - each note links to its source
Variants
Alternatives
No alternatives collected yet.
Common questions
How do I set up fetchmail in the patrickstigler Docker/Unraid app?
Mount the folder that contains your fetchmailrc file into the container at /data and edit it for your remote mailbox and local delivery name. Use /data/log/fetchmail.log for the logfile so logrotate works, and set TIMECRON if you want a different mail recheck interval.
Why does fetchmail fetch the same messages again?
Set idfile to a real path that fetchmail can write to, because it uses that file to remember which messages it has already fetched. If fetchmail cannot keep that record, it may fetch duplicate mail or lose track of what was delivered.
Does fetchmail use push to retrieve mail?
The discussion treats fetchmail and getmail as polling tools, while users seek alternatives that support push to reduce email retrieval delay.
How do I fix fetchmail not resolving a mail server host name?
Check /etc/nsswitch.conf and make sure it uses hosts: files dns so the system checks local files before DNS. This helps the computer find the mail server when it is specified as a name instead of an IP address.
Why does sendmail suppress fetched mail as a loop?
Fetchmail normally feeds sendmail with the client machine's host address in the MAIL FROM line. Some sendmail configurations interpret that as a mail loop and suppress the mail.
Answers sourced from github.com, gitlab.com, gitlab.com, www.fetchmail.info, www.reddit.com
Community
- OAuth2 support in Fetchmail : r/selfhosted - Reddit (reddit)
- Mail gathering Server : r/selfhosted - Reddit (reddit)
- Selfhosted Mail Server that can fetch external mailboxes - Reddit (reddit)
- fetchmail/getmail alternative that supports push? : r/selfhosted - Reddit (reddit)
- Fetchmail errors when fetching from outlook.com : r/selfhosted - Reddit (reddit)
Collected 53 days ago - public community threads