i move the antispam mailet to the top of the transport processor and my logs
shows the same thing.
jvm 1 | INFO 23:15:20,700 | james.mailetcontainer | Mailet PostmasterAlias
instantiated.
jvm 1 | INFO 23:15:20,766 | james.mailetcontainer | Matcher RelayLimit=30
instantiated.
jvm 1 | INFO 23:15:20,771 | james.mailetcontainer | Mailet Null
instantiated.
jvm 1 | INFO 23:15:20,805 | james.mailetcontainer | Matcher
SMTPAuthSuccessful instantiated.
jvm 1 | INFO 23:15:20,880 | james.mailetcontainer | Mailet ToProcessor
instantiated.
jvm 1 | INFO 23:15:21,045 | james.mailetcontainer | Matcher
InSpammerBlacklist=dnsbl.njabl.org. instantiated.
jvm 1 | INFO 23:15:21,045 | james.mailetcontainer | Mailet ToProcessor
instantiated.
jvm 1 | INFO 23:15:21,456 | james.mailetcontainer | Matcher
HasMailAttribute=spamChecked instantiated.
jvm 1 | INFO 23:15:21,457 | james.mailetcontainer | Mailet ToProcessor
instantiated.
jvm 1 | INFO 23:15:21,458 | james.mailetcontainer | Matcher All
instantiated.
jvm 1 | INFO 23:15:21,477 | james.mailetcontainer | Mailet SetMailAttribute
instantiated.
jvm 1 | INFO 23:15:21,635 | 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:15:24,929 | 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.
jvm 1 | INFO 23:15:24,931 | james.mailetcontainer | Mailet ToProcessor
instantiated.
jvm 1 | INFO 23:15:24,932 | james.mailetcontainer | Matcher All
instantiated.
jvm 1 | INFO 23:15:24,933 | james.mailetcontainer | Mailet ToProcessor
instantiated.
jvm 1 | INFO 23:15:24,937 | james.mailetcontainer | Matcher
SMTPAuthSuccessful instantiated.
jvm 1 | INFO 23:15:24,950 | james.mailetcontainer | Mailet SetMimeHeader
instantiated.
jvm 1 | INFO 23:15:24,951 | james.mailetcontainer | Matcher All
instantiated.
jvm 1 | INFO 23:15:25,902 | james.mailetcontainer | Mailet VirtualUserTable
instantiated.
jvm 1 | INFO 23:15:25,953 | james.mailetcontainer | Matcher
RecipientIsLocal instantiated.
jvm 1 | INFO 23:15:32,173 | james.mailetcontainer | Mailet LocalDelivery
instantiated.
jvm 1 | INFO 23:15:32,180 | james.mailetcontainer | Matcher HostIsLocal
instantiated.
jvm 1 | INFO 23:15:32,482 | james.mailetcontainer | Mailet ToProcessor
instantiated.
jvm 1 | INFO 23:15:32,484 | james.mailetcontainer | Matcher All
instantiated.
jvm 1 | INFO 23:15:33,291 | james.mailetcontext | maxRetries is larger than
total number of attempts specified. Increasing last delayTime with 24 attempts
jvm 1 | INFO 23:15:33,291 | james.mailetcontext | Delay of 300000 msecs is
now attempted: 25 times
in smtpserver.xml, i have the following.
<handler class="org.apache.james.smtpserver.fastfail.DNSRBLHandler">
<getDetail> true </getDetail>
<rblservers>
<whitelist> query.bondedsender.org. </whitelist>
<blacklist> sbl-xbl.spamhaus.org. </blacklist>
<blacklist> dul.dnsbl.sorbs.net. </blacklist>
<blacklist> list.dsbl.org. </blacklist>
</rblservers>
</handler>
in mailetcontainer.xml, i have the following.
....
<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>
<!-- 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>
<mailet match="All" class="ToProcessor">
<processor>transport</processor>
</mailet>
</processor>
...
<processor name="bounces">
<mailet match="All" class="DSNBounce">
<passThrough>false</passThrough>
</mailet>
<mail.smtp.localhost>SMAIL MailServer</mail.smtp.localhost>
</processor>
</mailetcontainer>
On 24-May-2011, at 11:18 AM, Eric Charles wrote:
> Hi,
> not sure, but your antispam mailets sit in the bounces processor.
>
> Would it be possible that our first 2 log lines refer to a mail, and the the
> 3rd log line where hotmail mail is delivered refer to another mail ?
>
> Can you move the antispam mailets at the top of the transport processor for
> example ?
>
> You can enable the mailet InSpammerBlacklist=dnsbl.njabl.org for dnsbl.
>
> For "block by text body or subject header", there are matchers such as
> CompareNumericHeaderValue, HasHeader, but nothing atm (I think) for text body.
>
> Tks,
>
> - Eric
>
>
> On 23/05/2011 16:39, Daniel Tan wrote:
>> 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]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]