Hi,

trying to inherit from a plugin I ran into a problem:

Plugin: /usr/share/qpsmtpd/plugins/extended_rcpt_to

sub init
{
        my $self = shift;
        print STDERR __PACKAGE__, "::init...\n";
        $self->isa_plugin ( "rcpt_to" );
}


Configure: /etc/qpsmtpd/plugins
...
extended_rcpt_to
rcpt_ok
...

(Logging is LOGDEBUG)

gives on console:

dienstleistung-kultur:~# invoke-rc.d qpsmtpd restart
Qpsmtpd::Plugin::extended_rcpt_to::init...
could not open plugins/rcpt_to: No such file or directory at
        /usr/share/perl5/Qpsmtpd/Plugin.pm line 121.
invoke-rc.d: initscript qpsmtpd, action "restart" failed.
dienstleistung-kultur:~#

and in logfile:
...
[11872]: check_attachment hooking data_post
[11872]: trying to get config for plugin_dirs
[11872]: Loading extended_rcpt_to from
        /usr/share/qpsmtpd/plugins/extended_rcpt_to
--- EOF ---

Turning around the config doesn't help:

Configure: /etc/qpsmtpd/plugins
...
rcpt_ok
extended_rcpt_to
...

gives on console:
(same as above)

and in logfile:
...
[11938]: check_attachment hooking data_post
[11938]: trying to get config for plugin_dirs
[11938]: Loading rcpt_ok from /usr/share/qpsmtpd/plugins/rcpt_ok
[11938]: rcpt_ok hooking rcpt
[11938]: trying to get config for plugin_dirs
[11938]: Loading extended_rcpt_to from
        /usr/share/qpsmtpd/plugins/extended_rcpt_to
--- EOF ---

I'm using Debian Etch with Perl 5.8.8 and Qpsmtpd 0.32 started with
qpsmtpd-forkserver.

What I'm doing wrong?

        Ernesto (the night worker)



Reply via email to