Seam-mail example connection refused
mdesignz Jul 12, 2009 2:26 PMHello,
I'm trying to get the seam-mail example to work under seam-2.2.0.CR1 and JBoss 5.1.0.GA. When I run the example, I get a Connection Refused to localhost 2525. I know this is a simple configuration issue, but I'm just not seeing it. It's my understanding that the example uses Meldware as the SMTP server on port 2525, but that doesn't seem to be the case. I've used seam mail connecting to other SMTP servers without a problem, but I'm missing why they example doesn't work. My mail-service.xml file looks as follows.
<?xml version="1.0" encoding="UTF-8"?> <!-- $Id: mail-service.xml 62350 2007-04-15 16:50:12Z dimitris@jboss.org $ --> <server> <!-- ==================================================================== --> <!-- Mail Connection Factory --> <!-- ==================================================================== --> <mbean code="org.jboss.mail.MailService" name="jboss:service=Mail"> <attribute name="JNDIName">java:/Mail</attribute> <attribute name="User">test</attribute> <attribute name="Password">test</attribute> <attribute name="Configuration"> <!-- A test configuration --> <configuration> <!-- Change to your mail server prototocol --> <property name="mail.store.protocol" value="pop3"/> <property name="mail.transport.protocol" value="smtp"/> <!-- Change to the user who will receive mail --> <property name="mail.user" value="nobody"/> <!-- Change to the mail server --> <property name="mail.pop3.host" value="localhost"/> <!-- Change to the SMTP gateway server --> <property name="mail.smtp.host" value="localhost"/> <!-- The mail server port --> <property name="mail.smtp.port" value="2525"/> <!-- Change to the address mail will be from --> <property name="mail.from" value="postmaster@mdesignz.com"/> <!-- Enable debugging output from the javamail classes --> <property name="mail.debug" value="true"/> </configuration> </attribute> <depends>jboss:service=Naming</depends> </mbean> </server>