Upgrade from 2.8.6.2 to 3.3.1.0 fails: Could not load mailet (SenderDKIMVerify)

Hello,

yesterday I tried to update an "old" Ciphermail installation from version 2.8.6.2 to version 3.3.1.0 by installing the three packages as suggested in the documentation:

dpkg -i djigzo_3.3.1-0_all.deb
dpkg -i djigzo-postgres_3.3.1-0_all.deb
dpkg -i djigzo-web_3.3.1-0_all.deb

Then I deleted the cache (rm -r /var/cache/tomcat6/Catalina/web) and restarted Tomcat6.

Nevertheless it is not possible to start Ciphermail due to the following error:

James Mail Server 2.3.1
01 Mar 2018 18:57:33 | INFO Initializing matcher: MaxRelay (mitm.application.djigzo.james.matchers.MaxRelay) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Relay limit 100 (mitm.application.djigzo.james.matchers.MaxRelay) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.CreateMailID) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.Log) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: GlobalVerifyHMACHeader (mitm.application.djigzo.james.matchers.GlobalVerifyHMACHeader) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.MailAttributes) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: SenderEvaluateUserProperty (mitm.application.djigzo.james.matchers.SenderEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Expression: #{user.subjectFilter.enabled}!='true' (mitm.application.djigzo.james.matchers.SenderEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: RecipientEvaluateUserProperty (mitm.application.djigzo.james.matchers.RecipientEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Expression: #{user.subjectFilter.enabled}!='true' (mitm.application.djigzo.james.matchers.RecipientEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.MailAttributes) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.FilterSubject) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.Log) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: RecipientHasLocality (mitm.application.djigzo.james.matchers.RecipientHasLocality) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO User locality: internal (mitm.application.djigzo.james.matchers.RecipientHasLocality) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.Log) [Phoenix-Monitor]
Unable to init mailet SenderDKIMVerify
Check spool manager logs for more details.
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "spoolmanager" failed to pass through the Starting stage. (Reason: org.apache.mailet.MailetException: Could not load mailet (SenderDKIMVerify);
  nested exception is:
        java.lang.ClassNotFoundException: Requested mailet not found: SenderDKIMVerify. looked in [, mitm.application.djigzo.pro.james.mailets., mitm.application.djigzo.james.mailets., org.apache.james.transport.mailets.]).
        at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
        at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
        at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
        at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
        at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
        at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
        at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
        at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)

Kind regards,

Stefan

Some classes have been renamed. For example:

SenderDKIMVerify -> SenderPropertyDKIMVerify
SenderDKIMSign -> SenderPropertyDKIMSign

The xml file that defines the mail flow was also updated to reflect
those changes. I guess your config.xml file has been locally changed and
you chose not to accept the new config.xml (keeping the modified one).

If you want to keep your modified config.xml, the best is to do a diff
and check the differences or manually rename the mailets.

Kind regards,

Martijn Brinkers

···

On 02-03-18 19:47, Stefan Günther via Users wrote:

Hello,

yesterday I tried to update an "old" Ciphermail installation from version 2.8.6.2 to version 3.3.1.0 by installing the three packages as suggested in the documentation:

dpkg -i djigzo_3.3.1-0_all.deb
dpkg -i djigzo-postgres_3.3.1-0_all.deb
dpkg -i djigzo-web_3.3.1-0_all.deb

Then I deleted the cache (rm -r /var/cache/tomcat6/Catalina/web) and restarted Tomcat6.

Nevertheless it is not possible to start Ciphermail due to the following error:

James Mail Server 2.3.1
01 Mar 2018 18:57:33 | INFO Initializing matcher: MaxRelay (mitm.application.djigzo.james.matchers.MaxRelay) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Relay limit 100 (mitm.application.djigzo.james.matchers.MaxRelay) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.CreateMailID) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.Log) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: GlobalVerifyHMACHeader (mitm.application.djigzo.james.matchers.GlobalVerifyHMACHeader) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.MailAttributes) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: SenderEvaluateUserProperty (mitm.application.djigzo.james.matchers.SenderEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Expression: #{user.subjectFilter.enabled}!='true' (mitm.application.djigzo.james.matchers.SenderEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: RecipientEvaluateUserProperty (mitm.application.djigzo.james.matchers.RecipientEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Expression: #{user.subjectFilter.enabled}!='true' (mitm.application.djigzo.james.matchers.RecipientEvaluateUserProperty) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.MailAttributes) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.FilterSubject) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.Log) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO Initializing matcher: RecipientHasLocality (mitm.application.djigzo.james.matchers.RecipientHasLocality) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO User locality: internal (mitm.application.djigzo.james.matchers.RecipientHasLocality) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.GotoProcessor) [Phoenix-Monitor]
01 Mar 2018 18:57:33 | INFO catchRuntimeExceptions: true; catchErrors: true (mitm.application.djigzo.james.mailets.Log) [Phoenix-Monitor]
Unable to init mailet SenderDKIMVerify
Check spool manager logs for more details.
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "spoolmanager" failed to pass through the Starting stage. (Reason: org.apache.mailet.MailetException: Could not load mailet (SenderDKIMVerify);
   nested exception is:
         java.lang.ClassNotFoundException: Requested mailet not found: SenderDKIMVerify. looked in [, mitm.application.djigzo.pro.james.mailets., mitm.application.djigzo.james.mailets., org.apache.james.transport.mailets.]).
         at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
         at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
         at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
         at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
         at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
         at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
         at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
         at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)

--
CipherMail email encryption

Email encryption with support for S/MIME, OpenPGP, PDF encryption and
secure webmail pull.

Twitter: http://twitter.com/CipherMail