We have situation where emails need to be sent from our J2EE Seam application using zimbra mail SMTP server. In ideal situation each sent email by given user would be present in Sent folder.

Is this possible with JavaMail API? If yes what settings of Zimbra (postfix) need to be done to permit access to SMTP server.

On the other hand there is also SOAP and I'm wonder if such funcionality is already implemented as a common API. In our deployment we also use SSO which is integrated in JBoss Portal and Zimbra.
I hope that when using SOAP it is possible to authenticate with valid key according to Zimbra when invoking SOAP request.