[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for looping spambucket

From: Joe Maimon
Subject: Re: Patch for looping spambucket
Date: Fri, 13 Jul 2007 19:31:23 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728 MultiZilla/

The patches I had posted deal with this issue also.

Andrew Daviel wrote:

If "-b" is set to define a spambucket, and "-i" is not set, and "-r" is set, rejected spam may loop in sendmail until the loop counter overflows (21 ?).

Although setting "-i" seems to solve the looping problem, some
mail setups may wish to filter outgoing mail (webmail interface on the same server) or preprocess so that all mail comes via localhost.

The following patch forces mail sent to the spambucket as the only recipient to be accepted:

@@ -904,7 +994,13 @@
debug(D_RCPT, "Total of %d actual recipients",(int)assassin->expandedrcpt.size());
+ debug(D_RCPT, "size %d rcpt -%s- spambucket -%s-",assassin->expandedrcpt.size(),envrcpt[0],spambucket) ; + if (assassin->expandedrcpt.size() == 1 && strcmp(envrcpt[0],spambucket) == 0) {
+          debug(D_RCPT, "Accept mail for spambucket") ;
+          return SMFIS_ACCEPT;  // avoid sendmail loop
+       }

        if (assassin->numrcpt() == 0)

I had to set '-b <address@hidden>' rather than just
'-b spambucket' for this to work.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]