Jump to content
We've recently updated our Privacy Statement, available here ×
  • SMTPAddressFailedException: 550 5.7.1 Unable to relay


    ghudson_1
    • Features: Scheduler Product: JasperReports® Server

    Issue Description

    The error:

    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay"
    

    can occur when a scheduled job is attempting to email the report to a recipient outside the mailserver's domain, customers are often curious how what this means.


    Resolution

    This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it.

    JasperReports Server uses the Sun JavaMail api, so JavaMail is acting as the client (versus some other email client like MS Outlook, Thunderbird, etc). So you can approach this setup like any java-based program using sun's JavaMail. Typically the error you are seeing indicates a server-config problem as explained here:

    http://www.oracle.com/technetwork/java/faq-135477.html#norelay

    To troubleshoot, we recommend you enable extra logging detail for the mail client, then share the logging with your mail server administrator for analysis as if this was any other mail-client, like MS Outlook, Thunderbird, etc. Edit WEB-INF/applicationContext-report-scheduling, add <prop key="mail.debug">true</prop> as well as <prop key="mail.debug.auth">true</prop> and restart your appserver.

    <property name="javaMailProperties">
        <props>
            <prop key="mail.debug">true</prop>
            <prop key="mail.debug.auth">true</prop>
        </props>
    </property>
    

    The logging from JavaMail goes to system OUT, which is probably your catalina.out, the localhost<xxx> file or WEB-INFlogsjasperserver.log - depending on your configuration.

    JavaMail uses "SMTP Authentication" optionally. If your mail administrator asks for this you can add the property "mail.smtp.auth " with a value of true to the javaMailProperties above listed above.

    Ref. Case 00055959


    User Feedback

    Recommended Comments



    Guest
    This is now closed for further comments

×
×
  • Create New...