james

Someone knows a mail (SMTP) delivery library for Java?

I'd like to send mail without bothering with the SMTP-Server which is used for delivery. So JavaMail API doesn't work for me because I have to specify a SMTP server to connect to. I'd like the library to find out on its own which SMTP server is responsible for which email address by querying the MX record of the mail address domain. I...

James Server connection failure exception

Hi, I'm trying to connect Javamail application to James server, but I'm getting javax.mail.MessagingException: Could not connect to SMTP host:localhost, port:4555; nested exception is: java.net.SocketException: Invalid arguent: connect Here's the code, which is creating a little problem for me: import java.security.Security; import...

apache james, jsp servlet

I am trying to make a mail application through apache james, but I could not really get all the things, please give suggestions how to use it. MOreover, I could not figure it how to use jsp and servlet for james. Please help. ...

Fail to connect to james server localhost

I'm trying to connect to James server localhost, but I'm getting an exception javax.mail.MessagingException: Could not connect to SMTP host: localhost, port:25; nested exception is: java.net.SocketException: Network is unreachable: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1545) ...

Connecting error through javamail

I'm trying to connect to james server using imap protocol, but I'm getting following exception: Exception in thread "main" javax.mail.MessagingException: Network is unreachable: connect; nested exception is: java.net.SocketException: Network is unreachable: connect at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611) at ja...

Configuring james to connect to Microsoft sql server 2005

I'm getting database connection error whenever I try to connect james to sql server 2005, I already loaded driver sqljdbc in the lib directory in james, then why I'm getting an error? Here's the config.xml file of james which is trying to connect to sql server: <data-source name="maildb" class="org.apache.james.util.dbcp.JdbcDataSourc...

Storing data in MySql table through Javamail failed

How can I store the messages which I've written through javamail into MySql table? I already configured james server config file to connect to mysql server(with datasource element name maildb), and I changed the element in James server config file to <inboxRepository> <repository destinationURL="db://maildb/spammer/" ...

Problem in sending external mails in James Mail Server

Hi, I am new to James Mail Server. I configured as the steps mentioned by James. I can send send mails to internal network, but I am not able to send mails to external network like gmail. Somebody please help me to resolve the issue Thanks in advance Rohith ...

JAMES Mailet development process

I'm starting a project that involves writing mailets for Apache James. As far as I can tell, the only way to test a change in my code (on Windows) is through the following steps: Compile the mailet code Build a jar file containing the mailet Copy the jar file into the apps/james/SAR-INF/lib directory Start JAMES from run.bat Run test S...

Using James Server in Eclipse With JavaMail

Would anyone be able to tell me how I can go about using James server as my server with Java in Eclipse? I'm trying to test the two classes posted below but i get the following error: Exception in thread "main" javax.mail.AuthenticationFailedException: Authentication failed. public class JamesConfigTest { public static void main(String...

NoSuchAlgorithmException: Algorithm HmacSHA1 not available

Look at the following line of java: Mac.getInstance("HmacSHA1"); If I put this in a simple test program, it runs without problems on my server. However, if I use this line in a container, I get java.security.NoSuchAlgorithmException: Algorithm HmacSHA1 not available at javax.crypto.Mac.getInstance(DashoA13*..) The same JDK instal...

Integrate Apache JDKIM with Apache James

I'm trying to add DKIM (DomainKeys Identified Mail) to my Apache James mail server with no luck. Can someone please direct me to some documentation on how to integrate JDKIM (or JavaDKIM) with Apache James? Thanks in advance ...