• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail and Lotus Notes chamber of secrets

 
Ashok Mash
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
This should be a simple one for you JavaMail Pros.
I have this application using JavaMail to send out emails (Purchase Orders, Invoices etc) and its working fine with Exchange Server.
At the same time, when I configured (I thought I did) it to send mails using Notes Server, its throwing Connection Exception: Connection Refused.
Here is the trace:
[ERROR] Connection refused;
nested exception is:
java.net.ConnectException: Connection refused
javax.mail.MessagingException: Connection refused;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:298)
at javax.mail.Service.connect(Service.java:234)
at javax.mail.Service.connect(Service.java:135)

Notes server is running in a Solaris box, but it has SMTP service enabled and I already verified the availability of the server with sping and mconnect commands.
Any thoughts? Thanks in advance!
Ashok.
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:298)

Looks like you're trying to connect to the IMAP store, and not the SMTP service.
You could try telnetting onto your notes server, and doing a netstat -a and see if anything is listening on the IMAP port (143).
L
 
Ashok Mash
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Lewin,
I thought Lotus Notes works over IMAP by default and so IMAP service should be running by default!?!
Anyway, I will re-check that.
Cheers,
Ashok.
 
Ashok Mash
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lewin Chan:

You could try telnetting onto your notes server, and doing a netstat -a and see if anything is listening on the IMAP port (143).

Notes server is listening on IMAP port (143). I tried connecting a number of ways (different combination of domain+username), but no luck! Sending a simple SMTP mail is working with out a glitch.
Does any one has an example code of JavaMail actually connecting and fetching/sending mails using a Lotus Notes (Domino) Server?
Thanks in advance!
Ashok.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic