onion sites inaccessible due to internal DNS lookup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fetchmail (Ubuntu) |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
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:
protocol imap
port 993
interval 3
username "billyikes"
ssl
sslcertck
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 underwood2hj3pw
plugin "socat STDIO SOCKS4A:
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:
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 underwood2hj3pw
socks4a 127.0.0.1:9050"
protocol imap
port 993
username "billyikes"
fetchall
```
Bill, fetchmail relies on the system resolver so if that cannot resolve .onion hosts, that's bound to fail. You are not telling fetchmail to avoid name resolution.
Please provide information how exactly and which fetchmail version fails in your << poll underwood2hj3pw d.onion plugin "socat STDIO SOCKS4A: 127.0.0. 1:%h:%p, socksport= 9050" >> scenario (logging and/or transcript from the console), see https:/ /www.fetchmail. info/fetchmail- FAQ.html# G3
We may then decide if it's a Ubuntu or upstream issue to be filed to the Debian or Gitlab project issues.