I have looked at the http.conf and /etc/rc.d/init.d/httpd file but could not find anything so like an idiot I uninstalled all of the qmail stuff (after a backup).
A reinstall did not work
I think went about connected to the imap port again and confired that apache was listening on that port.
I then decided to egrep all the apache files for the string 143 (for the imap port). After looking though thousands of lines I found:
conf.d/ssl.conf
contained the line: Listen 217.199.186.177:143
I connected this out and this has freed the port for IMAP.
Happy Days.
Hope this will help anyone who has had similar problems
Giz