any help on this? i want to try the spam filtering actually works by preventing 
hotmail ip to send me emails.


On 21-May-2011, at 11:38 PM, Daniel Tan wrote:

> hi,
> 
> i am trying to classify mail from hotmail as spam but in my console, there is 
> an entry 65.55.116.* which authorizes hotmail already even though i have 
> tried to block it.
> another thing i would like to know whether we can block spam like by text 
> body or subject header as the link 
> https://svn.apache.org/repos/asf/james/server/trunk/container-spring/src/main/config/examples/mailetcontainer.xml
>  shows we can configure dnsbl.
> 
> jvm 1    | INFO  23:33:05,302 | james.mailetcontext | Authorized addresses: 
> [219.88.106.80/255.255.255.255, 203.119.4.6/255.255.255.255, 
> 216.35.187.246/255.255.255.255, 194.205.62.42/255.255.255.255, 
> 64.55.105.9/255.255.255.255, 195.7.77.20/255.255.255.255, 
> 64.94.110.11/255.255.255.255, 206.253.214.102/255.255.255.255, 
> 65.55.116.93/255.255.255.255, 65.55.116.95/255.255.255.255, 
> 65.55.116.94/255.255.255.255, 65.55.116.98/255.255.255.255, 
> 194.205.62.122/255.255.255.255, 194.205.62.62/255.255.255.255, 
> 65.55.116.96/255.255.255.255, 65.55.116.97/255.255.255.255, 
> 212.181.91.6/255.255.255.255, 65.55.116.106/255.255.255.255]
> jvm 1    | INFO  23:33:05,302 | james.mailetcontainer | Matcher 
> SenderInFakeDomain=64.55.105.9,64.94.110.11,194.205.62.122,194.205.62.62,195.7.77.20,206.253.214.102,212.181.91.6,219.88.106.80,194.205.62.42,216.35.187.246,203.119.4.6,65.55.116.106,65.55.116.94,65.55.116.95,65.55.116.93,65.55.116.96,65.55.116.97,65.55.116.98
>  instantiated.
> 
> 
> 
> the mail is able to be spooled to me even though i have mailet to block it.
> 
> jvm 1    | INFO  23:33:16,056 | james.smtpserver | Successfully spooled mail 
> Mail1305991996007-1 from [email protected] on 65.55.116.93 for 
> [[email protected]]
> 
> 
> my mailetcontainer.xml as below.
> 
> <?xml version="1.0"?>
> <!--
>  Licensed to the Apache Software Foundation (ASF) under one   
>  or more contributor license agreements.  See the NOTICE file 
>  distributed with this work for additional information        
>  regarding copyright ownership.  The ASF licenses this file   
>  to you under the Apache License, Version 2.0 (the            
>  "License"); you may not use this file except in compliance   
>  with the License.  You may obtain a copy of the License at   
> 
>    http://www.apache.org/licenses/LICENSE-2.0                 
> 
>  Unless required by applicable law or agreed to in writing,   
>  software distributed under the License is distributed on an  
>  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
>  KIND, either express or implied.  See the License for the    
>  specific language governing permissions and limitations      
>  under the License.                                           
> --> 
> 
> <!-- See http://james.apache.org/server/3/config.html for usage -->
> 
> <mailetcontainer>
> 
>    <threads> 20 </threads>
> 
>    <mailetpackages>
>      <mailetpackage>org.apache.james.transport.mailets</mailetpackage>
>      <mailetpackage>org.apache.james.mailet.crypto.mailet</mailetpackage>
>      <mailetpackage>org.apache.james.imapserver.sieve</mailetpackage>      
>    </mailetpackages>
> 
>    <matcherpackages>
>      <matcherpackage>org.apache.james.transport.matchers</matcherpackage>
>      <matcherpackage>org.apache.james.mailet.crypto.matchers</matcherpackage>
>      
> <matcherpackage>org.apache.james.mailetcontainer.lib.matchers</matcherpackage>
>    </matcherpackages>
> 
>    <processor name="root">
>       <mailet match="All" class="PostmasterAlias"/>
>       <mailet match="RelayLimit=30" class="Null"/>
>   <mailet match="SMTPAuthSuccessful" class="ToProcessor">
>          <processor>transport</processor>
>       </mailet>
>       <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="All" class="ToProcessor">
>          <processor>transport</processor>
>       </mailet>
>    </processor>
> 
>    <processor name="transport">
>       <mailet match="SMTPAuthSuccessful" class="SetMimeHeader">
>          <name>X-UserIsAuth</name>
>          <value>true</value>
>       </mailet>
>       <mailet match="All" class="VirtualUserTable">
>           <virtualusertable>DefaultVirtualUserTable</virtualusertable>
>       </mailet>
>       <mailet match="RecipientIsLocal" class="LocalDelivery"/>
>       <mailet match="HostIsLocal" class="ToProcessor">
>          <processor>local-address-error</processor>
>          <notice>550 - Requested action not taken: no such user here</notice>
>       </mailet>
>       <mailet match="All" class="RemoteDelivery">
>          <outgoingQueue>outgoing</outgoingQueue>
>          <delayTime>5 minutes</delayTime>
>          <delayTime>10 minutes</delayTime>
>          <delayTime>45 minutes</delayTime>
>          <delayTime>2 hours</delayTime>
>          <delayTime>3 hours</delayTime>
>          <delayTime>6 hours</delayTime>
>          <maxRetries>25</maxRetries>
>          <maxDnsProblemRetries>0</maxDnsProblemRetries>
>          <deliveryThreads>10</deliveryThreads>
>          <sendpartial>true</sendpartial>
>          <bounceProcessor>bounces</bounceProcessor>
>       </mailet>
>    </processor>
> 
>    <processor name="error">
>       <mailet match="All" class="ToRepository">
>          <repositoryPath>file://var/mail/error/</repositoryPath>
>       </mailet>
>    </processor>
> 
>    <processor name="spam">
>       <mailet match="All" class="ToRepository">
>          <repositoryPath>file://var/mail/spam/</repositoryPath>
>       </mailet>
>    </processor>
> 
>    <processor name="local-address-error">
>       <mailet match="All" class="ToRepository">
>          <repositoryPath>file://var/mail/address-error/</repositoryPath>
>       </mailet>
>    </processor>
> 
>    <processor name="relay-denied">
>       <mailet match="All" class="ToRepository">
>          <repositoryPath>file://var/mail/relay-denied/</repositoryPath>
>       </mailet>
>    </processor>
> 
>    <processor name="bounces">
>       <mailet match="All" class="DSNBounce">
>          <passThrough>false</passThrough>
>        </mailet>
> 
> <!-- Anti-spam processing -->
>         <!-- The following two entries avoid double anti-spam analysis -->
>         <!-- for forwarded messages. -->
>         <!-- Has spam checking already been done? -->
>         <mailet match="HasMailAttribute=spamChecked" class="ToProcessor">
>            <processor> transport </processor>
>         </mailet>
>         <!-- Spam checking will not be done twice -->
>         <mailet match="All" class="SetMailAttribute">
>            <spamChecked>true</spamChecked>
>         </mailet>
>  <mailet 
> match="SenderInFakeDomain=64.55.105.9,64.94.110.11,194.205.62.122,194.205.62.62,195.7.77.20,206.253.214.102,212.181.91.6,219.88.106.80,194.205.62.42,216.35.187.246,203.119.4.6,65.55.116.106,65.55.116.94,65.55.116.95,65.55.116.93,65.55.116.96,65.55.116.97,65.55.116.98"
>  class="ToProcessor">
>            <processor> spam </processor>
>         </mailet>
>    </processor>
> 
> </mailetcontainer>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to