After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 601898 - SOCKS proxy does not work with mailer
SOCKS proxy does not work with mailer
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
2.32.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 663713 670949 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-11-14 13:11 UTC by Jean-François Fortin Tam
Modified: 2012-05-17 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
eds patch (9.83 KB, patch)
2011-09-30 12:06 UTC, Milan Crha
committed Details | Review
evo patch (18.11 KB, patch)
2011-09-30 12:08 UTC, Milan Crha
committed Details | Review

Description Jean-François Fortin Tam 2009-11-14 13:11:05 UTC
I think a couple of proxy bugs were fixed lately in the 2.26 and 2.28 releases, but I still don't see my socks proxy being used for mails (my main usage of evolution), so here I go.

Some info to reproduce/test:

1. have a machine that will be used as the remote SSH host
2. SSH into it, by running this in a terminal (keep the terminal open): 
ssh -v -N -D 8000 the-remote-host 

3. go in gnome's proxy settings (gnome-network-properties)
4. set the mode to "manual proxy configuration"
5. set the "socks host" to localhost, port 8000 (leave the other proxy types
blank)
6. make the terminal (the one with the ssh tunnel running in it) show "always
on top" so you can see its activity at all times
7. use evolution and check your mail, notice that nothing happens in the terminal. It seems to bypass/ignore the proxy.
8. use pidgin, chromium-browser, firefox: notice that activity shows up in the terminal where SSH is running (new "channels" are opened, etc.), indicating that it indeed uses the socks proxy
Comment 1 Jean-François Fortin Tam 2009-11-15 02:55:19 UTC
Ah, and I had filed this bug as separate from bug #578429 because it's not about SMTP... I mean, when evo starts, it checks my POP3 and IMAP mail accounts for new incoming mail, and those should have triggered the proxy.
Comment 2 Stanislas Couix 2010-03-25 11:49:33 UTC
I can confirmed that evolution 2.28.x doesn't use proxy settings, but I use different steps to reproduce it :

1. Your system must not work under a proxy : it must work with direct connection
2. Set an imaginary proxy.

Evolution shouldn't be able to collect & send mails. But it is ! incredible !
Evolution doesn't use proxy settings. 
It's very annoying but for people working under proxy. Evolution 2.28 is not usable at most large buisness units or universities.

I have to downgrade to 2.26.x to make it work, very very annoying
Comment 3 Akhil Laddha 2010-10-01 08:55:46 UTC
Fedrico has committed many changes related to SOCKS support in Evolution 2.32.0. You may want to try out current stable version 2.32.0
Comment 4 Milan Crha 2011-01-06 10:31:47 UTC
Downstream bug report about the same from 2.31.90 (which I believe is same as 2.32.0 with respect of proxy changes):
https://bugzilla.redhat.com/show_bug.cgi?id=628664
Comment 5 Jesse Brandeburg 2011-01-07 21:46:44 UTC
The bug I filed at redhat is the opposite of the OP of this bug.  It looks like evolution has now added support for using the proxy settings, but the problem is that either the exclusion rules (for excluding for instance your local domain from IMAP proxy) don't work, and/or it is extremely difficult to debug when you're just timing out using IMAP due to using proxy settings.

Its neat that we have proxy support but it should just be specified in the server config dialogs.  (like a "use system proxy to connect to this imap server")
Comment 6 Milan Crha 2011-09-30 12:06:06 UTC
Created attachment 197868 [details] [review]
eds patch

for evolution-data-server;

a) adds SOCKS proxy support into EProxy
b) makes camel_session_get_socks_proxy a virtual method of CameSession, with
   a new parameter 'for_host', thus the proxy is determined on demand for each
   connection, being able to avoid proxy usage for certain hosts (with
   the ignore-list from preferences).
Comment 7 Milan Crha 2011-09-30 12:08:04 UTC
Created attachment 197870 [details] [review]
evo patch

for evolution;

a) Adds UI elements into Edit->Preferences->Network Preferences for SOCKS proxy
b) defines the CamelSession::get_socks_proxy with help of EProxy
Comment 8 Milan Crha 2011-09-30 12:09:51 UTC
Created commit 4726edc in eds master (3.3.1+)
Created commit 2def4a7 in evo master (3.3.1+)
Comment 9 Milan Crha 2011-11-21 17:25:15 UTC
*** Bug 663713 has been marked as a duplicate of this bug. ***
Comment 10 Milan Crha 2012-05-17 18:21:53 UTC
*** Bug 670949 has been marked as a duplicate of this bug. ***