send email error by iplanet messaging server52

i develop java program to send mail by iplanet messaging server 52. but failed. the error message is :

javax.mail.AuthenticationFailedException

i can send successly by out Look Express or foxmail or iplanet messaging web client.

can u tell me , what's problem?

thanks a lot first.

[334 byte] By [707201] at [2007-11-25 8:04:19]
# 1

Can you provide a debug log output showing the SMTP transaction? Looks like you might be trying to do more than just SMTP, rather SMTP-Auth and for some reason it has failed.

Increase the logging level, MM_DEBUG=5, in option.dat on your iMS server and then try again. In the resulting log file you will see exactly what it is your java program sent to iMS.

707213 at 2007-7-1 13:51:51 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
but where can i see the SMTP log?there is only IMAP ,HTTP ,POP log .
707201 at 2007-7-1 13:51:51 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
In the msg-<instance>/log/imta/ directory. By default logging is not enabled as of 5.2. You'll have to enable it first, put the logging keyword in the default section of the rewrites in imta.cnf.Then run your test(s), you should see verbose logs in the directory above.
707213 at 2007-7-1 13:51:51 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...