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:
contained the line: Listen 22.214.171.124:143
I connected this out and this has freed the port for IMAP.
Hope this will help anyone who has had similar problems