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 510909 - Default SMTP server based on NetworkManager SSID
Default SMTP server based on NetworkManager SSID
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Mailer
2.12.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[smtp]
: 324068 336827 668301 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-01-20 22:20 UTC by Thomas Perl
Modified: 2021-05-19 11:37 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Thomas Perl 2008-01-20 22:20:14 UTC
Evolution should have an option to set the SMTP server based on which Access Point I'm connected to. Detecting which access point I'm connected to is as simple as querying the NetworkManager D-BUS interface (or by using a platform-specific method like "iwconfig").

The reason is that many ISPs provide SMTP servers that work from their network, but not from any other network. When I'm going back and forth between two ISPs, I will have to change the SMTP server for the mail accounts every time. That's very annoying.

Even the default E-Mail client on the Nokia N800 (OS2008) has this functionality built-in. The configuration should probably look something like this:

Current access point: [MyHomeNetwork____]  [ + Add SMTP ]

Configured Access Points:
+---------------------+-------------------------+
| Network name        |  SMTP Server            |
+---------------------+-------------------------+
| MyCompany           |  smtp.compa.ny          |
| Starbucks           |  mail.free.doma.in      |
| JohnsPlace          |  smtp.telecom.net       |
+---------------------+-------------------------+
Comment 1 Lionel Dricot 2008-02-24 15:21:05 UTC
I was in the process of reporting a similar feature request. Not sure if it must be reported against n-m.
Comment 2 Lionel Dricot 2008-02-24 15:22:45 UTC
Oh, BTW, this is not only an enhancement but a real bug.

My mother called me because she was unable to send email, the error was cryptic. After one full day of investigation and calling the ISP helpdesk, we discovered that she was connected on a neighbour unprotected wifi which uses another ISP.
Comment 3 Thomas Perl 2008-04-26 05:57:15 UTC
I have to change my SMTP server every week when I'm changing location (home at the weekends, university during the week) and Evolution doesn't even give a proper error message when the SMTP server returns "sorry, relaying from your IP not permitted" (because these SMTP servers allow mail from your host if you are in the ISP's subnet). It is really annoying to have to change that.

If not intelligently via D-BUS, it would be at least nice to have a button or menu entry that acts like this Firefox button:
https://addons.mozilla.org/en-US/thunderbird/addon/2234

Or maybe this can easily be implemented using a Plug-In? If so, can you please point me to the plugin documentation, so that I can have a look at implementing this?
Comment 4 Thomas Perl 2008-05-01 06:58:52 UTC
This bug still exists in 2.22.1.
Comment 5 Thomas Perl 2008-05-01 08:51:54 UTC
I've written a quick-and-dirty script that does this, although it has to be called manually when changing the network:

http://thpinfo.com/2008/evolution-smtp/

This can surely be improved to run as a background process, watching network manager for changes and updating the gconf key for evolution accordingly.
Comment 6 Matthew Barnes 2010-10-13 21:03:30 UTC
*** Bug 336827 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2012-02-08 12:28:33 UTC
*** Bug 668301 has been marked as a duplicate of this bug. ***
Comment 8 André Klapper 2012-05-18 13:00:02 UTC
*** Bug 324068 has been marked as a duplicate of this bug. ***
Comment 9 Christian Schaarschmidt 2015-01-05 12:16:19 UTC
bugs based on similar use case: Bug 386217, Bug 270896, Bug 321016
Comment 10 André Klapper 2021-05-19 11:37:43 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. 
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/evolution/-/issues/

Thank you for your understanding and your help.