mirror of
https://github.com/Pro/dkim-exchange.git
synced 2026-04-25 08:55:52 +03:00
[GH-ISSUE #17] Exchange 2010 SP2 #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @networkthinking on GitHub (Mar 11, 2014).
Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/17
Hello,
Where can I download the version for Exchange 2010 SP2? I saw there was a bug and then a fix and wondering if I can get that version. The newest version seems not to be working for me.
Wally
@Pro commented on GitHub (Mar 11, 2014):
Did you use the install script as described in the install instructions? (https://github.com/Pro/dkim-exchange#installing-the-transport-agent)
The install script automatically takes this version: https://github.com/Pro/dkim-exchange/tree/master/Src/Exchange.DkimSigner/bin/Exchange%202010%20SP2
Do you get any error message or exception in the event log?
@networkthinking commented on GitHub (Mar 11, 2014):
No errors but unable the start Exchange Transport. Let me try manually applying that DLL to see if that resolves. I had tried the latest and was not working. I then tried an older version that I used before and knew it worked. Let me try old version with this DLL and see what happens.
Wally
@Pro commented on GitHub (Mar 11, 2014):
If the Exchange Transport doesn't start, there should be at least two error entries in the Event Log (under Administrative Events). Please post all the error descriptions you get.
@networkthinking commented on GitHub (Mar 11, 2014):
The install did not run correct

@networkthinking commented on GitHub (Mar 11, 2014):
Uninstalled and try to reinstall with the version on the main page. No luck at all, same error.
@Pro commented on GitHub (Mar 11, 2014):
Can you tell me the version of the following .dlls on your server (right click, properties, details, file version):
If you want to try older versions, you can get them here: https://github.com/Pro/dkim-exchange/releases
@networkthinking commented on GitHub (Mar 11, 2014):
14.2.328.9
@networkthinking commented on GitHub (Mar 11, 2014):
Are those files put there by Exchange or your program?
@Pro commented on GitHub (Mar 11, 2014):
These are from Exchange. I'm currently testing which error message is shown if the .dll is compiled for the wrong Exchange Version (because your version 14.2.328.9 is Exchange 2010 SP2 including Update Rollup 5 but the .dll was compiled with the .dll's for Exchange 2010 SP2 without any Update Rollup).
You mentioned that a previous version worked? Did you install the Update Rollup in the meantime?
@Pro commented on GitHub (Mar 11, 2014):
Can you upload the .dll's somewhere and I'll try to recompile the DKIM Agent for this version:
@networkthinking commented on GitHub (Mar 11, 2014):
No, we just took over this server and reluctant to patch until we have firm grasp.
@networkthinking commented on GitHub (Mar 11, 2014):
@networkthinking commented on GitHub (Mar 11, 2014):
Remove the PNG and it will be a zip file with the DLL
@Pro commented on GitHub (Mar 11, 2014):
Ok, now try this version: https://dl.dropboxusercontent.com/u/3233048/V1/ExchangeDkimSigner.dll
And let my know the result
@Pro commented on GitHub (Mar 11, 2014):
I think this error message is related to a corrupted .dll (see https://www.devexpress.com/Support/Center/Question/Details/Q241478). I manually corrupted a .dll by adding some letters at the beginning and got exactly the same (irritating) message.
How exactly did you put the .dll on your server? Using a FTP server may cause the problem. Please try to use folder shares or directly download the .zip from github to your server.
@networkthinking commented on GitHub (Mar 11, 2014):
Suggestions on which version I should download and how to get back to square one?
@Pro commented on GitHub (Mar 11, 2014):
First of all, delete the directory
C:\Program Files\Exchange DkimSignerThen download https://github.com/Pro/dkim-exchange/archive/master.zip directly on your server (don't use FTP to transfer the files to the server).
Then use the install script.
@AlexLaroche commented on GitHub (Mar 11, 2014):
May be, it’s a problem with the new implementation for support both .NET 3.5 and .NET4.
Stefan, are you sure about your implementation for generate all the build with your last changes?
The project description file for the generation are much more complicated… I have work on your code and I have difficultly to understand your last changes…
@networkthinking commented on GitHub (Mar 11, 2014):
Sorry - not working
@Pro commented on GitHub (Mar 11, 2014):
@AlexLaroche The project definition should be fine. To build the .dll's you need to select either the desired version directly, then VS takes automatically the correct project (3.5 or 4.0). To build all the .dll you need to use Batch-Build and select the configurations accordingly:

I tested the newly built .dll on my Exchange 2010 SP3 and it's working without any problems so the build process should be correct.
Maybe you are confused a bit about the Travis CI files, those are only used for CI (continuous integration testing).
@networkthinking Do you have the possibility to execute "ildasm.exe" on your server (http://msdn.microsoft.com/en-en/library/f7dy01k1%28v=vs.110%29.aspx). I think it can be found in http://www.microsoft.com/en-us/download/details.aspx?id=24826

With ildasm.exe you can check if the .dll contains the manifest. On my PC the .dll (which is exactly the same as on github) outputs:
And the manifest (from ildasm) itself contains:
@Pro commented on GitHub (Mar 11, 2014):
Did you also try this version (compiled for Ex 2010 SP2 CU5) posted before? https://dl.dropboxusercontent.com/u/3233048/V1/ExchangeDkimSigner.dll
@networkthinking commented on GitHub (Mar 11, 2014):
Stefan - This is where you lose me. I can download that DLL but at what point do I put that in the directory? During the install?
@Pro commented on GitHub (Mar 11, 2014):
Ah, ok, sorry.
Download the .dll and put it into
C:\Program Files\Exchange DkimSigner(replace the existing one).Then execute the following commands in your Exchange Management Shell:
Does this produce any error?
@Pro commented on GitHub (Mar 11, 2014):
If you get any error, post it here, then try again the same steps with these .dlls:
(these are different build versions all for Ex 2010 SP2)
v1.7.0 (before switching build process): https://github.com/Pro/dkim-exchange/raw/1ef73d29a9e50b5b88eb7bb01da80174c6e76ea9/Src/Exchange.DkimSigner/bin/Exchange%202010%20SP2/ExchangeDkimSigner.dll
v1.6.0 https://github.com/Pro/dkim-exchange/raw/v1.6.0/Src/Exchange.DkimSigner/bin/Exchange%202010%20SP2/ExchangeDkimSigner.dll
v1.5.2 https://github.com/Pro/dkim-exchange/raw/v1.5.2/Src/Exchange.DkimSigner/bin/Exchange%202010%20SP2/ExchangeDkimSigner.dll
Please post all the errors you get.
@networkthinking commented on GitHub (Mar 11, 2014):
I will try other versions but first try give me this
[PS] C:\dkim>Install-TransportAgent -Name "Exchange DkimSigner" -TransportAgentFactory "Exchange.DkimSigner.DkimSigningR
outingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll"
Could not load file or assembly 'file:///C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll' or one of its dep
endencies. The module was expected to contain an assembly manifest.
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException
+ FullyQualifiedErrorId : 3ADC3419,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
@networkthinking commented on GitHub (Mar 11, 2014):
1.52
[PS] C:\dkim>Install-TransportAgent -Name "Exchange DkimSigner" -TransportAgentFactory "Exchange.DkimSigner.DkimSigningR
outingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll"
Could not load file or assembly 'file:///C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll' or one of its dep
endencies. The module was expected to contain an assembly manifest.
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException
+ FullyQualifiedErrorId : 3ADC3419,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
[PS] C:\dkim>
@networkthinking commented on GitHub (Mar 11, 2014):
1.60
[PS] C:\dkim>Install-TransportAgent -Name "Exchange DkimSigner" -TransportAgentFactory "Exchange.DkimSigner.DkimSigningR
outingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll"
Could not load file or assembly 'file:///C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll' or one of its dep
endencies. The module was expected to contain an assembly manifest.
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException
+ FullyQualifiedErrorId : 3ADC3419,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
@networkthinking commented on GitHub (Mar 11, 2014):
1.7
[PS] C:\dkim>Install-TransportAgent -Name "Exchange DkimSigner" -TransportAgentFactory "Exchange.DkimSigner.DkimSigningR
outingAgentFactory" -AssemblyPath "C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll"
Could not load file or assembly 'file:///C:\Program Files\Exchange DkimSigner\ExchangeDkimSigner.dll' or one of its dep
endencies. The module was expected to contain an assembly manifest.
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException
+ FullyQualifiedErrorId : 3ADC3419,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
@Pro commented on GitHub (Mar 11, 2014):
Ok, this is very strange. Those versions definitely worked on Exchange 2010 SP2 (at least without any Update Rollup)! Can you try to read out the manifest using the
ildasmtool on your server as described above.Can you install Exchange 2010 SP3 on your server. Then we can test with the same exchange version which i've installed.
@Pro commented on GitHub (Mar 12, 2014):
@networkthinking A wonder happened. I ran into the same problem today (got the same Exception).
I fixed it by restarting the
WWW-Publishing Service(which is responsible for the execution of theInstall-TransportAgentcommand).In your Exchange Management Shell type in the following commands:
Then use the install script to install the agent.
If this doesn't help, try to reboot the server.
Please let me know if this helps!
@networkthinking commented on GitHub (Mar 13, 2014):
Let me try that tonight. Thanks for tip!
@networkthinking commented on GitHub (Mar 16, 2014):
Restarted W3SVC, removed all DKIM and started from scratch with new download today. I also changed from having the key in C:\dkim to a subdirectory under the install directory and called it "keys".
Works perfect now. Thanks for help everyone!
@Pro commented on GitHub (Mar 16, 2014):
Nice, thanks for your feedback!