When I attempt to provision new archive boxes after upgrading to 5.0.2 from 4.5.6 I get this error message:

[zimbra@zim1 ~]$ zmarchiveconfig enable youngw@mxtoolbox.com
Exception in thread "main" com.zimbra.common.soap.SoapFaultException: invalid request: can't extract domain from: zimbra-@.archive

I have reset the properties of all my Classes of Service with:

zmprov modifyCos <COS NAME> zimbraArchiveAccountDateTemplate yyyyMMdd zimbraArchiveAccountNameTemplate '${USER}-${DATE}@${DOMAIN}.archive'