develooper Front page | perl.qpsmtpd | Postings from January 2015

Re: Is there any example of a Qmail::Deliverable plugin

Thread Previous
Jared Johnson
January 21, 2015 17:44
Re: Is there any example of a Qmail::Deliverable plugin
Message ID:
Looks like this might do what you need:


From: Reinhard Seifert <>
Sent: Wednesday, January 21, 2015 5:18 AM
Subject: Is there any example of a Qmail::Deliverable plugin


first of all, thank you guys for developing/maintaining qpstmpd, really
a great piece of work.

I am a newbee qpstmpd user and also new to Perl... and also quite new to
qmail at that.

It took me some time to dpkg-reconfigure the debian package, but now it
is working excellent together with spamassassin.

I found the Qmail::Deliverable module for perl and installed it using

But what now?

I looked at perldoc Qmail::Deliverable and found those code lines to use
in a qpstmpd plugin

        use Qmail::Deliverable ':all';

        return DECLINED if not qmail_local $recip;
        return DECLINED if deliverable $recip;
        return DENY, "Who's that?";

I pasted those lines into /usr/share/qpstmpd/plugins/check_deliverable
and added "check_deliverable" to the /etc/qpsmtpd/plugins config file.

But when restarting the service I get an error message complaining about
the $recip variable.

I tried to find an example plugin which utilizes Qmail::Deliverable, but
did not succeed.

Can anyone give me a hint or even provide a working plugin? Also welcome
are hints regarding the startup of the qmail-deliverabled daemon. Do I
need to start it and will the plugin know about the port?


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About