Hi all, I have been scowering the interpages for a few hours now reading all the HQ documentation and related posts on this forum but not really any good leads to go on. Im trying to configure HyperHQ to use gmail as my SMTP server. I set up an alert and when I trigger it it works correctly however email is not sent. Your help would be greatly appreciated.
jboss-service-events.xml
-----------------------------------
<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->
<mbean code="org.jboss.mail.MailService"
name="jboss:service=SpiderMail">
<attribute name="JNDIName">java:/SpiderMail</attribute>
<attribute name="User">matts.mamp@gmail.com"</attribute>
<attribute name="Password">t0p53cr3t!!</attribute>
<attribute name="Configuration">
<!-- Test -->
<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="pop3.nosuchhost.nosuchdomain.com"/>
<!-- Change to the SMTP gateway server -->
<property name="mail.smtp.auth" value="true"/>
<property name="mail.smtp.host" value="@@@server.mail.host@@@"/>
<property name="mail.smtp.starttls.enabled" value="true"/>
<property name="mail.smtp.socketFactory.port" value="587"/>
<property name="mail.smtp.socketFactory.fallback" value="false"/>
<property name="mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory"/>
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="false"/>
</configuration>
</attribute>
</mbean>
hq-server.conf (email only)
-------------------------------------
################################################################################
# Email Settings
################################################################################
#
# Property: server.mail.host
#
# The IP or hostname of the SMTP server that the HQ server will use for sending
# alerts and other HQ-related emails. Most UNIX platforms have a local SMTP
# server, in which case localhost or 127.0.0.1 can be used here.
server.mail.host=smtp.gmail.com
log failures
---------------
2009-12-03 01:17:59,247 INFO [main] [org.jboss.system.ServiceConfigurator@470] Problem configuring service jboss:service=SpiderMail
org.jboss.deployment.DeploymentException: No Attribute found with name: matts.mamp@gmail.com
--- MBeans waiting for other MBeans ---
ObjectName: jboss:service=SpiderMail
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: matts.mamp@gmail.com
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=SpiderMail
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: matts.mamp@gmail.com
jboss-service-events.xml
-----------------------------------
<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->
<mbean code="org.jboss.mail.MailService"
name="jboss:service=SpiderMail">
<attribute name="JNDIName">java:/SpiderMail</attribute>
<attribute name="User">matts.mamp@gmail.com"</attribute>
<attribute name="Password">t0p53cr3t!!</attribute>
<attribute name="Configuration">
<!-- Test -->
<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="pop3.nosuchhost.nosuchdomain.com"/>
<!-- Change to the SMTP gateway server -->
<property name="mail.smtp.auth" value="true"/>
<property name="mail.smtp.host" value="@@@server.mail.host@@@"/>
<property name="mail.smtp.starttls.enabled" value="true"/>
<property name="mail.smtp.socketFactory.port" value="587"/>
<property name="mail.smtp.socketFactory.fallback" value="false"/>
<property name="mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory"/>
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="false"/>
</configuration>
</attribute>
</mbean>
hq-server.conf (email only)
-------------------------------------
################################################################################
# Email Settings
################################################################################
#
# Property: server.mail.host
#
# The IP or hostname of the SMTP server that the HQ server will use for sending
# alerts and other HQ-related emails. Most UNIX platforms have a local SMTP
# server, in which case localhost or 127.0.0.1 can be used here.
server.mail.host=smtp.gmail.com
log failures
---------------
2009-12-03 01:17:59,247 INFO [main] [org.jboss.system.ServiceConfigurator@470] Problem configuring service jboss:service=SpiderMail
org.jboss.deployment.DeploymentException: No Attribute found with name: matts.mamp@gmail.com
--- MBeans waiting for other MBeans ---
ObjectName: jboss:service=SpiderMail
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: matts.mamp@gmail.com
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=SpiderMail
State: FAILED
Reason: org.jboss.deployment.DeploymentException: No Attribute found with name: matts.mamp@gmail.com