You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Christian Salzer <sp...@salzer-online.dnsalias.net> on 2004/04/14 11:34:35 UTC

Probs with RBL/Dial-Up and trusted_networks

Hi,

I'm running SpamAssassin/spamd 2.63 (2004-01-11) and have probs with FPs.

If people mail me from e.g. web.de, SA/RBL-Tests are scoring the mail as 
send from a dialup-network, which is indeed correct, the user wrote the 
mail from an dialup-ip in his browser, but it is delivered to me via the 
official smtp-server, which is not in RBL-Lists.

I tried to add a trusted_networks setting for the mail-server of web.de, 
but that didn't work.

Am I wrong or should this be the correct way to solve this problem?

Any help is appreciated,

Christian Salzer


The SA-Report:

Content analysis details:   (13.3 points, 5.0 required)

 pts rule name              description
---- ---------------------- 
--------------------------------------------------
 0.1 HTML_60_70             BODY: Message is 60% to 70% HTML
 0.1 HTML_MESSAGE           BODY: HTML included in message
 5.4 BAYES_99               BODY: Bayesian spam probability is 99 to 100%
                            [score: 0.9993]
 0.3 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
 1.0 HTML_IMAGE_ONLY_04     BODY: HTML: images with 200-400 bytes of words
 3.5 RCVD_IN_NJABL_DIALUP   RBL: NJABL: dialup sender did non-local SMTP
                            [217.234.103.80 listed in dnsbl.njabl.org]
 2.6 RCVD_IN_DYNABLOCK      RBL: Sent directly from dynamic IP address
                            [217.234.103.80 listed in dnsbl.sorbs.net]
 0.1 RCVD_IN_SORBS          RBL: SORBS: sender is listed in SORBS
                            [217.234.103.80 listed in dnsbl.sorbs.net]
 0.1 RCVD_IN_NJABL          RBL: Received via a relay in dnsbl.njabl.org
                            [217.234.103.80 listed in dnsbl.njabl.org]


The Mail-Headers:

Return-Path: <cs...@web.de>
Received: from mailgate5.web.de (mailgate5.web.de [217.72.192.165])
	by mailbox.salzer-online.de (Postfix on SuSE eMail Server 2.0) with ESMTP 
id 4A2DFE5D
	for <ch...@salzer-online.de>; Wed, 14 Apr 2004 11:15:34 +0200 
(CEST)
Received: by mailgate5.web.de (8.11.6p2/8.11.2/SuSE Linux 8.11.0-0.4) with 
SMTP id i3E9FX427153
	for christian_this@salzer-online.de; Wed, 14 Apr 2004 11:15:33 +0200
Received: from 217.234.103.80 by freemailng1301.web.de with HTTP;
	Wed, 14 Apr 2004 11:15:31 +0200
Date: Wed, 14 Apr 2004 11:15:31 +0200
Message-Id: <40...@web.de>
MIME-Version: 1.0
From: "Christian Salzer" <cs...@web.de>


Parts of local.cf:

#trusted_Networks mail.gmx.de
#trusted_Networks mailgate5.web.de
#trusted_Networks mailout02.sul.t-online.com
trusted_Networks 213.165.64.20
trusted_Networks 217.72.192.165
trusted_Networks 194.25.134.17


Re: Probs with RBL/Dial-Up and trusted_networks

Posted by Matt Kettler <mk...@comcast.net>.
At 04:49 PM 4/14/04 +0200, Christian Salzer wrote:
>0.1 RCVD_IN_SORBS          RBL: SORBS: sender is listed in SORBS
>                            [217.234.103.80 listed in dnsbl.sorbs.net]
>0.1 RCVD_IN_NJABL          RBL: Received via a relay in dnsbl.njabl.org
>                            [217.234.103.80 listed in dnsbl.njabl.org]
>
>
>The two low scored RBL-Tests are supposed to score?

Well, they are sort of an artifact of how SA handles aggregate DNSBLs... In 
general don't worry about them. They are low-scoring on purpose.

