GNOME Bugzilla – Bug 510909
Default SMTP server based on NetworkManager SSID
Last modified: 2021-05-19 11:37:43 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 | +---------------------+-------------------------+
I was in the process of reporting a similar feature request. Not sure if it must be reported against n-m.
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.
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?
This bug still exists in 2.22.1.
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.
*** Bug 336827 has been marked as a duplicate of this bug. ***
*** Bug 668301 has been marked as a duplicate of this bug. ***
*** Bug 324068 has been marked as a duplicate of this bug. ***
bugs based on similar use case: Bug 386217, Bug 270896, Bug 321016
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.