unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* SMTP with SOCKS proxy?
@ 2014-07-30  1:51 Leon Baum
  2014-07-30  9:38 ` Alan Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Leon Baum @ 2014-07-30  1:51 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

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?

Thanks,
Leon


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SMTP with SOCKS proxy?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Schmitt @ 2014-07-30  9:38 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

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.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SMTP with SOCKS proxy?
  2014-07-30  9:38 ` Alan Schmitt
@ 2014-07-31  8:53   ` Jonathan Groll
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Groll @ 2014-07-31  8:53 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-31  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).