Hello tor-onions,
I've been trying to set up email behind an onion service with (net)qmail. Receiving works, but I'd like to send mail to .onion addresses, using qmail as my MTA if possible. `torsocks sendmail` doesn't work here because qmail's `sendmail`-like doesn't do SMTP (see [1]).
Has anyone tried this? Would hacking a `qmail-remote` wrapper to exec `torsocks qmail-remote.original` work? Would transparent proxying be a bad idea?
It isn't critical that I get this to work. I just think it would be cool.
Thanks, copyleftie
Yes a wrapper for setting "LD_PRELOAD sendmail" if needed since some MUA's might not have a way to specify an env like that when calling out. Or LD_PRELOAD the MUA itself.
qmail-send is the sending side MTA parent daemon, not any sendmail-like (that MUA function is above).
Qmail can use piped progs in startup shell, lots of file descriptors and env vars. LD_PRELOAD thus needs applied in that context to each where applicable.
It should work once figured out.
Some people in onion / i2p have documented various MTA setups there.
Transproxy is big hammer kernel packet filter. LD_PRELOAD is fine tooth userland libs. Bad or good and which, is up to the user to determine.
tor-onions@lists.torproject.org