Hi there
I have a test alert configured just to test out the email alert functionality and i cannot get it to work, here are my settings:
name="jboss:service=SpiderMail">
<attribute name="JNDIName">java:/SpiderMail</attribute>
<attribute name="User">ncrukrepairs@gmail.com</attribute>
<attribute name="Password">**************</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="smtp.gmail.com"/>
<property name ="mail.smtp.starttls.enable" value="true" />
<property name ="mail.smtp.socketFactory.port" value="465" />
<property name ="mail.smtp.socketFactory.fallback" value="false" />
<property name ="mail.smtp.socketFactory.class" value="javax.net.sll.SSLSocketFactory" />
<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="true"/>
And here is the error in the logs:
2007-09-16 22:17:13,476 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
2007-09-16 22:17:13,476 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
2007-09-16 22:17:13,587 ERROR [org.hyperic.hq.bizapp.server.action.email.EmailFilter] Error sending email: [HQ] !!! - test webfileserver
Thats all I get if I include the TTL part of the config if I take it out i get:
2007-09-16 22:17:13,426 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
2007-09-16 22:17:13,476 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
2007-09-16 22:17:13,476 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth true
2007-09-16 22:17:13,476 INFO [STDOUT] DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 25
2007-09-16 22:17:13,527 INFO [STDOUT] 220 mx.google.com ESMTP 34sm2686917uga
2007-09-16 22:17:13,527 INFO [STDOUT] DEBUG SMTP: connected to host "smtp.gmail.com", port: 25
2007-09-16 22:17:13,537 INFO [STDOUT] EHLO mediapc
2007-09-16 22:17:13,557 INFO [STDOUT] 250-mx.google.com at your service, [84.9.109.135]
250-SIZE 28311552
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
2007-09-16 22:17:13,557 INFO [STDOUT] DEBUG SMTP: Found extension "SIZE", arg "28311552"
2007-09-16 22:17:13,557 INFO [STDOUT] DEBUG SMTP: Found extension "8BITMIME", arg ""
2007-09-16 22:17:13,557 INFO [STDOUT] DEBUG SMTP: Found extension "STARTTLS", arg ""
2007-09-16 22:17:13,557 INFO [STDOUT] DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
2007-09-16 22:17:13,567 INFO [STDOUT] DEBUG SMTP: use8bit false
2007-09-16 22:17:13,567 INFO [STDOUT] MAIL FROM:<hqadmin@168.0.244>
2007-09-16 22:17:13,587 INFO [STDOUT] 530 5.7.0 Must issue a STARTTLS command first 34sm2686917uga
2007-09-16 22:17:13,587 INFO [STDOUT] QUIT
2007-09-16 22:17:13,587 ERROR [org.hyperic.hq.bizapp.server.action.email.EmailFilter] Error sending email: [HQ] !!! - test webfileserver
Sorry for the huge amounts of information but i cant see any reason why it shouldnt work?
Also i dont understand why when i add TLS stuff into the config i dont get any information other than error sending email.
Do your best, ive been trying to figure this out for aages 😞
Thanks very much in advance.
Alexander F