Hi there, I don't know if this one makes sense to you, anyway here it is since it does make sense for my own purposes.... ;o)
The problem I'm trying to solve: - we are experiencing incomming mails to be directed to lots of internal adresses (usualy > 20 recipients), most of them don't exist, some do - emails are mainly plain-text and are (by their content) very different one from another, so SpamAssassin won't apply - we are using Qmail + Qmail-Scanner mainly to relay email to internal servers (Exchange, Domino, Qmail, Postfix ...) and they will get any of these mails - most mailservers will try sending back mail to senders which either don't exist or perhaps won't even care about "user not found" messages - all of this just causes traffic we (or at least I) don't want What this solution does: - reads a configuration line from the database created out of "quarantine-attachments.txt" (Syntax: max_recip_count<space>domain<space>description) - emails will be blocked for all domains listed in the database where the final recipient count is exceeded - this mainly applies for incomming domains, since it is unusual to have a mailrelay receiving incomming mails for more than "N" internal recipients - outgoing mailings (updates of your pricelists to your clients ecc.) are not affected, since they will not be defined Does this make sense to anyone else? Comments? Suggestions? Please also reply directly to this email, thanks. Regards, Gunny PS: the patch is against qmail-scanner 1.21 (changes sub's for perlscan and db-creation); also it's still quite untested and not older than an hour Günther Mair Internet Engineer DATEF AG Negrellistrasse 13/B 39100 Bozen (BZ) Tel.: +39 0471 066500 Fax: +39 0471 066501 Email: [EMAIL PROTECTED] Web: http://www.datef.it (See attached file: max_recip_domain.patch)
max_recip_domain.patch
Description: Binary data