--with-imap enable?

I’m trying to setup a php pop3/imap webmail client on my domain and I get this error
Fatal error: Call to undefined function: imap_rfc822_parse_adrlist() in

I’ve been told that the php needs to have --with-imap enabled ? is this correct ? and does Dreamhost has this feature turned on ? how do I get this to work ?