You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Al B <al...@hotmail.com> on 2015/07/30 20:21:35 UTC
Ignore forwarding headers from specific sender
I have 2 accounts:
myaccount@gmail.commyaccount@hotmail.com
I've been using Spamassassin with both accounts and all has been well. Recently I decided to have Hotmail forward email to my Gmail account, so that I only have to check one account. Is there anyway to tell Spamassassin to ignore any headers added by myaccount@hotmail.com?
blacklist_from spam@spam.com
An email I receive from spam@spam.com using the Hotmail account is correctly identified as being from a blacklisted sender. However, the same email after being forwarded to Gmail is seen as coming from myaccount@hotmail.com and is not blacklisted.
Is there anyway around this? If so, can you point me in the right direction.
Thanks
Re: Ignore forwarding headers from specific sender
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 30.07.15 18:27, Al B wrote:
>I wasn't aware that Hotmail's filters work when you have forwarding turned
> on. I also would prefer to have all my blacklist in one place instead of
> having maintain 2 list.
it's bad idea to let spam being forwarded and blocked on the destination.
I wouldn't wonder if gmail would start marking mail forwarded through your
account as spam...
--
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.
Silvester Stallone: Father of the RISC concept.
RE: Ignore forwarding headers from specific sender
Posted by Al B <al...@hotmail.com>.
I wasn't aware that Hotmail's filters work when you have forwarding turned on. I also would prefer to have all my blacklist in one place instead of having maintain 2 list.
Subject: Re: Ignore forwarding headers from specific sender
To: users@spamassassin.apache.org
From: bret.miller@gci.org
Date: Thu, 30 Jul 2015 12:33:23 -0700
Why not just add the blocked email address to the blocked sender
list for your Hotmail account?
On 7/30/2015 12:28 PM, RW wrote:
On Thu, 30 Jul 2015 13:21:35 -0500
Al B wrote:
I have 2 accounts:
myaccount@gmail.commyaccount@hotmail.com
I've been using Spamassassin with both accounts and all has been
well. Recently I decided to have Hotmail forward email to my Gmail
account, so that I only have to check one account. Is there anyway
to tell Spamassassin to ignore any headers added by
myaccount@hotmail.com? blacklist_from spam@spam.com An email I
receive from spam@spam.com using the Hotmail account is correctly
identified as being from a blacklisted sender. However, the same
email after being forwarded to Gmail is seen as coming from
myaccount@hotmail.com and is not blacklisted. Is there anyway around
this?
Not if there is a Resent-From header. However, that heady is usually
only added on manual forwarding, not when mail is being redirected
automatically.
Re: Ignore forwarding headers from specific sender
Posted by Bret Miller <br...@gci.org>.
Why not just add the blocked email address to the blocked sender list
for your Hotmail account?
On 7/30/2015 12:28 PM, RW wrote:
> On Thu, 30 Jul 2015 13:21:35 -0500
> Al B wrote:
>
>> I have 2 accounts:
>> myaccount@gmail.commyaccount@hotmail.com
>> I've been using Spamassassin with both accounts and all has been
>> well. Recently I decided to have Hotmail forward email to my Gmail
>> account, so that I only have to check one account. Is there anyway
>> to tell Spamassassin to ignore any headers added by
>> myaccount@hotmail.com? blacklist_from spam@spam.com An email I
>> receive from spam@spam.com using the Hotmail account is correctly
>> identified as being from a blacklisted sender. However, the same
>> email after being forwarded to Gmail is seen as coming from
>> myaccount@hotmail.com and is not blacklisted. Is there anyway around
>> this?
> Not if there is a Resent-From header. However, that heady is usually
> only added on manual forwarding, not when mail is being redirected
> automatically.
>
>
>
RE: Ignore forwarding headers from specific sender
Posted by Al B <al...@hotmail.com>.
That would have been a lot easier........
> Date: Thu, 30 Jul 2015 16:56:39 -0700
> From: jhardin@impsec.org
> To: users@spamassassin.apache.org
> Subject: RE: Ignore forwarding headers from specific sender
>
> On Thu, 30 Jul 2015, John Hardin wrote:
>
> > On Thu, 30 Jul 2015, Al B wrote:
> >
> >> It appears that Hotmail does include the Resent-From header, see below. I
> >> think I've gotten around the issue by creating a python script to strip
> >> the forwarding headers, before sending the email to Spamassassin.
> >
> > It might be easier to strip the "Resent-From: myaccount@hotmail.com"
> > header...
>
> ...or alter it to X-Resent-From: if you don't want to lose the history
> completely...
>
> --
> John Hardin KA7OHZ http://www.impsec.org/~jhardin/
> jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
> key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
> -----------------------------------------------------------------------
> The fetters imposed on liberty at home have ever been forged out
> of the weapons provided for defense against real, pretended, or
> imaginary dangers from abroad. -- James Madison, 1799
> -----------------------------------------------------------------------
> 6 days until the 280th anniversary of John Peter Zenger's acquittal
RE: Ignore forwarding headers from specific sender
Posted by John Hardin <jh...@impsec.org>.
On Thu, 30 Jul 2015, John Hardin wrote:
> On Thu, 30 Jul 2015, Al B wrote:
>
>> It appears that Hotmail does include the Resent-From header, see below. I
>> think I've gotten around the issue by creating a python script to strip
>> the forwarding headers, before sending the email to Spamassassin.
>
> It might be easier to strip the "Resent-From: myaccount@hotmail.com"
> header...
...or alter it to X-Resent-From: if you don't want to lose the history
completely...
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The fetters imposed on liberty at home have ever been forged out
of the weapons provided for defense against real, pretended, or
imaginary dangers from abroad. -- James Madison, 1799
-----------------------------------------------------------------------
6 days until the 280th anniversary of John Peter Zenger's acquittal
RE: Ignore forwarding headers from specific sender
Posted by John Hardin <jh...@impsec.org>.
On Thu, 30 Jul 2015, Al B wrote:
> It appears that Hotmail does include the Resent-From header, see below.
> I think I've gotten around the issue by creating a python script to
> strip the forwarding headers, before sending the email to Spamassassin.
It might be easier to strip the "Resent-From: myaccount@hotmail.com"
header...
> Delivered-To: myaccount@gmail.com
> Received: by 10.76.62.4 with SMTP id u4csp713921oar; Thu, 30 Jul 2015 11:24:17
> -0700 (PDT)
> X-Received: by 10.66.222.161 with SMTP id qn1mr111009366pac.66.1438280657527;
> Thu, 30 Jul 2015 11:24:17 -0700 (PDT)
> Return-Path: <my...@hotmail.com>
> Received: from COL004-OMC4S16.hotmail.com (col004-omc4s16.hotmail.com.
> [65.55.34.218]) by mx.google.com with ESMTPS id
> ok5si4006717pdb.157.2015.07.30.11.24.17 for <my...@gmail.com>
> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jul 2015
> 11:24:17 -0700 (PDT)
> Received-SPF: pass (google.com: domain of myaccount@hotmail.com designates
> 65.55.34.218 as permitted sender) client-ip=65.55.34.218;
> Authentication-Results: mx.google.com; spf=pass (google.com: domain of
> myaccount@hotmail.com designates 65.55.34.218 as permitted sender)
> smtp.mail=myaccount@hotmail.com; dmarc=pass (p=NONE dis=NONE)
> header.from=hotmail.com
> Received: from COL004-MC3F33.hotmail.com ([65.55.34.199]) by
> COL004-OMC4S16.hotmail.com over TLS secured channel with Microsoft
> SMTPSVC(7.5.7601.23008); Thu, 30 Jul 2015 11:21:55 -0700
> Resent-Message-ID: <CO...@phx.gbl>
> Resent-To: myaccount@gmail.com
> Resent-Date: Thu, 30 Jul 2015 11:21:55 -0700
> Resent-From: myaccount@hotmail.com
> X-HM-Routing-Path: +tYAoiJsCIZZ+5v4HRyIibLIG7ufv4KPyAQNAnIf34/uop6v2JKIAU5O09+6m5C1q04HwYX26tsK7oE6J82ofaue6IycEJm0994KgOCqqg3M+s7+G4+eG11m9nPUmd2BIpp1RNtTW0n4bZeN+lMudft9uWiOpe4snBAWz438JUKMr9zvIodFWE/LjRZPJUvL9la5i7Ny3v4=
>
>> Not if there is a Resent-From header. However, that heady is usually
>> only added on manual forwarding, not when mail is being redirected
>> automatically.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The fetters imposed on liberty at home have ever been forged out
of the weapons provided for defense against real, pretended, or
imaginary dangers from abroad. -- James Madison, 1799
-----------------------------------------------------------------------
6 days until the 280th anniversary of John Peter Zenger's acquittal
RE: Ignore forwarding headers from specific sender
Posted by Al B <al...@hotmail.com>.
It appears that Hotmail does include the Resent-From header, see below. I think I've gotten around the issue by creating a python script to strip the forwarding headers, before sending the email to Spamassassin.
Delivered-To: myaccount@gmail.com
Received: by 10.76.62.4 with SMTP id u4csp713921oar; Thu, 30 Jul 2015 11:24:17
-0700 (PDT)
X-Received: by 10.66.222.161 with SMTP id qn1mr111009366pac.66.1438280657527;
Thu, 30 Jul 2015 11:24:17 -0700 (PDT)
Return-Path: <my...@hotmail.com>
Received: from COL004-OMC4S16.hotmail.com (col004-omc4s16.hotmail.com.
[65.55.34.218]) by mx.google.com with ESMTPS id
ok5si4006717pdb.157.2015.07.30.11.24.17 for <my...@gmail.com>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jul 2015
11:24:17 -0700 (PDT)
Received-SPF: pass (google.com: domain of myaccount@hotmail.com designates
65.55.34.218 as permitted sender) client-ip=65.55.34.218;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of
myaccount@hotmail.com designates 65.55.34.218 as permitted sender)
smtp.mail=myaccount@hotmail.com; dmarc=pass (p=NONE dis=NONE)
header.from=hotmail.com
Received: from COL004-MC3F33.hotmail.com ([65.55.34.199]) by
COL004-OMC4S16.hotmail.com over TLS secured channel with Microsoft
SMTPSVC(7.5.7601.23008); Thu, 30 Jul 2015 11:21:55 -0700
Resent-Message-ID: <CO...@phx.gbl>
Resent-To: myaccount@gmail.com
Resent-Date: Thu, 30 Jul 2015 11:21:55 -0700
Resent-From: myaccount@hotmail.com
X-HM-Routing-Path: +tYAoiJsCIZZ+5v4HRyIibLIG7ufv4KPyAQNAnIf34/uop6v2JKIAU5O09+6m5C1q04HwYX26tsK7oE6J82ofaue6IycEJm0994KgOCqqg3M+s7+G4+eG11m9nPUmd2BIpp1RNtTW0n4bZeN+lMudft9uWiOpe4snBAWz438JUKMr9zvIodFWE/LjRZPJUvL9la5i7Ny3v4=
> Date: Thu, 30 Jul 2015 20:28:58 +0100
> From: rwmaillists@googlemail.com
> To: users@spamassassin.apache.org
> Subject: Re: Ignore forwarding headers from specific sender
>
> On Thu, 30 Jul 2015 13:21:35 -0500
> Al B wrote:
>
> > I have 2 accounts:
> > myaccount@gmail.commyaccount@hotmail.com
> > I've been using Spamassassin with both accounts and all has been
> > well. Recently I decided to have Hotmail forward email to my Gmail
> > account, so that I only have to check one account. Is there anyway
> > to tell Spamassassin to ignore any headers added by
> > myaccount@hotmail.com? blacklist_from spam@spam.com An email I
> > receive from spam@spam.com using the Hotmail account is correctly
> > identified as being from a blacklisted sender. However, the same
> > email after being forwarded to Gmail is seen as coming from
> > myaccount@hotmail.com and is not blacklisted. Is there anyway around
> > this?
>
> Not if there is a Resent-From header. However, that heady is usually
> only added on manual forwarding, not when mail is being redirected
> automatically.
>
>
>
Re: Ignore forwarding headers from specific sender
Posted by RW <rw...@googlemail.com>.
On Thu, 30 Jul 2015 13:21:35 -0500
Al B wrote:
> I have 2 accounts:
> myaccount@gmail.commyaccount@hotmail.com
> I've been using Spamassassin with both accounts and all has been
> well. Recently I decided to have Hotmail forward email to my Gmail
> account, so that I only have to check one account. Is there anyway
> to tell Spamassassin to ignore any headers added by
> myaccount@hotmail.com? blacklist_from spam@spam.com An email I
> receive from spam@spam.com using the Hotmail account is correctly
> identified as being from a blacklisted sender. However, the same
> email after being forwarded to Gmail is seen as coming from
> myaccount@hotmail.com and is not blacklisted. Is there anyway around
> this?
Not if there is a Resent-From header. However, that heady is usually
only added on manual forwarding, not when mail is being redirected
automatically.