1

Reject undesired email during SMTP


A
artichoke

Reject undesired email during SMTP.

This feature has already been requested in pieces in multiple places.[1],[2],[3],[4]. I am just combining these requests into one.

Undesired email should be rejected during the SMTP dialog.

Why: If email is rejected during SMTP, no bounce message ever needs to be sent. This decreases backscatter, i.e., bounced email sent to somebody other than the sender, thus a type of spam.

How:

Currently, disk quotas and mailbox sizes are not checked until after incoming mail is accepted via SMTP. Likewise, spam detected by SpamAssassin is not blocked until after it's accepted via SMTP.

The DirectAdmin developers would most likely have to add code other than Exim to achieve this. Strategies have been previously discussed.[5]

Mailbox size and disk quota should be tested, and mail analyzed by SpamAssassin, after its body is accepted, but before a final 200 OK is sent to the SMTP client.


[1] feedback.directadmin.com/b/feature-requests/option-to-reject-not-just-delete-block-all-spam-in-spamassassin-setup/

[2] forum.directadmin.com/threads/option-to-reject-not-just-delete-block-all-spam-in-spamassassin-setup.60148/

[3] forum.directadmin.com/threads/reject-at-smtp-over-quota-mailboxes.54053/

[4] forum.directadmin.com/threads/rejecting-uknown-email-addresses-during-smtp-transaction.16656/

[5] www.timj.co.uk/2004/08/exim-checking-maildir-quotas-at-smtp-rcpt-time/

A

Activity Newest / Oldest

Avatar

smtalk

Easy Spam Fighter does just that. What's wrong with it? :)


A

artichoke

I saw Easy Spam Fighter mentioned in a custombuild recipe, and I did install it. However, the documentation is fragmented, in many places, and some of it is dated as far back as 2015 or so. It was hard to tell just what it's doing. Is it really blocking during SMTP? If so, thank-you, I stand corrected. (Still need to handle mailbox size and disk quota.)

I think there is a lot of knowledge in many places, forum, old knowledgebase, new documentation, plus file downloads, and it's hard for me to collect it all into my brain and put it all together.