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

by (305k points)
Best answer
0 votes

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 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.

by (100 points)
0

That did the trick. Thank you

Related questions

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
0 answers

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

We are moving away from using the default domain for all user UPNs. I read a few support articles and configured a few property patterns to change the UPN based on the OU the user ... I'm missing? Built in: Users in 'CT OUs' Username Properties for 'CT OUs'

asked Apr 10 by JSEngWG (20 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, 2024 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