then can you please tell me how to receive mails through SMTP. I
have a mail server that supports only SMTP, and i want to access and
read my mails through the JAVAMAIL API, how can i do this?
Your SMTP server will store the mail it receives into recipient
mailboxes somewhere in the filesystem.
Either you have a shell account on the server (so you can log in and
read your mail directly from the mailbox files), or the mailbox must
be made available through POP or IMAP or similar MAIL READING protocol
in order for you to access it.
If this mail server is "yours" (as you claim), then you get to decide
how to make the mailboxes available. If someone else maintains the
server, then you will have to convince him or her to configure the
server to allow you to read mail through a suitable protocol.
/gordon