[Dovecot] replace istream and unref the old one...