Public bug reported:

Fetchmail works over Tor but only if the server is a clearnet host.  So for 
example a Yahoo config might look like this:
```
poll imap.mail.yahoo.com
        plugin         "socat STDIO SOCKS4A:127.0.0.1:%h:%p,socksport=9050"
        protocol       imap
        port           993
        interval       3
        username       "billyikes"
        ssl
        sslcertck
        sslfingerprint "6F:C8:F1:EB:A0:55:3D:35:5B:2E:31:7F:6B:F8:A3:B4"
        fetchall
```
If the server is an onion server, it's a disaster because fetchmail attempts to 
resolve the hostname internally and it can't handle *.onion hosts.  The 
following gives an error like "cannot resolve":
```
poll underwood2hj3pwd.onion
        plugin         "socat STDIO SOCKS4A:127.0.0.1:%h:%p,socksport=9050"
        protocol       imap
        port           993
        username       "billyikes"
        fetchall
```
The documentation does not state that hostnames must be clearnet hostnames.  So 
at the very minimum that limitation should be documented.  But really, Tor 
should be supported officially and ideally without the "plugin" hack.  This is 
the workaround:
```
skip underwood-onion via 127.0.0.1
        protocol       imap
        port           12345
        username       "billyikes"
        fetchall
```
run:

socat TCP4-LISTEN:12345,reuseaddr,fork
SOCKS4A:127.0.0.1:underwood2hj3pwd.onion:110,socksport=9050 &

then run "fetchmail underwood-onion".  It's a nasty hack.. makes daemon mode 
problematic because a socat tunnel can't just be left up indefinitely.  We 
should be able to write something like:
```
poll underwood2hj3pwd.onion
        socks4a        127.0.0.1:9050"
        protocol       imap
        port           993
        username       "billyikes"
        fetchall
```

** Affects: fetchmail (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1924609

Title:
  onion sites inaccessible due to internal DNS lookup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fetchmail/+bug/1924609/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to