procmail error prevents authenticated smtp

3 posts / 0 new
Last post
#1 Thu, 04/28/2011 - 02:29
mnt_schred

procmail error prevents authenticated smtp

Dear MB,

I've got an virtualmin machine based on SLES11.

The problem occours when postfix hands over the mail to procmail (as specified in .forward), from the procmail log I see the following error:

check: no loaded plugin implements 'check_main': cannot scan! at /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line 164.

I've checked the rules and v320.pre contains the line: loadplugin Mail::SpamAssassin::Plugin::Check

Said perl module is installed.

Does anybody know what is wrong and how I am able to fix it?

Fri, 04/29/2011 - 13:14
andreychek

Howdy,

Yeah, SLES11 isn't one of the Virtualmin supported distros, so it's possible you could run into some strange problems.

I hadn't heard of that problem before, but doing some digging on Google, and this fellow here seemed to run into a similar problem:

http://www.mail-archive.com/users@spamassassin.apache.org/msg43027.html

Does anything in there help?

One of the things they suggested doing was to run "spamassassin -D --lint", and verify that the config file that loads that particular plugin is being loaded as expected.

-Eric

Wed, 05/25/2011 - 14:49
cpuburst

Hi Forum,

Mnt_shred asked me to answer this for him do the the technical nature in this reply.

-Eric, I'll try to reply to the fullest of my ability.

1) The module that is causing trouble is according to CPAN fine:

cpan> install Mail::SpamAssassin::Plugin::Check
 *lots of text later*
Mail::SpamAssassin::Plugin::Check is up to date (undef).

2) The module is nicely loaded from when I execute "cat some.mail.file|spamassassin -D --lint" from CLI:  [12825] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC

3) There are some errors, warnings and failures which can be ignored (iyam) because these aren't related to the problem or are for unused parts of SA:

c:~ # grep -i error out.D.lint.txt
c:~ # grep -i warn out.D.lint.txt
[12825] dbg: config: warning: score set for non-existent rule OUTLOOK_3416
[12825] dbg: config: warning: score set for non-existent rule RCVD_IN_DOB
[12825] dbg: config: warning: score set for non-existent rule DNS_FROM_DOB
[12825] dbg: config: warning: score set for non-existent rule XMAILER_MIMEOLE_OL_C9068
 
Failed, but these aren't necessary.
c:~ # grep -i fail out.D.lint.txt
[12825] dbg: diag: module not installed: Mail::SPF::Query ('require' failed)
[12825] dbg: diag: module not installed: IP::Country::Fast ('require' failed)
[12825] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed)
[12825] dbg: diag: module not installed: Net::Ident ('require' failed)
[12825] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[12825] dbg: diag: module not installed: Mail::DomainKeys ('require' failed)
[12825] dbg: diag: module not installed: Mail::DKIM ('require' failed)
[12825] dbg: diag: module not installed: Encode::Detect ('require' failed) 

Given point 2, I have the strong suspicion that the problems stem from a misconfiguration of the PERL environment once executed from prostfix/procmail since running from CLI doesn't render the same problems. I'm near n00b when it comes to PERL, so I have no clue where to look for answers on this one. :-(

I've attached the output of -D --lint. I hope it helps.

Thanks in advance!

Topic locked