VMware Cloud Community
jjmaestro
Contributor
Contributor

Problems with SMTP EHLO

Hi!

I have Hyperic setup but I just cannot make it send emails correctly. When my hyperic server connects to the SMTP server at localhost (postfix), it sends an incorrect EHLO and HELO (no hostname after the EHLO&HELO command) that causes postfix to give a 501 error.

This is the SMTP debug info:

2008-08-08 12:39:20,379 DEBUG [JMS SessionPool Worker-4] [org.hyperic.hq.events.ext.AbstractTrigger.Fired] Firing actions for trigger with id=10002; alert def [System down] with id=10001; triggering event [1], event time=Fri Aug 08 12:41:00 CEST 2008
2008-08-08 12:39:20,531 INFO [JMS SessionPool Worker-4] [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
2008-08-08 12:39:20,531 INFO [JMS SessionPool Worker-4] [STDOUT] DEBUG SMTP: useEhlo true, useAuth false
2008-08-08 12:39:20,531 INFO [JMS SessionPool Worker-4] [STDOUT] DEBUG SMTP: trying to connect to host "localhost", port 25
2008-08-08 12:39:20,532 INFO [JMS SessionPool Worker-4] [STDOUT] 220 hyperic.dyr.es ESMTP Postfix (Ubuntu)
2008-08-08 12:39:20,532 INFO [JMS SessionPool Worker-4] [STDOUT] DEBUG SMTP: connected to host "localhost", port: 25
2008-08-08 12:39:20,533 INFO [JMS SessionPool Worker-4] [STDOUT] EHLO
2008-08-08 12:39:20,533 INFO [JMS SessionPool Worker-4] [STDOUT] 501 Syntax: EHLO hostname
2008-08-08 12:39:20,534 INFO [JMS SessionPool Worker-4] [STDOUT] HELO
2008-08-08 12:39:20,534 INFO [JMS SessionPool Worker-4] [STDOUT] 501 Syntax: HELO hostname
2008-08-08 12:39:20,534 ERROR [JMS SessionPool Worker-4] [org.hyperic.hq.bizapp.server.action.email.EmailFilter] Error sending email: [HQ] !!! - System down apache1

The email server is configured in hq-server.conf:
server.mail.host=localhost

And my jboss-service-events.xml:

---- 8< --------------------------------------------------
<server>
<!-- ==================================================================== -->
<!-- Mail Connection Factory -->
<!-- ==================================================================== -->

<mbean code="org.jboss.mail.MailService"
name="jboss:service=SpiderMail">
<attribute name="JNDIName">java:/SpiderMail</attribute>
<attribute name="User">EAM Application</attribute>
<attribute name="Password">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.host" value="@@@server.mail.host@@@"/>

<!-- Enable debugging output from the javamail classes -->
<property name="mail.debug" value="true"/>
</configuration>
</attribute>
</mbean>

</server>
---- 8< --------------------------------------------------

How can I make my hyperic server use the proper EHLO&HELO syntax, appending the hostname after the EHLO&HELO command?

Thanks a lot for your help,

Cheers,
0 Kudos
0 Replies