Both SORBS and NJABL are aggregate lists containing many sub-lists 
(including dialup lists). These aggregate lists are done as one DNS lookup, 
and examining the return value tells you which lists match.

SA treats aggregate lists by having a group of rules. The first rule causes 
the DNS query, and will fire if any result comes back, no matter which list 
it was. RCVD_IN_SORBS and RCVD_IN_NJABL are both the primary rule for each 
of those services.

Then SA does a series of sub-rules, each of which looks at the return value 
to see which lists matched. In the case of SORBS and NJABL, these lists 
contain a mixture of dialup and non-dialup lists. Thus, the main rule has 
to be a standard query, but the dialup sub-rule is a "not-firsthop" type. 
SORBS matches the dailup IP, but the SORBS_DIALUP sub-rule (which carries a 
"real" score) ignores it if it was properly relayed.


Re: Probs with RBL/Dial-Up and trusted_networks

Posted by Christian Salzer <sp...@salzer-online.dnsalias.net>.
> That's the exact opposite of what you want to do.. Your problem is
> over-trust, not under trust.
>
> See, SA checks for dialups delivering to any trusted host.
>
> Set your trusted_networks to ONLY your mailserver and it should clear up.
>
> Sometimes SA fails to correctly auto-detect the trust path and winds up
> trusting outside servers. One case where this happens is anytime you use
> reserved IP for your mailserver ie: NAT or internal networking. SA
> reasonably concludes your outside MX must have a real IP, so it wades
> around in the headers and decides that the most recent non-reserved IP
> must be your outside MX)
>
> In general trusted_networks should only contain properly functioning
> mailservers that you control. It should not include clients, or
> mailservers which don't introduce Received: headers (ie: most outlook
> configs)

Thanks Matt,

it is working now better, my mailserver has a 192.168.x IP-Address, after 
adding the IP to the trusted_networks and restarting spamd.

Just one more question, the report of a that test-mail is now:

 0.1 HTML_60_70             BODY: Message is 60% to 70% HTML
 0.1 HTML_MESSAGE           BODY: HTML included in message
 5.4 BAYES_99               BODY: Bayesian spam probability is 99 to 100%
                            [score: 1.0000]
 0.3 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
 1.2 HTML_IMAGE_ONLY_02     BODY: HTML: images with 0-200 bytes of words
 0.1 RCVD_IN_SORBS          RBL: SORBS: sender is listed in SORBS
                            [217.234.103.80 listed in dnsbl.sorbs.net]
 0.1 RCVD_IN_NJABL          RBL: Received via a relay in dnsbl.njabl.org
                            [217.234.103.80 listed in dnsbl.njabl.org]


The two low scored RBL-Tests are supposed to score?

Thanks for your help,


Christian Salzer


Re: Probs with RBL/Dial-Up and trusted_networks

Posted by Matt Kettler <mk...@comcast.net>.
At 11:34 AM 4/14/04 +0200, Christian Salzer wrote:
>If people mail me from e.g. web.de, SA/RBL-Tests are scoring the mail as 
>send from a dialup-network, which is indeed correct, the user wrote the 
>mail from an dialup-ip in his browser, but it is delivered to me via the 
>official smtp-server, which is not in RBL-Lists.
>
>I tried to add a trusted_networks setting for the mail-server of web.de, 
>but that didn't work.

That's the exact opposite of what you want to do.. Your problem is 
over-trust, not under trust.

See, SA checks for dialups delivering to any trusted host.

Set your trusted_networks to ONLY your mailserver and it should clear up.

Sometimes SA fails to correctly auto-detect the trust path and winds up 
trusting outside servers. One case where this happens is anytime you use 
reserved IP for your mailserver ie: NAT or internal networking. SA 
reasonably concludes your outside MX must have a real IP, so it wades 
around in the headers and decides that the most recent non-reserved IP must 
be your outside MX)

In general trusted_networks should only contain properly functioning 
mailservers that you control. It should not include clients, or mailservers 
which don't introduce Received: headers (ie: most outlook configs)