I believe you want DONE in the data_post section... From README.plugins: =head2 data_post
Hook after receiving all data; just before the message is queued. DENY - Return a hard failure code DENYSOFT - Return a soft failure code DENYHARD - Return a hard failure code and disconnect DONE - skip further processing (message will not be queued) All other codes and the message will be queued normally On Fri, Feb 03, 2006 at 02:27:01PM -0800, 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 > > >From the docs for DISCARD > (http://www.nntp.perl.org/group/perl.cvs.qpsmtpd/27): > > =item C<DISCARD> > > This can only be returned for the DATA phase. It tells qpsmtpd to > return 250 to the client implying delivery success, but silently > drops the email. > > That seems to be the behavior I want. How do I get this behavior with > the current version of qpsmtpd? > > Cheers, > Ovid > > -- > If this message is a response to a question on a mailing list, please send > follow up questions to the list. > > Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/ > -- www.suave.net - Anthony Ball - [EMAIL PROTECTED] OSB - http://rivendell.suave.net/Beer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Prepared by a professional, don't try this at home.
