Does anyone know if this can be adapted to use mail.domain.com, instead of webmail?
I'm afraid this will interfere with the normal function of using mail.domain.com, however they use different ports so it could theoretically work (indeed my old web hosting control panel did this by default).