My Oracle Support Banner

How to Override Spam Filter Error Text? (Doc ID 2075403.1)

Last updated on MARCH 17, 2019

Applies to:

Oracle Communications Messaging Server - Version 7.0.5 and later
Information in this document applies to any platform.


After configuring spamfilterN_optional=0 (or -2), the MTA will send back a 4xy response to the client when the milter call fails for whatever reason. However, we would like to be able to customize the error text that goes along with the 451 response (even if 99% of the time it's never seen by a human).

There is an option: error_text_spamfilterN_error but it does not appear to work when a 'more specific' error is available. For example if the milter call times out, this gets sent back:

29-Jul-2015 16:51:55.27 0e343.38f.4489 tcp_local JES 0 <USERNAME@DOMAIN> rfc822; <USERNAME@DOMAIN> <HOSTNAME> ([<IP ADD>]) '' 451 4.7.1 Error 'Connection timed out' [110] reading CONNECT response length [slot 2 name 2]: <USERNAME@DOMAIN>

This information 'connection timed out reading CONNECT response length' and [slot 2 name 2] are INTERNAL details that should not be sent back to the client as they could do nothing whatsoever about it. This text was sent back even though error_text_spamfilterN_error was set to something else .. because it's considered 'more specific' ... but we'd like to override this text with something more user friendly in case a user does end up seeing it.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.