unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jonathan Groll <lists@groll.co.za>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: SMTP with SOCKS proxy?
Date: Thu, 31 Jul 2014 10:53:42 +0200	[thread overview]
Message-ID: <87egx1rjs9.wl%lists@groll.co.za> (raw)
In-Reply-To: <m28unbkwy8.fsf@top-wifi.irisa.fr>

On Wed, 30 Jul 2014 11:38:55 +0200, Alan Schmitt <alan.schmitt@polytechnique.org> wrote:

> [1  <text/plain (quoted-printable)>]
> On 2014-07-30 03:51, Leon Baum <leonbaum2@gmail.com> writes:
> 
> > I use the mu4e mail reader with the native emacs SMTP library.  I would
> > like to configure SMTP to use a SOCKS proxy so that I can send my email
> > with tor.  I don't see any configuration options in the documentation.  Is
> > this not possible?
> 
> I'm also very interested in this. I tried several approaches to have
> emacs network connexion use a SOCKS proxy, and both failed.
> 
> What I tried:
> 
> 1. From within emacs
> 
> #+begin_src emacs-lisp
> (setq socks-override-functions 1)
> (setq socks-noproxy '("localhost"))
> (require 'socks)
> #+end_src
> 
> (source: http://www.emacswiki.org/emacs/ErcProxy)
> 
> Trying to open a server using erc-tls then failed, because of an extra
> argument ":tls" in the open-network function call.
> 
> 2. From outside emacs
> 
> I started emacs with torsocks. Unfortunately launching gnus failed
> because I was not able to decrypt authinfo.gpg.
> 
> I would prefer a solution from inside emacs (solution 1) but I don't
> know if it's possible.
> 

Two good possibilities from outside Emacs that I have used are:
- proxychains - see http://proxychains.sourceforge.net/

You'll first have to start a proxychains shell or subshell where all
connections in that shell are routed through the SOCKS proxy. Then
launch Emacs from that shell.

- tun2socks - see https://code.google.com/p/badvpn/wiki/tun2socks 

I'm really fond of this one, but it is more tricky to install than
proxychains. "tun2socks is used to "socksify" TCP (IPv4 and IPv6)
connections at the network layer. It implements a TUN virtual network
interface which accepts all incoming TCP connections (regardless of
destination IP), and forwards them through a SOCKS server."

Disclaimer: never used either of them for SMTP specifically , but
can't see why it won't work.

Cheers,
Jonathan
--
jjg: Jonathan J. Groll : groll co za
has_one { :blog => "http://bloggroll.com" }
Any other Disclaimer in this mail is Wrong.




      reply	other threads:[~2014-07-31  8:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30  1:51 SMTP with SOCKS proxy? Leon Baum
2014-07-30  9:38 ` Alan Schmitt
2014-07-31  8:53   ` Jonathan Groll [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87egx1rjs9.wl%lists@groll.co.za \
    --to=lists@groll.co.za \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).