CommandByMail extension not working on RT 4.0.5

I recently upgraded our RT 3.8.9 by making a new RT 4.0.5 installation and
then moving and upgrading the database by the upgrade instructions. Before
doing so, I upgraded the OS of the computer from Debian Lenny to Debian
Squeeze.

After that, I installed RT-Extension-CommandByMail-0.10 using the
instructions in its INSTALL file.

perl Makefile.PL
make
make install

I made the required changes to /opt/rt4/etc/RT_SiteConfig.pm:

@MailPlugins = qw(Auth::MailFrom Filter::TakeAction);
Set(@Plugins, (qw(RT::Extension::CommandByMail)));

However, CommandByMail is not correctly responding to commands in the email
body. The emails just open tickets via the default rt-mailgate
configuration. Additionally, my /var/log/user.log, debug.log, messages
files aren’t showing any CommandByMail entries at all. On the 3.8.9
configuration, there would be entries every time CommandByMail ran.

I have the following level options set in RT_SiteConfig.pm:

Set($LogToSyslog, “debug”);
Set($LogToScreen, “debug”);

What should be my next troubleshooting step?

I made the required changes to /opt/rt4/etc/RT_SiteConfig.pm:

@MailPlugins = qw(Auth::MailFrom Filter::TakeAction);
Set(@Plugins, (qw(RT::Extension::CommandByMail)));

You’re using the RT 3.6 era syntax for @MailPlugins, not the 3.8 and
beyond era syntax.

Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction));

This is noted in INSTALL.

That’s true, but I tried it both ways. I just changed it:

Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction));

And then I issued /etc/init.d/apache2 restart. But the ticket still doesn’t
process correctly and no CommandByMail messages in the logs.

I suggest you check /Admin/Tools/Configuration.html to see if @MailPlugins and
@Plugins were set successfully.

sunnavyOn 12-04-18 09:30, Fritz Mahnke wrote:

That’s true, but I tried it both ways. I just changed it:

Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction));

And then I issued /etc/init.d/apache2 restart. But the ticket still doesn’t
process correctly and no CommandByMail messages in the logs.

Thank you very much for that useful hint. @MailPlugins was not being set
correctly and I traced it to a typo in RT_SiteConfig.pm after all.

Thanks again!