Proxy Settings - Networking

Hello
I hope I'm posting this in correct area!
I have several WM devices (6.1 and 6.5, Professional and Standard - e.g. Touch 2, Snap, Tytn2), connecting to an exchange server for mail, calendar etc, and they also go through a proxy server for web access .
I want to find an easy way to change proxy server settings on them all without having to go in and manually change proxy server IP address and Port. I've done some searching on here and web in general, and subsequently messed around with creating a CAB file, and an XML provisioning file but neither worked (I found some provider specific proxy settings in registry but maybe these are red herring?)
Then I realised my creations would probably never work anyway because they're unsigned apps which aren't allowed on devices connecting to my exchange server!
Am I missing an obvious and much easier method? Any ideas on best way to approach this?
Thanks in advance
Mantog

Very nice idea, but I don't know a solution.
Where are the IP-adresses stored?
If it works with registry settings, a cab file should be sufficent.
I'm trying to find a way to do this, but hopefully someone already has a solution.
playdo

Related

where are mailsettings and/or hosts-file stored?

Hello,
I'm trying to figure out where the mail settings (in particular the SMTP server) is stored. I was thinking of using MobileProfiler to create different profiles, which I could use to change my SMTP server: if I connect via wifi, I need a different one than if I connect via gprs.
With TotalCommander, I searched through the registry and through the file system, but didn't locate anything.
Any thoughts on where this is stored (and if it is readable)?
Alternatively, I was looking for a "hosts"-file (like in Windows, which links hostnames to ip addresses), as one can modify this to get ip-address to change as one wants. But again no luck...
So, is there a place were this ip/hostname information is stored?
Thanks!
Jörg
V J said:
Hello,
I'm trying to figure out where the mail settings (in particular the SMTP server) is stored. I was thinking of using MobileProfiler to create different profiles, which I could use to change my SMTP server: if I connect via wifi, I need a different one than if I connect via gprs.
With TotalCommander, I searched through the registry and through the file system, but didn't locate anything.
Any thoughts on where this is stored (and if it is readable)?
Click to expand...
Click to collapse
It is. Please see my WinCE database & Messaging-related articles. I've described most of this stuff at http://www.pocketpcmag.com/blogs/index.php?blog=3&p=231&more=1
Alternatively, I was looking for a "hosts"-file (like in Windows, which links hostnames to ip addresses), as one can modify this to get ip-address to change as one wants. But again no luck...
So, is there a place were this ip/hostname information is stored?
Thanks!
Jörg
Click to expand...
Click to collapse
http://www.freewareppc.com/utilities/pockethosts.shtml
Thanks!
Haven't read your article yet in full detail (just glanced quickly), but does that pmailfolders file also deal with the SMTP servers? (I currently have not yet downloaded mails to this device, and I can't seem to find the databasefile (despite the fact that all settings are all set)
If it does, is it possible to change its contents from e.g. MobileProfiler:
http://www.iaccarino.de/silvio/stuff/MobileProfilerReadme.htm
without corrupting the databasefile?
(I'm not a software developer, I just would like to be able to switch/choose my smtp server)
The hosts-file utility does seem like an easier way out, but I'll have to read up more on it. I could my a file for each smtp profile I have (in each file I would put same server name, different ip address), but then I need a way telling the device which of the files to use now. MobileProfiler allows for files to be copied (they illustrate it for Opera-settings), so perhaps.......
Oh, do you know if it is WM5 compatible?
For the time being, do you know an easy workaround? On my Symbian S60 phone, every message had "Sending options", which included the account via which it was sent. I just changed the option to the server I needed to use for the active internet connection, and I could send the file. I can't do this trick on my TyTN...
Jörg
V J said:
Thanks!
Haven't read your article yet in full detail (just glanced quickly), but does that pmailfolders file also deal with the SMTP servers? (I currently have not yet downloaded mails to this device, and I can't seem to find the databasefile (despite the fact that all settings are all set)
If it does, is it possible to change its contents from e.g. MobileProfiler:
http://www.iaccarino.de/silvio/stuff/MobileProfilerReadme.htm
without corrupting the databasefile?
(I'm not a software developer, I just would like to be able to switch/choose my smtp server)
The hosts-file utility does seem like an easier way out, but I'll have to read up more on it. I could my a file for each smtp profile I have (in each file I would put same server name, different ip address), but then I need a way telling the device which of the files to use now. MobileProfiler allows for files to be copied (they illustrate it for Opera-settings), so perhaps.......
Oh, do you know if it is WM5 compatible?
For the time being, do you know an easy workaround? On my Symbian S60 phone, every message had "Sending options", which included the account via which it was sent. I just changed the option to the server I needed to use for the active internet connection, and I could send the file. I can't do this trick on my TyTN...
Jörg
Click to expand...
Click to collapse
You should have started right with this
The Messaging databases are pretty hard to (easily) change in WM5 and there are no tools (that I know of) that would do what you need.
Therefore, you REALLY want to check out alternate browsers; most importantly, Qmail. The latter has an XML-based config file mechanism; this means your thirs-party profiler tool only needs to do some very simple file copy/rename operations to completely and easily switch between SMTP servers. Highly recommended!
Please also check out my Mailer Roundup and other, newer mail-related articles; I've published several articles on alternate clients.
Cool, thanks!
Weird though that all these devices (WM5, Symbian, ...) consider a SMTP server to be a property of the mailbox, rather than of the access point. Surely I'm not the only one who needs to change SMTP servers for different access points.
Again, thanks for the help, I'll search for a mailclient that offers better support for this (I'll check out Qmail too).
Jörg
I'm now running QMail, and this seems to sort out all of my problems.
In it, I can still change the account by which a mail is sent (so I can go back to using dummy-accounts like I did before), but I no also have the option to go for the more advanced profile setup using MobileProfiles.
Thanks!!!
(it made the device so much more usable for me)
Jörg

how do you guys switch smtp server?

Hello,
This may be a strange question, but how do you guys switch SMTP servers? I'd like to access the same mailbox over different connections (gprs, 2 different wifi). Reading mails is not an issue.
But for sending them, I need a different SMTP server for each of the connections (as I suspect everybody does). On my symbian phone, I could change the sending options of a mail, and one of the options is the mail-account used to send it. But this is not possible on the built in Outlook.
How do you guys do it?
(I'm planning to use QMail, which does support changing the account by which a mail is sent; but to make it more comfortable I also am working on a MortScript to change account settings when I want. There were some certificate issues in configuring QMail, but I think I solved it. The reason switching is important to me, is that my GPRS subscription has a volume limit, above which I have to pay extra. So if I can use an alternate connection, I prefer this.)
Jörg
V J said:
Hello,
This may be a strange question, but how do you guys switch SMTP servers? I'd like to access the same mailbox over different connections (gprs, 2 different wifi). Reading mails is not an issue.
But for sending them, I need a different SMTP server for each of the connections (as I suspect everybody does). On my symbian phone, I could change the sending options of a mail, and one of the options is the mail-account used to send it. But this is not possible on the built in Outlook.
How do you guys do it?
(I'm planning to use QMail, which does support changing the account by which a mail is sent; but to make it more comfortable I also am working on a MortScript to change account settings when I want. There were some certificate issues in configuring QMail, but I think I solved it. The reason switching is important to me, is that my GPRS subscription has a volume limit, above which I have to pay extra. So if I can use an alternate connection, I prefer this.)
Jörg
Click to expand...
Click to collapse
Exactly the same q was aksed either here or some other PPC forum some days ago.
My answer (I pretty much know everything about mailer clients and internal database / file formats - see http://www.pocketpcmag.com/blogs/index.php?blog=3&p=569&more=1&c=1&tb=1&pb=1 ) is as follows: just switch your Qmail config files (the one that contains the SMTP server) from, say, a Mort script and restart Qmail.
If your mail server supports SMTP Auth, u don't need to do anything.
In the config pages, click on "my outgoing server requires authentication" then click on "use same settings as incomming"
Should solve the problem IF the smtp supports authentication.
Menneisyys:
Yes, that was my post (sorry, I should have linked to that particular thread). I'm just wondering if I'm the only one finding this a huge issue. Either way, I'm writing scripts as we speak (couldn't have done it without you referring to QMail). I also like to show on the today-screen which "smtp-profile" is active (found some ways of doing this too), and while I'm at it the script will also change PIE settings (not load images on gprs, load images on wifi). I'll make the necessary steps (along with the scripts and required softwares) in some tutorial, for reference.
(I had some issues with QMail, but I needed to add the certificate for my servers first).
armedmetallica said:
If your mail server supports SMTP Auth, u don't need to do anything.
Click to expand...
Click to collapse
Yes, but neither my mobile operator, nor my work, nor my analog dialup provider (still need it) support smtp authoring... Come to think of it, I could always set up a VPN to my work, which will allow me to use their mail server (but the VPN is also traffic limited, and sometimes VERY slow)...
Jörg
V J said:
Menneisyys:
Yes, that was my post (sorry, I should have linked to that particular thread). I'm just wondering if I'm the only one finding this a huge issue. Either way, I'm writing scripts as we speak (couldn't have done it without you referring to QMail). I also like to show on the today-screen which "smtp-profile" is active (found some ways of doing this too), and while I'm at it the script will also change PIE settings (not load images on gprs, load images on wifi). I'll make the necessary steps (along with the scripts and required softwares) in some tutorial, for reference.
(I had some issues with QMail, but I needed to add the certificate for my servers first).
Yes, but neither my mobile operator, nor my work, nor my analog dialup provider (still need it) support smtp authoring... Come to think of it, I could always set up a VPN to my work, which will allow me to use their mail server (but the VPN is also traffic limited, and sometimes VERY slow)...
Jörg
Click to expand...
Click to collapse
Did you finally manage to achieve with something useful ... ? I'm in the same situation and looking for something easy to use to switch from one SMTP to another depending on the channel used (3g or Wifi).
Unfortunately, no...
My current solution is to use my work server: it requires me to set up a VPN first and then log on to it. When doing so, I can use it from anywhere; it works but is far from efficient (starting the VPN takes some time).
I thought of using a windows mobile program to have the equivalent of the hosts file in Windows (this is a small hackers trick: configure the software with a dummy name, and use the hosts file to have this resolve to the IP address you want), but it doesn't allow for easy switching, particularly as I needed a logon for one server. If you need this hosts utility, I should search for it (let me know if you need it); but it doesn't make switching that much easier from changing the settings in the mail client.
A possibility could be to use QMail as the mail client, but this is not possible for me due to some security settings I need (it never could download the mail bodies).
Jörg
Did the Mortscript avenue not pan out? I would of thought this would be something that it could easily solve.
Yes, but apparently the SMTP server settings are not stored in the registry, but in the outlook file which holds the account settings.
Editing this file is possible (founds some references on it), but generally not recommended as it easily is corrupted.
Jörg
gmail's servers?
V J said:
Yes, but apparently the SMTP server settings are not stored in the registry, but in the outlook file which holds the account settings.
Editing this file is possible (founds some references on it), but generally not recommended as it easily is corrupted.
Jörg
Click to expand...
Click to collapse
can't you just setup a gmail account, enable it for POP access, and use their provided SMTP server with your gmail username/password? leave incoming via POP on your existing one...
V J said:
Unfortunately, no...
My current solution is to use my work server: it requires me to set up a VPN first and then log on to it. When doing so, I can use it from anywhere; it works but is far from efficient (starting the VPN takes some time).
I thought of using a windows mobile program to have the equivalent of the hosts file in Windows (this is a small hackers trick: configure the software with a dummy name, and use the hosts file to have this resolve to the IP address you want), but it doesn't allow for easy switching, particularly as I needed a logon for one server. If you need this hosts utility, I should search for it (let me know if you need it); but it doesn't make switching that much easier from changing the settings in the mail client.
A possibility could be to use QMail as the mail client, but this is not possible for me due to some security settings I need (it never could download the mail bodies).
Jörg
Click to expand...
Click to collapse
Well ... no thanks ... I'd like very much to have something easy to use ...
It is like to make sure that when wifi is available than use wifi and drop GPRS.
We can then easily imagine that knowing about an available existing Wifi network, the soft should be able to automatically modify the smtp server accordingly, switching back to "normal" when out of the coverage of the WIFI network ... not really a big deal for good programmer, a trip to the moon for me ...
thanks anyway for your proposal ... wait and see what clever people will bring to us
landwomble said:
can't you just setup a gmail account, enable it for POP access, and use their provided SMTP server with your gmail username/password? leave incoming via POP on your existing one...
Click to expand...
Click to collapse
That wasn't an option for me: my incoming mailserver requires a VPN connection (when using the wifi at work). I think that some internet traffic over the VPN is blocked, preventing me from accessing another SMTP server.
DR400 said:
We can then easily imagine that knowing about an available existing Wifi network, the soft should be able to automatically modify the smtp server accordingly, switching back to "normal" when out of the coverage of the WIFI network ... not really a big deal for good programmer, a trip to the moon for me ...
thanks anyway for your proposal ... wait and see what clever people will bring to us
Click to expand...
Click to collapse
Hehe...
The easiest thing would be something more userfriendly that exploits the possibiliy of using the "hosts" file to alter the IP address of the SMTP server (this is how most of the network switching tools on laptops do it). The downside to this approach is that you cannot change logon settings. In order to do this, they need to be able adjust the settings in the mailclient; either via some interface (not sure this is available), or by altering the configuration file.
Jörg
The gmail route absolutely works for me - no mucking about with scripts etc. I followed this link (http://lifehacker.com/software/email-apps/how-to-use-gmail-as-your-smtp-server-111166.php)
only difference is that the smtp is [email protected]. Follow the instructions to set up gmail with your primary address and bingo.
Robert

[UPDATED 2009-11-24] Company proxy problem - there is a solution (start checking #2)

Hi all,
As far as I know anybody that needs to connect to the internet through a company proxy (3G or wifi), using Win Mobile 6.1 or 6.5, is facing "big problems".
From what I found doing some searches here in xda and in the internet this seems to be due:
- to a "bug" in the proxy configuration sw that keeps to "0" (instead of "1") the "Type" field of the HTTP-{xxxxxxx} key in HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{EF097F4C-DC4B-4c98-8FF6-AEF805DC0E8E}. In other words is like keeping NullProxy configuration insead of HTTP... But this seems to be an "old bug", now the correct configuration is properly saved (I checked in the 6.5 rom I am using and I can confirm).
- But even if the correct configuration is there the proxy password it is ignored, at least for HTTP (source: http://msdn.microsoft.com/en-us/library/aa455855.aspx )
For that reason, in my experience, the only programs that can access the net are Internet Explorer and Opera, that allow the user to insert account and pw of the proxy and go ahead... And this should confirm that only the configured proxy address is properly used, not the stored account and password...
But now the "surprise":
I can confirm that the following 4 roms ALLOWED ME TO SURF THE NET TRHOUGH A PROXY WITHOUT ANY PROBLEM !!!
I mean update the weather, use GoogleMaps, use MusicID, check sw updates, update GPS data... and so on !!!
The named roms (for the HD) are:
WM 6.5: (NEW !!!)
[ROM][WWE] XannyTechROM GRID LEO M2.5 ROMS (all versions)
(Note: only with the proxy password saved also in Internet Explorer...)
WM 6.1:
[ROM][WWE][24.07.09][21051.1.6.4]-=® panosha ® =-Black Pearl v 3.4 ("open" ROM, as the author says in his first post)
[ROM][ITA][14/04/2009] LP HD EVO II (5.2.21041 build 21042) Latest Manila
And now the question, as the solution must exist:
Where should we look to find the proper configuration in order to finally use it in all other roms ??
I started checking from the registry, but with no success..
I really hope to see some interest in this, as I understand it is not a "really common" problem...
Regards,
K
THE SOLUTION ... or at least the "very beginning" of it !!
I start suspecting that when the proxy password is saved also in Internet Explorer the chances to be able to use a company proxy with password are increasing... but I still do not understand...
What follows is what I noticed:
- In the WM 6.5 XannyTech ROMs I am using before saving the IE proxy password ONLY the quick GPS update was working (weather update, google maps, ecc. were not able to connect...). This actually means that both account and password of the configured proxy where properly used... but only from the quick GPS progam...
- When I saved the IE proxy password ALL programs that are using the network properly worked... that means that all programs properly red the proxy address stored in the "network section" and the proxy password from IE...
Can somebody try with other ROMs ??
Regards,
K
PS: And why with other ROMs this does not seem to allways happen ??
me 2, the same issue.
I have been trying but still unsuccessfull.
I hope someone can find the solution for this.
Found new rom working
I found another HD rom working properly:
[ROM][WWE] XannyTechROM GRID LEO 1.7b M2.5
So, as I said, a solution exists... but where ??
Regards, K
(PS: First post updated)
Updated post #2
K
PS: Actually I wrote this post mainly to keep the thread "in the first page"... sorry about that !
I'm using Kisja's WM6.1 ROM (thread) and cannot get proxy to work at my university. I can access local sites, which probably means that there is something wrong with the proxy settings.
But here comes the weird thing: I can check mail through the standard WM e-mail client, and this works great, but I cannot update Manila weather nor surf the web! I've tried both Opera and IE without success.
longice said:
I'm using Kisja's WM6.1 ROM (thread) and cannot get proxy to work at my university. I can access local sites, which probably means that there is something wrong with the proxy settings.
But here comes the weird thing: I can check mail through the standard WM e-mail client, and this works great, but I cannot update Manila weather nor surf the web! I've tried both Opera and IE without success.
Click to expand...
Click to collapse
Just to be sure that I understood: are you using account and password to connect to the proxy, or only the address ?
In may case, I use account and password.
And, just to share, some other little things:
- Not all programs are working through a proxy with account and password... for example Midomi works only through a proxyless connection
- This, toghether with what alreay noticed in the previous posts, confirms that there are programs able to use WM proxy configuration and others not...
We will see...
K
I think that it may be based on the WM build # and what has been removed.
I know I would try dasense's daG's latest kitchen (or equivalent for your phone) without excluding any windows sys packages or certs and running the latest com5 build. 23515.5.5.0
Everything that I've tried works through my company proxy currently.
kostas66 said:
a "bug" in the proxy configuration sw that keeps to "0" (instead of "1") the "Type" field of the HTTP-{xxxxxxx} key in HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\
Click to expand...
Click to collapse
If found the responsible for this (at least from what I'm seeing : you have a company proxy set up on your USB ActiveSync connection and as soon as you do a sync the "Type" field goes from "1" to "0" thus disabling the proxy.
You'll find a key in "HKEY_LOCAL_MACHINE\Services\App\Tasks" that is something like "DisableProxy", delete this key, restart the phone and you'll be all right.
It seems to me that this is a HTC feature; on some rom it is enabled, not on others... go figure (and I don't know why such a feature exists)
Regards,
Stéphane.
thanks alot
Hello all, I found the solution.
You must:
set the proxy in the APN configuration
connect to the net via Internet Explorer
fill the username and password in Internet Explorer and SAVE it
that's all
This worked for me with the plain rom in the HTC HD2

How do I setup proxy on wifi?

Is there a working solution for this? cos i've searched the forum and apparently there is none. Can't believe the latest HTC Hero, the best android phone HTC can offer currently, has no proxy setting on wifi. It's like a big joke to me. I wish I had researched before I bought it
anyway, I've tried the "any cut" to create a shortcut to proxy settings and set accordingly, doesn't work.
Please anyone if you have a working solution, please share it with us.
openvpn
http://android.modaco.com/content/software/291919/openvpn-on-android/
thanks for you help.
but I dont think openvpn is the answer here...because in many places (my office for one) you can only access the web through a http proxy server. and htc hero doesn't allows that. not to mention the openvpn thing, which only works by connecting to a certain port which obviously is not allowed in such environment. openvpn can connect to a 443 port too but hey, we need to have a working http proxy first then we can connect using https, and the proxy server need to support https proxy...but that's not relevant here. so i cut the crap.
thanks anyway
any other solution to this android can't support proxy settings on wifi thing?
I don't know if this could work but try to mount the filesystem with write access through adb (I don't know how to do that), find one file that is used as a startup script (I don't know which one is it either) and place the following lines there:
Code:
export http_proxy=http://myproxy:port
export ftp_proxy=http://myproxy:port
Reboot the device, open a terminal (in the device) and type echo $http_proxy and see if outputs what is supposed to. If it does, maybe you're all set and you just need to test the web and see if it really works.
Sorry for not being able to help you with some of the steps but this is my basic linux knowledge kicking in, my android linux knowledge is below basic and I have no time to explore it further at the moment.
I'm curious about the results though .
http://code.google.com/p/proxysetting/
EDIT: doesn't work on cupcake apparently.

Activesync configuration via APK file

Hi all,
I'm trying to find a way to make Activesync configuration a little easier for people using Android handsets. In my organisation, there are 2 aspects I need to configure.
Firstly, we use a custom APN. Secondly, a lot of people run into trouble typing in details manually. Ideally, I would like to create an APK file that I can place on a website, SMS the URL to the end user, and they install the file, which configures everything except their username and LAN Password.
Is this possible, or am I dreaming? I have accomplished the same for iPhone and Windows Mobile, so I'd like to add Android to the list of options.
Cheers,
Jason

Categories

Resources