501 Authorization Failed

  • 7022708
  • 06-Mar-2018
  • 06-Mar-2018

Environment

Retain Unified Archiving 4.x
Office 365

Situation

A job ends just as the job starts, and no messages are dredged, and no mailboxes were counted in the job.  

When looking at the RetainWorker log the following error is shown: 

ERROR [RTWQuartzScheduler_Archive_Worker-2] com.gwava.workerutils.DefaultCAAPIErrorHandleStrategy: reportError: sendMail :: com.gwava.workerutils.DefaultCAAPIErrorHandleStrategy.returnCaller:55 :: 501 Authentication failed javax.mail.AuthenticationFailedExcpetion: 501 Authentication failed

                 at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:932)
                 at com.sun.mail.smtp.SMTPransport.authenticate(SMTPTransport.java:843) 
                 at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPtransport.java:748) 
                 at javax.mail.Service.connect(Service.java:366)
                 at javax.mail.Service.connect(Service.java:246)
                 at com.gwava.utils.MailUtils.smtpSend9MailUtils.java:290)
                 at com.gwava.utils.MailUtils.sendMailAndThrowException(MailUtils.java:936)
                 at com.gwava.utils.Mailutils.sendMail(MailUtils.java:173) 
 at com.gwava.utils.Mailutils.sendMail (MailUtils.java:62)
 at com.gwava.utils.Mailutils.sendMail (MailUtils.java: 455)...

Users are not archived entirely. 
               


Resolution

Run the sync365 script to download the address book and populates the exchangeusers.csv and exchangegroups.csv

To help setup the sync365 and automate it see this KB here

Also, check that the .csv files are in the location where Retain can see them. If running Retain on Windows, the csv files will be found in the C:\Program Files\Beginfinite\retain\RetainServer\WEB-INF\cfg. 

If Retain is running on Linux then the files will need to be sent over via a WinSCP to the Linux server and placed in the /opt/beginfinite/retain/RetainServer/WEB-INF/cfg directory. Click here for instructions on how to set the WinSCP on a Windows box to move the .csv files to the Linux server. 

In the Retain Web interface go to Module Configuration, and click Configure on the Exchange module. 
Click on the Hosted Services tab. 
Be sure that the I am using a hosted Exchange system is checked and the CSV Path is pointed to the correct location of the .csv files. 

Once the sync365 script is run, and the csv files are populated with the users, and groups, and the CSV Pathis correct,  then the job will run as normal and the error in the Worker log will not appear. 


Cause

The issue is caused by the .csv files that are downloaded from Office 365, which contains the address book, are empty. This will cause the job to start and stop immediately and will throw an error in the Retain Worker log. 

Feedback service temporarily unavailable. For content questions or problems, please contact Support.