In order to use DavMail with an iPhone, you need to install DavMail in server mode. This server should be available directly on the internet or through a Wifi connection. See Server setup for more information.
Once you have a working DavMail server, proceed to: iPhone Mail setup