Mail Archiver doesn't support two-factor authentication. If you have two-factor authentication enabled for Mail you have to follow the instructions from this Apple support document .