Comments (3)
Hello @airdogvan
Thanks for opening this issue.
I've just tried to run the backup of a GMail account without the additional DNS setting, and it worked.
I then ran the following:
$ docker run --pull always --rm -it ghcr.io/joeyates/imap-backup:latest ping imap.gmail.com
This is the output:
latest: Pulling from joeyates/imap-backup
Digest: sha256:ac02c158182fceb22d03437e8d013d6201b024a2c66c1dc842f9ecf6616f6a02
Status: Image is up to date for ghcr.io/joeyates/imap-backup:latest
PING imap.gmail.com (108.177.96.109): 56 data bytes
64 bytes from 108.177.96.109: seq=0 ttl=50 time=75.996 ms
64 bytes from 108.177.96.109: seq=1 ttl=50 time=74.505 ms
Could you do the same with your setup and your IMAP server(s)?
from imap-backup.
tried it with gmail and it works (is the IP hard coded in the image?)
but doesn't if I try my server.
If you want to see how it works try:
docker run --pull always --rm -it ghcr.io/joeyates/imap-backup:latest ping imap.mail.yahoo.com
that should return:
ping: bad address 'imap.mail.yahoo.com'
Your container needs some way to resolve addresses and without access to a DNS server that's always going to be a problem...
from imap-backup.
I read a very informative post about Docker DNS, and learned that Docker containers' DNS resolution depends very much on the host configuration: nameservers are copied from the host into /etc/resolv.conf
.
Mine:
$ docker run --pull always --rm -ti ghcr.io/joeyates/imap-backup:latest cat /etc/resolv.conf
...
nameserver 192.168.0.2
nameserver 8.8.8.8
If the host does not supply nameservers, Docker uses Google's 8.8.8.8
and 8.8.4.4
.
So, DNS resolution for imap.mail.yahoo.com
will fail if the host supplies 2 nameservers that are not reachable from the container.
I've added Google's main nameserver to the examples in the README, as suggested. Thanks!
from imap-backup.
Related Issues (20)
- Migrate is failing HOT 9
- Clarification between migrate and mirror HOT 4
- Import support from a local storage format (mbox, maildir, Thunderbird .sbd, ...) HOT 6
- Support for setting account (backups) to "archived" or "offline" HOT 3
- Unexpected backup data loss on re-adding legacy backup folder/account HOT 4
- No emails download HOT 8
- "--mirror" ignored when using "single backup" HOT 5
- Backup for account failed with error closed stream HOT 7
- Restore does not accept a `--delimiter` parameter HOT 5
- How is the length/offset calculated? HOT 2
- Backup of a large folder does not work (sent mails, Office 365) HOT 5
- Miration failed with "Character not allowed in mailbox name" HOT 1
- imap-backup with email-oauth2-proxy support in a container HOT 2
- Destination folders when Mirroring HOT 3
- Migrate stops without error HOT 3
- Flag refresher undefined method `each' for nil:NilClass HOT 5
- Single Backup with relying on configuration file HOT 1
- thunderbird export requires Thunderbird installaion? HOT 1
- Error during backup: incompatible character encodings: UTF-8 and ASCII-8BIT HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imap-backup.