Last night I tried to get fetchmail to work on a router running OpenWRT (Kamikaze). Turns out that the fetchmail package is compiled without SSL support so it is impossible to get mails through a secure connection.
I couldn’t find a package of fetchmail compiled with SSL support anywhere, but fortunately I found instructions how to compile it and general instructions on building/cross-compiling for OpenWrt. In case anyone else has the same problem and is looking for the fetchmail package with SSL support:
here it is: http://rapidshare.de/files/40375553/fetchmail_6.3.9-rc2-2_mipsel.ipk.html
UPDATE: since so many people still ask for it, here’s a new link: https://drive.google.com/file/d/0B91DviyNgumNaWt0a2xoMGtvOHc/edit?usp=sharing. However, please be aware that this package hasn’t been updated for the last 5.5 years. I’m no longer using this particular package, so I haven’t followed if there are any security updates that should be applied.