On Sat, 28 Mar 2009, mouss wrote:

> Sahil Tandon a écrit :
> > [snip]
> > 
> > Don't use amavisd-new; it would be overkill for this task.  And from my
> > cursory understanding of the SMTP protocol, I am not sure your goal is
> > reachable even with a simple pre-queue filter.  Before passing mail to a
> > pre-queue filter (or milter), smtpd(8) applies smtpd_mumble_restrictions and
> > rejects unknown recipients.  So by the time you get to the filter, Postfix
> > has already replied with "250 2.1.5 Ok" for f...@example.com at the RCPT TO:
> > stage of the SMTP conversation.  As a result, the client believes
> > f...@example.com is a valid recipient, defeating the purpose of this 
> > exercise.
> > 
> 
> the pre-queue filter can still reject the message at end of data with a
> "no such user" style error.

Yes, but what if the message has multiple recipients, only one of which
requires this hackery?

-- 
Sahil Tandon <sa...@tandon.net>

Reply via email to