2 Replies Latest reply on Jul 26, 2010 12:43 PM by ips

    email alerts

    macchonmhaighe

      I am setting up alerts on RHQ3.0.0 final release.

       

      The notifications are set to direct email, and I have configured mail-service.xml with smtp details

       

      When an alert is fired the email fails with reason Invalid Addresses. Although this is a valid email address (log below valid address is replaced with "my email address")

       

      I tried with 3 email addresses sepearted by comma's and got the same error on all 3

       

       

      2010-07-26 16:48:22,518 ERROR [org.rhq.enterprise.server.core.EmailManagerBean] Sending of emails failed for this reason: Invalid Addresses
      16:49:22,508 ERROR [EmailManagerBean] Failed to send email [ [ALERT] priority of [!! - Medium] for alert [test alert free memory on eve] on resource [eve]] to recipient [my email address]: Invalid Addresses
      16:49:22,508 ERROR [EmailManagerBean] Sending of emails failed for this reason: Invalid Addresses
      16:49:22,520 ERROR [EmailManagerBean] Failed to send email [ [ALERT] priority of [!! - Medium] for alert [test alert free memory on eve] on resource [eve]] to recipient [my email address]: Invalid Addresses
      16:49:22,520 ERROR [EmailManagerBean] Sending of emails failed for this reason: Invalid Addresses
      2010-07-26 16:49:22,508 ERROR [org.rhq.enterprise.server.core.EmailManagerBean] Failed to send email [ [ALERT] priority of [!! - Medium] for alert [test alert free memory on eve] on resource [eve]] to recipient [my email address]: Invalid Addresses
      2010-07-26 16:49:22,508 ERROR [org.rhq.enterprise.server.core.EmailManagerBean] Sending of emails failed for this reason: Invalid Addresses
      2010-07-26 16:49:22,520 ERROR [org.rhq.enterprise.server.core.EmailManagerBean] Failed to send email [ [ALERT] priority of [!! - Medium] for alert [test alert free memory on eve] on resource [eve]] to recipient [my email address]: Invalid Addresses

       

       

       

       

      Also on a side note, using an smtp password which contains a '&' causes an exception

        • 1. Re: email alerts
          macchonmhaighe

          sorry,

           

          Looks like this is not an RHQ problem

           

           

          but I should note that the from email is being picked up out of rhq-server.properties rather that the mail-service.xml and I didnt pick up on that.

           

           

          In /var/log/exim/reject.log I see the from address (rhq-server.properties) is being rejected as unrouteable

          • 2. Re: email alerts
            ips

            Well, they are set in rhq-server.properties, but then JBoss AS substitutes the values from there into mail-service.xml, since it contains the following:

             

            <!-- Change to the SMTP gateway server -->
                    <property name="mail.smtp.host" value="${rhq.server.email.smtp-host:127.
            0.0.1}"/>
                    
                    <!-- The mail server port -->
                    <property name="mail.smtp.port" value="${rhq.server.email.smtp-port:25}"
            />
            
                     <!-- Change to the address mail will be from  -->
                     <property name="mail.from" value="${rhq.server.email.from-address:rhqad
            min@127.0.0.1}"/>