SMTP Authorization Server / Feature Requests / NetSetMan Support

NetSetMan Support

Search for already answered questions about NetSetMan (Pro) or ask new ones

You are not logged in.

#1 2013-01-04 17:02

gibra
Member
Registered: 2009-08-01
Posts: 4

SMTP Authorization Server

Scenario:
- I have two WiFi connections, where each use a different provider, of course.
- Therefore I have created two profiles with success: Work and Home.
- On my email account I have set the 'nsm.smtp' as SMTP Server.

BUT

- on the Work server 'SMTP Authorization' is required.
- on the Home server 'SMTP Authorization' is NOT required.

So, my problem is that when I switch profile Home to Work (and vice versa) I'm always forced to disable/enable SMTP Authorization on my email account... sad

There is a way to avoid this problem?
Or, have you planned to solve it?

Thank you
Gibra


smile
____________________________
NetSetMan 3.5.2 (registered)

Offline

#2 2013-01-05 11:44

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: SMTP Authorization Server

We actually has this question a couple of times already.
Here's my reply from this thread:

Ilja Herlein wrote:

The intention of the SMTP feature is to allow using an SMTP server that has a different IP from within a network (e.g. in a company 10.0.0.1) and from outside that network (e.g. 123.456.78.90).

If you need to have completely different SMTP settings, I'd recommend to setup different profiles for that and use either one or the other depending on your location.

Since each of the many email clients has it's own way to manage its settings and either doesn't allow to have them changed by other software or at least not while the client is running, it makes it rather unattractive to try to extend the functionality apart from the SMTP address.

Online

#3 2013-01-06 00:08

gibra
Member
Registered: 2009-08-01
Posts: 4

Re: SMTP Authorization Server

Thank for reply.
Then I must to make two VBScript to add/remove "SMTP Use Auth" into Registry when I active (toogle) the Profil.

Bye.


smile
____________________________
NetSetMan 3.5.2 (registered)

Offline

#4 2013-01-06 12:23

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: SMTP Authorization Server

You're welcome to share your scripts here in case other users stumble across this thread having the same question. smile

Online

#5 2013-01-06 18:10

gibra
Member
Registered: 2009-08-01
Posts: 4

Re: SMTP Authorization Server

Ilja Herlein wrote:

You're welcome to share your scripts here in case other users stumble across this thread having the same question. smile

Simple:

First, we need to find where key SMTP Use Auth is stored.
On my pc (Windows7 64 bit + Outlook 2010) I founded this key under:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000003

Caution: if the SMTP Use Auth isn't enabled, the key will not found, because the key is removed from Registry.
The key appear only when SMTP Use Auth is enabled.
Fortunately, there aren't other keys named 'SMTP Use Auth', so we can't do any confusion. wink


Second, now we can make two VBS script:

1) SMTPAuthorizationOFF.vbs (remove key from registry)

dim WshShell 
dim sRoot
sRoot = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000003"

Set WshShell = CreateObject("Wscript.Shell")
WshShell.RegDelete sRoot & "\SMTP Use Auth"
Set WshShell = Nothing

2) SMTPAuthorizationON.vbs (add key into registry)

dim WshShell 
dim sRoot
sRoot = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000003"

Set WshShell = CreateObject("Wscript.Shell")
WshShell.RegWrite sRoot & "\SMTP Use Auth", 1, "REG_DWORD"
Set WshShell = Nothing

N.B As you can see when user disable manually SMTP Authorization from email client (i.e. Outlook), the KEY will not set to 0, but will complety removed from Registry, instead.

Unfortunately, if Outlook is running, though this being written correctly in the Registry Outlook must be restarted to update the setting.


Hope to help.
wink


smile
____________________________
NetSetMan 3.5.2 (registered)

Offline

#6 2013-01-06 19:55

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: SMTP Authorization Server

gibra wrote:

Hope to help.

Thanks! smile

Online