How do I change dovecot's imap and pop 'banner'?

Solution 1:

I found out the login_greeting directive in dovecot.conf, and I have set it to something other than 'Dovecot ready'.

And it works now.