On Feb 3, 2006, at 23:27, Ovid wrote:

Hi all,

I'm writing a plugin which needs to check the email and if it's for a
particular domain, I need the plugin to do three things:

1.  Take some actions based on the content of the email body.
2.  NOT forward the email to the actual MTA (postfix in this case).
3.  Tell the client the email was sent successfully.

In doing some googling, it appears that qpsmtpd plugins used to handle
this by returning DISCARD.  However, that was removed two and a half
years ago:  http://svn.perl.org/viewcvs/qpsmtpd?rev=165&view=rev
[...]
That seems to be the behavior I want.  How do I get this behavior with
the current version of qpsmtpd?

You might want to take a look at the spamtrap plugin I just put on the wiki:
        http://wiki.qpsmtpd.org/spamtrap

or at the DONE return code if that's more of what you're looking for.

-Johan

Reply via email to