[spamdyke-users] Hard error return

2013-09-18 Thread Gary Gendel
Sam,

I suppose that all rejects are sent back as temporary failures.  Is it 
possible to select specific ones and send back as permanent?  For 
example, I have two spam sites that pound my server daily over several 
years.  Do you think sending back permanent errors will dissuade these 
sites or at least have them not continuously retry?

Gary

___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users


Re: [spamdyke-users] Hard error return

2013-09-18 Thread Sam Clippinger
Actually, temporary rejections are only sent when the rejection could be caused 
by a DNS failure or timeout.  Everything else is permanent.  Specifically, 
these filters send permanent error codes:
dns-blacklist-entry
dns-blacklist-file
filter-level
greeting-delay-secs
header-blacklist-entry
header-blacklist-file
ip-blacklist-entry
ip-blacklist-file
ip-in-rdns-keyword-blacklist-entry
ip-in-rdns-keyword-blacklist-file
rdns-blacklist-dir
rdns-blacklist-entry
rdns-blacklist-file
recipient-blacklist-entry
recipient-blacklist-file
reject-identical-sender-recipient
reject-ip-in-cc-rdns
rhs-blacklist-entry
rhs-blacklist-file
sender-blacklist-entry
sender-blacklist-file

These filters send temporary error codes:
connection-timeout-secs
graylist-level
idle-timeout-secs
max-recipients
reject-empty-rdns
reject-missing-sender-mx
reject-unresolvable-rdns

But to answer your question, I doubt sending permanent error codes will make 
the spammers stop.  In my experience, they don't seem to care whether their 
emails go through or not; I guess they get paid just for making the attempt.  
If you want to change a filter from sending a temporary error to a permanent 
one, you can edit spamdyke.h starting around line 516.  You'll see each 
rejection message is defined over three lines of code.  Find the one you want 
to change and replace REJECT_SEVERITY_TEMPORARY with REJECT_SEVERITY_PERMANENT. 
 Re-run "make", reinstall the spamdyke binary and you're done.

Good luck!

-- Sam Clippinger




On Sep 18, 2013, at 7:25 AM, Gary Gendel wrote:

> Sam,
> 
> I suppose that all rejects are sent back as temporary failures.  Is it 
> possible to select specific ones and send back as permanent?  For 
> example, I have two spam sites that pound my server daily over several 
> years.  Do you think sending back permanent errors will dissuade these 
> sites or at least have them not continuously retry?
> 
> Gary
> 
> ___
> spamdyke-users mailing list
> spamdyke-users@spamdyke.org
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users

___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users