On Monday, Jun 23, 2003, at 21:02 Europe/London, Steph L wrote:
Looking at the return codes it seems that currently there is no DISCARD
return code. Is it possible to add such return code in next versions ?
Is it some qmail's limitation ? I'm rather used to postfix/sendmail and
these MTAs offer some DISCARD feature ?
qpsmtpd is quite strict to the SMTP spec on this - either it delivers or it sends a failure return code (4xx or 5xx).
Though honestly I've been thinking of adding something like this recently.
OK, done. If you return DISCARD from a body hook now it will claim successful delivery but silently drop the message. I don't like this option, but it can actually work in conjunction with (say) a spam filter with a quarantine system where the filter automatically quarantines the spam, so you need to not run the queue part.
Matt.
