July 13, 2008

iPhone 3G: Email with Domino IMAP

To fetch your email from a Domino based server to the iPhone 3G, you can use either POP3, IMAP or the Microsoft Exchange protocol. Since there is no native Domino iPhone synchronization, I have decided to use the IMAP protocol over SSL. The following changes are all done in your Domino Directory:

Step 1: Make sure your Domino server has a valid SSL certificate since you should not use IMAP over non-SSL connections.

Step 2: Enable the IMAP SSL port in the server document under Ports... -> Internet Ports... -> Mail


Step 3: Create an Internet site document for the IMAP service if you have enabled the internet site documents in the Domino Directory (and you really should do this). Make sure your keyfile name matches the one created with your server SSL certificate.



Step 4: Create a program document to start the IMAP task at server startup. You could also manually edit the Notes.Ini to add IMAP to the servertasks= line. To test the IMAP server right away, you can use the console command Load IMAP.

Step 5: Configure your firewall(s) to allow incoming TCP connections on port 993.

Step 6: To enable your Domino server to allow authenticated users (such as the iPhone device) to send SMTP mails, you need to change the configuration document under Router/SMTP -> Restrictions and Controls... -> SMTP Inbound Controls



Step 7: Now you can configure your iPhone to use IMAP for mail fetches and SMTP for outgoing emails to your Domino server.

4 comments:

meovino said...

Andy, thanks for the great tip. Hope you don't mind, I've linked to this from my blog as an example of how to set up IMAP for iPhones.

http://dominoiphone.wordpress.com/2008/09/27/email-imap-vpn-att-smtp/

Anonymous said...

This article does not mention how to setup the smtp ports on the Domino server.

meovino said...

Please re-read my post. I don't use Domino's SMTP server to send mail. We have our Domino servers locked down fairly tightly to keep them from being open relays. I use AT&T's SMTP server to send mail out.

Thomas Adrian said...

Well, I read your post and your comments but I am still confused. sorry!

It looks like you are describing how to enable smtp on Domino , but following your guide does not provide information what ports need to be open in the firewall in order to send mail through the Domino form the outside.

What ports need to be open in firewall in order to send mail through the Domino server? (25/465 or what ?)

I tried using gmail for outgoing smtp server but they seem to change the "from domain" to @gmail.com


thanks
Thomas Adrian
http://www.notessidan.se