Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Configure office365 email in liferay

    • 1
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 1.77k
    Answer it

    Hello Guys I configured office365 email in liferay to send email via smtp by using below properties :

    mail.session.mail.transport.protocol=smtp
    mail.session.mail.smtp.user=admin@domain.com  
    mail.session.mail.smtp.password=m8Kw  
    mail.session.mail.smtp.host=smtp.office365.com  
    mail.session.mail.smtp.starttls.enable=true
    mail.session.mail.smtp.auth=true
    mail.session.mail.smtp.socketFactory.fallback=true
    mail.session.mail.smtp.auth.mechanisms=LOGIN
    mail.session.mail.smtp.port=587
    mail.session.mail.smtp.debug=true
    mail.session.mail.smtp.auth.plain.disable=true
    

    But I am getting below error :

    09:25:43,717 ERROR [liferay/mail-1][MailEngine:77] null
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
    
        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
        at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
        at com.liferay.util.mail.MailEngine._send(MailEngine.java:557)
        at com.liferay.util.mail.MailEngine.send(MailEngine.java:356)
        at com.liferay.util.mail.MailEngine.send(MailEngine.java:425)
        at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMessageListener.java:89)
        at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageListener.java:104)
        at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
        at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
        at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
        at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
        at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
        at java.lang.Thread.run(Thread.java:745)
    

    Please help me to resolve this issue

 1 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: