I see: the problem should be fixed by adding the following lines to [1], after line 165:

                        Properties javaMailProperties = new Properties();
javaMailProperties.setProperty("mail.smtp.auth", "true");
sender.setJavaMailProperties(javaMailProperties);

You can test this solution by downloading [1], putting the file on the same path in your own project (creating all intermediate directories), then adding the lines above and finally rebuilding / redeploying.

Please open an issue on JIRA anyway.

Regards.

[1] https://svn.apache.org/repos/asf/syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/notification/NotificationJob.java

On 10/09/2014 11:40, Suresh Ajja wrote:
Failed messages: 
org.apache.geronimo.javamail.transport.smtp.SMTPSendFailedException: Access 
denied - Invalid HELO name (See RFC2821 4.1.1.1)

org.springframework.mail.MailSendException: Failed messages: 
org.apache.geronimo.javamail.transport.smtp.SMTPSendFailedException: Access 
denied - Invalid HELO name (See RFC2821 4.1.1.1); message exception details (1) 
are:
Failed message 1:
org.apache.geronimo.javamail.transport.smtp.SMTPSendFailedException: Access 
denied - Invalid HELO name (See RFC2821 4.1.1.1)
        at 
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.sendMessage(SMTPTransport.java:257)
Full Stack Trace attached with mail.
On searching on net with keywords  "Access denied - Invalid HELO name (See RFC2821 
4.1.1.1)",
found that the Syncope application needs to have "SMTP Server requires 
Authentication" feature to be enabled.
Regards,
Suresh

On Wed, Sep 10, 2014 at 12:13 PM, Francesco Chicchiriccò <[email protected] <mailto:[email protected]>> wrote:

    On 10/09/2014 08:07, Suresh Ajja wrote:

    Even after creating two attributes for username and password..
    Mail not working.
    On looking in to the exception it states that the application
    needs to enable 'requires authentication' feature.


    Please past here the relevant parts of the stacktraces you see in
    the logs.
    Regards.

    On Sep 9, 2014 11:45 AM, "Francesco Chicchiriccò"
    <[email protected] <mailto:[email protected]>> wrote:

        On 09 settembre 2014 07:54:07 CEST, Suresh Ajja
        <[email protected] <mailto:[email protected]>> wrote:
        >Hi,
        >
        >How to configure mail server in Apache Syncope?
        >We have already entered smtp host and port in the
        Configuration tab.
        >We cannot find any config file to enter username/password.

        Hi,
        just create two new parameters 'smtp.username' and
        'smtp.password'.

        HTH
        Regards.

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/

Reply via email to