ietf-smtp
[Top] [All Lists]

acceptings partically a message

2007-07-16 22:26:30

 Hello,

My use case is, that I want to accept a message partially during the SMTP dialog. Imagine one mail with two recipients, spamtrap(_at_)example(_dot_)org and mailing-list(_at_)example(_dot_)org is coming to my server. I do not want to accept the mail for mailing-list(_at_)example(_dot_)org, since later it will be bounced, may end in a spamtrap and my server will be blacklisted. At the same time I want to accept the mail for (my) spamtrap(_at_)example(_dot_)org, in order to improve my spam filter.

How shall such messages be accepted for some recipients and rejected for others. I want to use this on port 25. Even if LMTP has this nice feature, it is out of question.

So far I am aware of two two ideas:

EHLO server.example.com
250 OK server.example.org
MAIL FROM: spammer(_at_)example(_dot_)com
250 OK
RCPT TO: spamtrap(_at_)example(_dot_)org
250 OK
RCPT TO: mailing-list(_at_)example(_dot_)org
451 Try again later
DATA ...

or

EHLO server.example.com
250 OK server.example.org
MAIL FROM: spammer(_at_)example(_dot_)com
250 OK
RCPT TO: spamtrap(_at_)example(_dot_)org
250 OK
RCPT TO: mailing-list(_at_)example(_dot_)org
250 OK
DATA
354 OK
That is all.
.
550 Mail rejected by mailing-list(_at_)example(_dot_)org

In the first case we make grey-listing, in the second there is no confirmation for which addresses the mail is received.
What is the more correct way to implement this partially acceptance?

Със здраве,
Дилян

<Prev in Thread] Current Thread [Next in Thread>