One of the key things with the Nokia e72 is email - it can sync to outlook via exchange, and although its weaker at push email it's not too bad. Its main drawbacks with email seem to be sent email is not sent to the exchange server 'sent' folder and is instead kept on the phone, and with mail sorted into server side subdirectories their is no 'new mail' indication.
Anyway - I don't care about all of that I need it to interface with my own non-microsoft server.
I have a very low power 8watt linux sheevaplug server which runs something called DOVECOT as a IMAP mail server. Procmail is used as an MTA (mail transfer agent). It might sound like a pile of alphabetii spagettii but its a lot easier than it looks once you have a decent guide and simply get down to setting it up.
http://tuxradar.com/content/get-started-fetchmail-procmail-and-dovecot
Behind the scenes I also run something called FETCHMAIL which logs into all my email accounts and retreives all my mail. Before getting the Nokia e72, I have been happly running a email client on my PC called ThunderBird + Lighting which handles all the DOVECOT mail.
I setup a pile of rules in Thunderbird to sort all the nonsense mail into various folders. Now I would simply like to configure this setup so that I can login anywhere with my Nokia E72 and read my mail and send from it.
This means 2 things need to occur ;
1. The folders have to be organised on my mail-server as the mail comes in, not the client - because the Nokia E72 mail client is not going to be churning through sorting mail when I connect!.
2.The Mail server has to be exposed to the internet so i can pick up mail from a fixed IP point
Anyone who knows what its like setting up things in linux knows the trawl you embark on to find this or that setting which is carefully guarded by the chief autistic linux savant know it-all C++ developer, who views anyone who doesn't know how to do it as an idiot, and the only way to get the information on making the THING WORK is accessed after the required 30-40 hours of trawling finding some post on a long forgotton forum. What - it 'sounds like a chance to save hours at my expense'!
Yes - your right.
First thing to do is to get a web address for your server via something like DynDNS. Sign up for this and make a note of your address. Then install ddclient via 'apptitude' or 'apt-get install ddclient' or whatever and edit the /etc/ddclient.conf file, following the instructions and providing the new address. You will always be able to see your server on the internet now, but should not be able to access it other than by ping as your firewall will protect it.
For mail:
1. You need to change the NAT settings in your router so that IMAPSSL on port 993 is allowed and TCP traffic is passed to your server on 192.168.1.x (You may be able to use a 'virtual server' to do this on your router).
2. You have to change a few settings in dovecot -
mainly 'protocol = imaps managesieve' and the ssl settings enabled (they are commented out by default)
all described in this guide http://tuxradar.com/content/get-started-fetchmail-procmail-and-dovecot
You don't have to create your own SSL certificate as this guide states - so ignore that - you simply use the certificate directory under /etc/ssl by changing this setting in the ssl section of the /etc/dovecot.conf guide. When you connect you accept the client side certificate on the mobile device to establish the SSL connection..
And thats that - except for sieve...and managing the mail into its folders on the server...
BTW: handy little add onto thunderbird to manage sieve serverside mailboxes and rules from Thunderbird!
https://addons.mozilla.org/af/thunderbird/addon/2548/
No comments:
Post a Comment