Giter VIP home page Giter VIP logo

Comments (3)

joeyates avatar joeyates commented on June 25, 2024

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.

airdogvan avatar airdogvan commented on June 25, 2024

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.

joeyates avatar joeyates commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.