You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Catalin Constantin <da...@gmail.com> on 2013/04/12 09:51:10 UTC
Check only last Received line
Ola,
Is there any way to set SA to only check in RBLs IP of last Received line ?
I often get rules like RDNS_NONE, RCVD_IN_RP_RNBL,RCVD_IN_SORBS_DUL
triggered for emails sent from a home connection via a legite mail server.
Thanks,
--
Catalin Constantin
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>Matus UHLAR - fantomas skrev den 2013-04-12 14:36:
>
>>does DNSWL list dynamic IPs? I doubt this...
On 12.04.13 14:56, Benny Pedersen wrote:
>dnswl list all ips that have mta running, it does not matter if the
>ip is static or dynamic
What is the point of listing dynamic address, no matter if dnswl or config?
Next time the host connects, it will have different address.
The client _does_ use its SMTP server for sending mail and that one has tobe
checked.
>>and the point is:
>>
>>it is the machine who passes the mail to internal network should be
>>searched in dynamic lists, not anyone who passes the mail to the machine.
>
>agre, i still say trusted_networks and dnswl :=)
They both would have to list (nearly) whole dynamic world this way.
You seem to have missed the most important facy: the OP's SA seems to parse
next hop as it should. either the sender's mailserver has to be REMOVED from
internal_networks, or the SA does not get the locally added Received: line.
The trust path must be shortened, not enlarged.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
- Have you got anything without Spam in it?
- Well, there's Spam egg sausage and Spam, that's not got much Spam in it.
Re: Check only last Received line
Posted by Benny Pedersen <me...@junc.eu>.
Matus UHLAR - fantomas skrev den 2013-04-12 14:36:
> does DNSWL list dynamic IPs? I doubt this...
dnswl list all ips that have mta running, it does not matter if the ip
is static or dynamic
> and the point is:
>
> it is the machine who passes the mail to internal network should be
> searched
> in dynamic lists, not anyone who passes the mail to the machine.
agre, i still say trusted_networks and dnswl :=)
--
senders that put my email into body content will deliver it to my own
trashcan, so if you like to get reply, dont do it
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>Matus UHLAR - fantomas skrev den 2013-04-12 14:26:
>
>>the OP complains about message from dynamic IP posted through remote
>>mailserver get caught by the dynamic rule. This would need to
>>include all
>>dynamic IPs into the trusted_networks by using your logic :-)
On 12.04.13 14:32, Benny Pedersen wrote:
>yes or listed as non spaming ip at dnswl
does DNSWL list dynamic IPs? I doubt this... and the point is:
it is the machine who passes the mail to internal network should be searched
in dynamic lists, not anyone who passes the mail to the machine.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Posli tento mail 100 svojim znamim - nech vidia aky si idiot
Send this email to 100 your friends - let them see what an idiot you are
Re: Check only last Received line
Posted by Benny Pedersen <me...@junc.eu>.
Matus UHLAR - fantomas skrev den 2013-04-12 14:26:
> the OP complains about message from dynamic IP posted through remote
> mailserver get caught by the dynamic rule. This would need to
> include all
> dynamic IPs into the trusted_networks by using your logic :-)
yes or listed as non spaming ip at dnswl
--
senders that put my email into body content will deliver it to my own
trashcan, so if you like to get reply, dont do it
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>Matus UHLAR - fantomas skrev den 2013-04-12 13:57:
>>I don't think that would work. The problem lies elsewhere, seems that
>>either the remote mail server is in
>>internal_networks or the local mail server does not accReceived:
>>lines when
>>SA parses the mail.
On 12.04.13 14:16, Benny Pedersen wrote:
>more then one mailserver, then add this to both, no one like to work
>on unstable grounds :)
the OP complains about message from dynamic IP posted through remote
mailserver get caught by the dynamic rule. This would need to include all
dynamic IPs into the trusted_networks by using your logic :-)
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
One OS to rule them all, One OS to find them,
One OS to bring them all and into darkness bind them
Re: Check only last Received line
Posted by Benny Pedersen <me...@junc.eu>.
Matus UHLAR - fantomas skrev den 2013-04-12 13:57:
> I don't think that would work. The problem lies elsewhere, seems that
> either the remote mail server is in
> internal_networks or the local mail server does not accReceived:
> lines when
> SA parses the mail.
more then one mailserver, then add this to both, no one like to work on
unstable grounds :)
--
senders that put my email into body content will deliver it to my own
trashcan, so if you like to get reply, dont do it
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 12.04.13 13:33, Benny Pedersen wrote:
>Catalin Constantin skrev den 2013-04-12 10:39:
>
>>Is there any way to tell SA check only the last Received line (before
>>entering the local network) ?
>
>http://www.dnswl.org/s?s=84.73.76.25
>
>or add "trusted_networks 84.73.76.25" to local.cf
I don't think that would work.
The problem lies elsewhere, seems that either the remote mail server is in
internal_networks or the local mail server does not accReceived: lines when
SA parses the mail.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -- Benjamin Franklin, 1759
Re: Check only last Received line
Posted by Benny Pedersen <me...@junc.eu>.
Catalin Constantin skrev den 2013-04-12 10:39:
> Is there any way to tell SA check only the last Received line (before
> entering the local network) ?
http://www.dnswl.org/s?s=84.73.76.25
or add "trusted_networks 84.73.76.25" to local.cf
--
senders that put my email into body content will deliver it to my own
trashcan, so if you like to get reply, dont do it
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>On 12.04.13 11:39, Catalin Constantin wrote:
>>USER sends mail via REMOTE MAIL SERVER which ads a Received line with his
>>DYN IP.
>>
>>EX:
>>Received: from unknown (HELO Laptop) (84.73.76.25)
>> by <REMOTE MAIL SERVER> with SMTP; 11 Apr 2013 17:50:16 +0200
>>
>>MY MAIL SERVERS detects the DYN IP and triggers the wrong rules.
>
>>Is there any way to tell SA check only the last Received line (before
>>entering the local network) ?
On 12.04.13 11:38, Matus UHLAR - fantomas wrote:
>your mail server should add another Received: line and SA should use that
>one for check in dynamic blacklist. Note that if remote mailserver accepts
>mail from machine used by spammers, SA can detect it being in different
>blacklist and still apply other blacklists other than DUL there.
OK, how do your Received: lined look like?
... your mail server should add something like
Received: from <REMOTE MAIL SERVER> (<REMOTE MAIL SERVER>[1.2.3.4])
by your.mail.server with SMTP; 11 Apr 2013 17:51:23 +0200
SA should see this line and only check if 1.2.3.4 is in dynamic IP range.
SA should NOT check further line (received from dynamic IP by remote mail
server), unless:
- remote mail server is in internal_networks (invalid!)
- it sees Received: line from your server.
How do you run SA?
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I don't have lysdexia. The Dog wouldn't allow that.
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 12.04.13 11:39, Catalin Constantin wrote:
>I have already checked TrustPath and have set my trusted_networks parameter.
>The problem is that the other Received lines are inserted remote.
>
>Scenario is like this:
>
>Third party user with a DSL connection (dynamic IP, listed on DUL, PBL,
>etc): USER
>Third party mail server of USER with an OK IP (REV DNS, no DUL, no PBL, no
>listing): REMOTE MAIL SERVER
>My mail server: MY MAIL SERVER.
>
>USER sends mail via REMOTE MAIL SERVER which ads a Received line with his
>DYN IP.
>
>EX:
>Received: from unknown (HELO Laptop) (84.73.76.25)
> by <REMOTE MAIL SERVER> with SMTP; 11 Apr 2013 17:50:16 +0200
>
>MY MAIL SERVERS detects the DYN IP and triggers the wrong rules.
>Is there any way to tell SA check only the last Received line (before
>entering the local network) ?
your mail server should add another Received: line and SA should use that
one for check in dynamic blacklist. Note that if remote mailserver accepts
mail from machine used by spammers, SA can detect it being in different
blacklist and still apply other blacklists other than DUL there.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
How does cat play with mouse? cat /dev/mouse
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>On 12.04.13 10:39, Catalin Constantin wrote:
>>USER sends mail via REMOTE MAIL SERVER which ads a Received line with
>>his DYN IP.
>>
>>EX:
>>Received: from unknown (HELO Laptop) (84.73.76.25)
>> by <REMOTE MAIL SERVER> with SMTP; 11 Apr 2013 17:50:16 +0200
>>
>>MY MAIL SERVERS detects the DYN IP and triggers the wrong rules.
On 12.04.13 13:19, Frank Reppin wrote:
>given this example - you're probably looking for the
>
> notfirsthop
>
>or
>
> lastexternal
>
>features from Mail::SpamAssassin::Conf(3).
he's complaining about the SA standard ulez, changing them is not wanted
there.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
BSE = Mad Cow Desease ... BSA = Mad Software Producents Desease
Re: Check only last Received line
Posted by Frank Reppin <fr...@undermydesk.org>.
Hi Catalin,
On 12.04.13 10:39, Catalin Constantin wrote:
> I have already checked TrustPath and have set my trusted_networks parameter.
> The problem is that the other Received lines are inserted remote.
>
> Scenario is like this:
>
> Third party user with a DSL connection (dynamic IP, listed on DUL, PBL,
> etc): USER
> Third party mail server of USER with an OK IP (REV DNS, no DUL, no PBL,
> no listing): REMOTE MAIL SERVER
> My mail server: MY MAIL SERVER.
>
> USER sends mail via REMOTE MAIL SERVER which ads a Received line with
> his DYN IP.
>
> EX:
> Received: from unknown (HELO Laptop) (84.73.76.25)
> by <REMOTE MAIL SERVER> with SMTP; 11 Apr 2013 17:50:16 +0200
>
> MY MAIL SERVERS detects the DYN IP and triggers the wrong rules.
given this example - you're probably looking for the
notfirsthop
or
lastexternal
features from Mail::SpamAssassin::Conf(3).
cheers,
Frank Reppin
--
43rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
Re: Check only last Received line
Posted by Catalin Constantin <da...@gmail.com>.
I have already checked TrustPath and have set my trusted_networks parameter.
The problem is that the other Received lines are inserted remote.
Scenario is like this:
Third party user with a DSL connection (dynamic IP, listed on DUL, PBL,
etc): USER
Third party mail server of USER with an OK IP (REV DNS, no DUL, no PBL, no
listing): REMOTE MAIL SERVER
My mail server: MY MAIL SERVER.
USER sends mail via REMOTE MAIL SERVER which ads a Received line with his
DYN IP.
EX:
Received: from unknown (HELO Laptop) (84.73.76.25)
by <REMOTE MAIL SERVER> with SMTP; 11 Apr 2013 17:50:16 +0200
MY MAIL SERVERS detects the DYN IP and triggers the wrong rules.
Is there any way to tell SA check only the last Received line (before
entering the local network) ?
On Fri, Apr 12, 2013 at 11:04 AM, Matus UHLAR - fantomas
<uh...@fantomas.sk>wrote:
> On 12.04.13 10:51, Catalin Constantin wrote:
>
>> Is there any way to set SA to only check in RBLs IP of last Received line
>> ?
>>
>> I often get rules like RDNS_NONE, RCVD_IN_RP_RNBL,RCVD_IN_SORBS_**DUL
>> triggered for emails sent from a home connection via a legite mail server.
>>
>
> SA has settings (trusted_networks and internal_networks) that affect which
> Received: lines are parsed and which are checked for
> blacklists/whitelists. If you find bad headers parsed, you apparently have
> not configured them or
> misconfigured them.
>
> http://wiki.apache.org/**spamassassin/TrustPath<http://wiki.apache.org/spamassassin/TrustPath>
>
> --
> Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> There's a long-standing bug relating to the x86 architecture that
> allows you to install Windows. -- Matthew D. Fuller
>
--
Catalin Constantin
Dazoot Software
http://www.dazoot.eu/
Re: Check only last Received line
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 12.04.13 10:51, Catalin Constantin wrote:
>Is there any way to set SA to only check in RBLs IP of last Received line ?
>
>I often get rules like RDNS_NONE, RCVD_IN_RP_RNBL,RCVD_IN_SORBS_DUL
>triggered for emails sent from a home connection via a legite mail server.
SA has settings (trusted_networks and internal_networks) that affect which
Received: lines are parsed and which are checked for blacklists/whitelists.
If you find bad headers parsed, you apparently have not configured them or
misconfigured them.
http://wiki.apache.org/spamassassin/TrustPath
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
There's a long-standing bug relating to the x86 architecture that
allows you to install Windows. -- Matthew D. Fuller