Serge Knystautas wrote:
On 5/26/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
Is what you propose a service like:

public class RewritingService {
        public MailAddress[] rewrite(MailAddress address);
}

Just to throw it out there... one thing that makes sendmail rather
strong is that since it's aliases are quite structured, it can know
(and thus reject during SMTP protocol) recipients that it cannot
handle for authoritative domain.  So perhaps add both a rewrite() and
a handles() method?

Sendmail merges aliases, virtualusertable, users entries to fill in a single map for the matching.

We can't do this because we have mailets.

Let's say I have this mailet as my first mailet:
<mailet match="[EMAIL PROTECTED]" class="ToRepository">
 ..repository infos..
</mailet>

In the SMTPHandler we are not able to understand that the mailet will introduce some sort of whitelist for particular senders.

If we want to provide full fastfailing to the SMTPHandler we ask the users to move much of their logic from Mailets processed by the SpoolManager to Handlers processed by the SMTPServer.

I could also have mailets that allow only specific combinations of sender/recipients and so on.

So we can support facilities for site administrators to manually insert "filters" in the SMTPhandler to fastfail, but we'll never automagically do that if we don't remove the Mailet support.

A middle step would be the "in-handler" processor: add a processor that is executed after the data is closed (as a MessageHandler) that simply run a full Processor (defined in the handler configuration, with it's own spoolrepository) and if the message is GHOSTED consider it a succesfull delivery, if the message is sent to ERROR it can reply an SMTP error to the data.

SMTP specifications says that a similar process should take a small amount of time (to avoid duplicate send).

This would not give us fastfail at MAIL or RCPT commands but would give an administrator one more level of control.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to