Hi John,

you can use the HostIs matcher:
<mailet match="HostIs=domain" class="Null"/>

if you use jdbc as store you can use sql directly. For example:

delete from spool where recipients like '[EMAIL PROTECTED]';


bye
Norman

John Rose schrieb:
We are running James version 2.2 on a Windows 2003 Server. We are a software solution provider and we use James to process our email function within our Apache application, not for delivery of our own internal email. The application supports email functionality between users of our application. We will be upgrading to James 2.3.1 shortly, but in the meantime, we are having a problem with frequent backlog of emails in my spool folder due to spam. A large number of emails are attempting to be delivered to a valid domain address. Our application would never deliver directly to the domain in question, so I would like to remove these messages from even making it to the spool. In this section of the config.xml, can I have the RecipientIs changed to an entire domain rather than a specific email address. So could the line be something like - <mailet match="[EMAIL PROTECTED]" class="Null"/>. I would like to have all incoming emails going to xxxyyy.com to not be processed and killed.
            <processor> transport </processor>
         </mailet>
         -->
                        <!-- End of White List -->
<!-- Check for delivery from a known spam server --> <!-- This set of matchers/mailets redirect all emails from known --> <!-- black holes, open relays, and spam servers to the spam processor --> <!-- For this set to function properly, the spam processor must be configured. --> <mailet match="InSpammerBlacklist=dnsbl.njabl.org" class="ToProcessor">
                                <processor> spam </processor>
<notice>550 Requested action not taken: rejected - see http://njabl.org/ </notice>
                        </mailet>
<mailet match="InSpammerBlacklist=relays.ordb.org" class="ToProcessor">
                                <processor> spam </processor>
<notice>550 Requested action not taken: rejected - see http://www.ordb.org/ </notice>
                        </mailet>
<!-- Sample matching to kill a message (send to Null) -->
                        <!--
         <mailet match="[EMAIL PROTECTED]" class="Null"/>
         -->
<!-- Send remaining mails to the transport processor for either local or remote delivery -->
                        <mailet match="All" class="ToProcessor">
                                <processor> transport </processor>
                        </mailet>
                </processor>

Thank you for your help in this matter.
John Rose
Database Administrator





********************************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorized.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.
********************************************************************************


!DSPAM:1,46d2ec3b319421633552286!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to