Install php5-imap because imap is not available through pecl.