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/
