Javamail configuration with TomEE

Javamail configuration with TomEE

I use TomEE (Javamail) which has the email configuration set in tomee.xml like this:
  <Resource id="MyEmail" type="javax.mail.Session">
        mail.smtp.host=smtp.zoho.in
mail.smtp.socketFactory.fallback=true
        mail.smtp.port=465
        mail.smtp.socketFactory.port=465
        mail.smtp.ssl.trust=smtp.zoho.in
        mail.smtp.starttls.enable=true
        mail.transport.protocol=smtp
    mail.debug=true
        mail.smtp.auth=true
        mail.debug.auth=true
        mail.smtp.user=xxx
        mail.smtp.password=yyy
        password=yyy
</Resource>
When sending mail, the debug output shows that the username sent to zoho is [my linux account user name] and password sent is <null>, meaning the mail.smtp.user and mail.smtp.password are not used.  Previously with GMail these were OK.  So I think the property names are different?