If I reject an email using ~/.mailfilters/rcptfilter I can include and
error code in the echo'd message and this will be used as the error code
in a rejection notice returned to a corresponding SMTP server.  Is there
any way to do this for the content filter, ~/.mailfilters/smtpfilter?
It seems that the error returned is always an error code 558.  e.g.:

rcpt to: <fmo...@fmp.com>
250 Ok.
data
354 Ok.
Date: Fri, 06 Apr 2012 12:37:27 -0500
From: fmo...@whudoo.fmp.com
To: fmo...@fmp.com
Subject: Test 2

this is a test
.
558-550-fmo...@fmp.com:
558 550 5.1.1 User unknown: fmo...@fmp.com (BL-1)

I want to mimic as closely as possible a 550 5.1.1 "User unknown" error
code to the sending server, but the 558 error seems to be hard coded
into courier for rules in smtpfilter.  I can't find much information on
an SMTP 558 error, but I assume it's related to content based rejection.
Is there any way to alter this?

I seem to have gotten onto an exceptionally obnoxious spam list which
sends me 5 or 10 spams every hour most of which, for some reason, get by
SpamAssassin.  The one characteristic of all of these, for which my
smtpfilter rule tests, is that my email address is always spec'd in all
caps.  Few if any legitimate correspondents ever do this, and rejecting
such email with "I don't exist" seems appropriate.  I'd like the
rejection message to resemble a standard 550 5.1.1 error as closely as
possible.

-- 
Lindsay Haisley       | "Never expect the people who caused a problem
FMP Computer Services |  to solve it." - Albert Einstein
512-259-1190          |        
http://www.fmp.com    |


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to