0 votes

I am getting the below error when modifying user accounts and mail settings.

"Failed to fetch the service mail settings.
Failed to decrypt using provider 'CurrentUserDataProtectionProvider'. Error message from the provider: Key not valid for use in specific state."

Any help would be helpful.

by (100 points)

1 Answer

0 votes
by (289k points)
selected by
Best answer

Hello Jason,

The issue occurs because Adaxes service cannot read service mail settings that were saved with old credentials. To remedy the issue:

  1. Open Softerra.Adaxes.Service.exe.Config file in a text editor. The file is located in the folder where Adaxes service is installed, which is C:\Program Files\Softerra\Adaxes 3\Service by default.

  2. Navigate to the <mailSettings configProtectionProvider="CurrentUserDataProtectionProvider"> XML element:

     <!-- Mail settings -->
     <mailSettings configProtectionProvider="CurrentUserDataProtectionProvider">
         <EncryptedData>
               <CipherData>
                   <CipherValue> ... </CipherValue>
               </CipherData>
         </EncryptedData>
     </mailSettings>
  3. Replace the whole mailSettings element with the following:

     <!-- Mail settings -->
     <mailSettings xmlns="http://softerra.com/adaxes/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://softerra.com/adaxes/config Adaxes.Config.xsd" xsi:type="MailSettingsSection">
     </mailSettings>
  4. Save the file.

  5. Restart Adaxes service.

  6. Configure outgoing mail settings for the service. For details, have a look at the following help article: http://www.adaxes.com/help/?HowDoI.Mana ... tings.html.

0

That did the trick. Thank you

Related questions

0 votes
0 answers

Hi! I am receiving the error "A call to SSPI failed, see inner exception." when using SSL to connect to the mail server: Connecting without SSL works fine. I ... are Exchange 2016 on Server 2012R2 behind a NetScaler load balancer. Any ideas? Regards Erik

asked Nov 30, 2017 by eventit (160 points)
0 votes
1 answer

I want to send an e-mail when an operation fails (e.g. creation of a user), which can be done as an After Create User business rule. Is there a ... %adm-OperationDescription% which includes the errorlog I can include in de body text? Kind regards, Remco

asked Nov 26, 2013 by RTiel (780 points)
0 votes
1 answer

Hello. I got a script that when E-mail forwarding is set, it automatically sends an email to the person that will recieve the forwarded emails for 6 months. But I'd like ... what to put in the xxxxxxx so it would take the account that im running command on.

asked Jun 3 by EdgarsABG (110 points)
0 votes
1 answer

It appears that we can allow conflicting meetings on a room mailbox but can't set the number of allowed conflicts. Is this a bug or intended? Can we request this feature? Do ... to create a custom command for this? We are on version 3.14.19723.0 Thanks, Mark

asked Jul 13, 2022 by mark.it.admin (2.3k points)
0 votes
1 answer

Hello, We are looking to get our standard users to have permissions to edit their out of office (automatic replies) in the self-service portal. We have setup the settings ... users only see the below How do we make the exchange properties visible to the user?

asked Feb 3, 2022 by JoeG (40 points)
3,552 questions
3,242 answers
8,243 comments
547,828 users