Koozali.org: home of the SME Server

qpsmtpd related FATAL PLUGIN ERROR

Offline dmacgregor963

  • **
  • 22
  • +0/-0
qpsmtpd related FATAL PLUGIN ERROR
« on: March 04, 2008, 08:57:46 PM »
Could someone please give me a lead toward figuring out why outgoing mail via webmail is failing with  messages appearing in /var/log/qpsmtpd log saying there is a plugin problem. It also happens with workstation mail client outgoing email, but not with with the mail command in a terminal session. This seems to be the key message:

5458 FATAL PLUGIN ERROR:  Can't locate object method "new" via package "Qpsmtpd::Plugin::logterse" (perhaps you forgot to load "Qpsmtpd::Plugin::logterse"?) at /usr/lib/perl5/site_perl/Qpsmtpd.pm line 326.

I don't know enough to interpret this. 

Here is a fuller excerpt from log:

5458 Accepted connection 0/40 from 127.0.0.1 / localhost
5458 Connection from localhost [127.0.0.1]
5458 FATAL PLUGIN ERROR:  Can't locate object method "new" via package "Qpsmtpd::Plugin::logterse" (perhaps you forgot to load "Qpsmtpd::Plugin::logterse"?) at /usr/lib/perl5/site_perl/Qpsmtpd.pm line 326.

5458 220 darwinserver.masked.com ESMTP
5458 dispatching EHLO localhost
5458 250-masked.com Hi localhost [127.0.0.1]
5458 250-PIPELINING
5458 250-8BITMIME
5458 250 SIZE 15000000
5458 dispatching MAIL FROM:<jamesb@masked.com>
5458 full from_parameter: FROM:<jamesb@masked.com>
5458 from email address : [<jamesb@masked.com>]
5458 getting mail from <jamesb@masked.com>
5458 250 <jamesb@masked.com>, sender OK - how exciting to get mail from you!
5458 dispatching RCPT TO:<doug@masked.com>
5458 to email address : [<doug@masked.com>]
5458 450 No plugin decided if relaying is allowed
4540 cleaning up after 5458

Doug MacGregor
MacGregor Computer Services
Fairfield, Iowa, USA

Offline byte

  • *
  • 2,183
  • +2/-0
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #1 on: March 04, 2008, 09:35:14 PM »
Could someone please give me a lead toward figuring out why outgoing mail via webmail is failing with  messages appearing in /var/log/qpsmtpd log saying there is a plugin problem.

Please report bugs and potential bugs in the bug tracker
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline dmacgregor963

  • **
  • 22
  • +0/-0
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #2 on: March 04, 2008, 10:13:59 PM »
I am very aware of the policy.  It is a good one.  But this is not a bug.  It is due a misconfigured system that came about because of a misguided workaround I used for a backup\restore bug that I reported. I was advised by Charly Brady to do a manual restore until a bug fix is released.  The details are in bug report  3979.

Now I have restored and have to manually cleanup my configuration before I can use my restored and upgraded system.  So I would appreciate advice on how to clean up this FATAL PLUGIN error issue.  Thanks for your understanding, I hope.

If you absolutely insist that I file another bug report I will but I don't see how that would be appropriate because there is no reason to think there is anything wrong with SME-Server that caused this.
Doug MacGregor
MacGregor Computer Services
Fairfield, Iowa, USA

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #3 on: March 05, 2008, 01:38:16 AM »
Try doing this from the CLI

Code: [Select]
locate logterse
If you get an error that your db is old, then run
Code: [Select]
updatedb then run the above again.

You should have it in these places:

/usr/share/qpsmtpd/plugins/logging/logterse
/etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/02logterse
/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/02logterse
/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/02logterse

Make sure your permissions are correct:

ls -la /usr/share/qpsmtpd/plugins/logging/logterse
-rw-r--r--  1 root root 4755 Jan 10 14:28 /usr/share/qpsmtpd/plugins/logging/logterse

All of those files should be owned by - smeserver-qpsmtpd-1.2.1-52.el4.sme


Let me know what you get,

John

......

Offline dmacgregor963

  • **
  • 22
  • +0/-0
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #4 on: March 05, 2008, 02:52:19 AM »
This is the result of "locate logterse"

/etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/05logterse
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/05logterse
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/05logterse
/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/02logterse
/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/02logterse
/etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/02logterse
/root/epsilon/logterse.out
/root/logterse
/root/logterse/logterse
/root/logterse/logterse.pl
/root/logterse/readme.txt
/root/logterse/05logterse
/usr/share/qpsmtpd/plugins/logging/logterse

This is the result of permission checks:

-rw-r--r--  1 root root 4755 Oct 15 04:17 /usr/share/qpsmtpd/plugins/logging/logterse

-rw-r--r--  1 root root 9 Mar 29  2007 /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/05logterse

lrwxrwxrwx  1 root root 75 Mar  4 09:20 /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/05logterse -> /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/05logterse

lrwxrwxrwx  1 root root 75 Mar  4 09:20 /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/05logterse -> /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/05logterse

-rw-r--r--  1 root root 17 Oct 15 04:17 /etc/e-smith/templates/var/service/qpsmtpd/config/plugins/02logterse

lrwxrwxrwx  1 root root 24 Mar  3 23:58 /etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/02logterse -> ../../plugins/02logterse

lrwxrwxrwx  1 root root 24 Mar  3 23:58 /etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/02logterse -> ../../plugins/02logterse

Doug MacGregor
MacGregor Computer Services
Fairfield, Iowa, USA

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #5 on: March 05, 2008, 04:25:16 AM »
Looks like I just wasted your time, sorry.  I figured something in your restore messed up some permissions somewhere.

JB
......

Offline thomasch

  • *
  • 232
  • +0/-0
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #6 on: March 05, 2008, 05:48:39 AM »
I see you have custom template.. what happen if you remove the custom template ?

remove all of this .. (backup first!)

/etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/05logterse
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/05logterse
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/05logterse

then do a signal-event post-upgrade ; signal-event reboot

thomasch

Offline dmacgregor963

  • **
  • 22
  • +0/-0
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #7 on: March 05, 2008, 01:44:05 PM »
I see you have custom template.. what happen if you remove the custom template ?

Thanks thomasch -- that worked.  Now I'll research where that custom template came from -- nothing I did knowingly. 
Doug MacGregor
MacGregor Computer Services
Fairfield, Iowa, USA

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #8 on: March 05, 2008, 02:20:56 PM »
I saw those as well and ASSumed you had put them there for a reason.  Guess that shows me.
......

Offline brianr

  • *
  • 990
  • +2/-0
Re: qpsmtpd related FATAL PLUGIN ERROR
« Reply #9 on: March 05, 2008, 03:02:32 PM »
Now I'll research where that custom template came from -- nothing I did knowingly. 

No need for that - they came from an earlier version of the spamfilter/logterse package, then logterse got put into the base by Shad.

I have deleted quite a few in my time, but never seen the PLUGIN ERROR message, generally you just get 2 logterse lines in the qpsmtpd log.

ah well!
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........