dovecot should be called before calling metadata