Quantcast
Viewing all articles
Browse latest Browse all 52618

Hyperic SMTP in 4.6

I've read through this guide: http://support.hyperic.com/display/DOC/Configuring+HQ+Server+for+SMTP+Server for version 4.2-4.4

 

It looks like you used to have a template where users could specify the username & password the Java Mail sender would use to authenticate.

 

Now in 4.5 & 4.6, you have http://support.hyperic.com/display/EVO/Configuring+Hyperic+Server+for+SMTP+Server

 

You have two cases:

  1. No auth example using localhost.  I should not have to set up sendmail to use SMTP.  I love this product, but this part kills me
  2. An SSL example

 

What about the case where i'm not using SSL, but need to authenticate?  I have the following in my hq-server.conf file:

 

server.mail.host=<host>
mail.user=<user>
mail.password=<pass>
mail.smtp.auth=true
# Change to SMTP port
mail.smtp.port=25
# SMTP properties
mail.smtp.socketFactory.class=javax.net.SocketFactory
mail.smtp.socketFactory.fallback=false
mail.smtp.socketFactory.port=25
mail.smtp.starttls.enable=false
mail.smtp.host=<host>
mail.smtp.user=<user>
mail.smtp.pass=<pass>
mail.smtps.user=<user>
mail.smtps.pass=<pass>
mail.host=<host>
mail.debug=true

 

Granted, there is overlap and non-user in some of the variables above, I included everything for completeness.  The server I am using, requires authentication.  Yet, if I set auth true, it doesn't connect.  If I turn auth off, it connects, but obviously fails to send due to no authentication.

 

I can telnet to the server and send an email.  I can also write my own program using JavaMail to do this, using an authenticated session:

 

return Session.getDefaultInstance(props, new javax.mail.Authenticator() {
            protected PasswordAuthentication getPasswordAuthentication() {
                return new PasswordAuthentication(
                        "user", "pass");
            }
        });

 

Why is it that you guys completely fail in every respect when using an authenticated session over SMTP.  It took me 5 minutes to set this up in Atlassian products, but have now wasted 2 days with your product.  I love this product, but not having efficient email alerts and setup is killing me.  Please get back to me if you can or it's back to Nagios.

 

Btw, I've enabled DEBUG in log4j and get the encompassing Connection Exception: timed out when auth=true.


Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>