FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-27-2008, 11:23 AM
Arvind Marathe
 
Default Procmail filters debian-user mails as spam

Hi!

As mentioned in another thread yesterday, i have setup getmail to
retrieve mails from my gmail id. In my setup, getmail delivers the
mail to procmail, which in turn filters them into different mailboxes,
including a "possible-spam" mailbox depending on certain criteria. Now
all my d-u mails are getting filtered as spam. Following are the rules
in my $HOME/.procmailrc:


:0
* ^X-Spam-Status: Yes
possible-spam/
#
:0
* ^X-Spam-Level: *****
possible-spam/
#
:0
* ^X-Spam-Flag:.*YES
possible-spam/



And following are some lines from $HOME/.procmaillog:


>From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 09:50:27 2008
Subject: Re: What is ~~ into inittab?
Folder: possible-spam/new/1217132427.27009_0.laasya 6758
>From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 10:25:21 2008
Subject: Wi-Fi in Inspiron 1720 - Help!
Folder: possible-spam/new/1217134521.27203_0.laasya 4602
>From andreimpopescu@gmail.com Sun Jul 27 11:05:31 2008
Subject: Re: [OT] Setting up getmail to retrieve mails from gmail [Was: Re:
Folder: debian-users/new/1217136931.27423_1.laasya 4568
>From andreimpopescu@gmail.com Sun Jul 27 11:20:17 2008
Subject: Re: [OT] Setting up getmail to retrieve mails from gmail [Was: Re:
Folder: debian-users/new/1217137817.27513_1.laasya 4556
>From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 12:40:24 2008
Subject: [OT] Turion 64X2 desktop?
Folder: possible-spam/new/1217142624.27958_0.laasya 5045
>From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 14:05:21 2008
Subject: Re: [OT perhaps] Any way to restore Iceweasel 2 behavior in the Navig
Folder: possible-spam/new/1217147721.28424_0.laasya 5300
>From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 14:30:23 2008
Subject: How do I update kernel in Debian 4
Folder: possible-spam/new/1217149223.28563_0.laasya 5741
>From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 14:50:30 2008
Subject: Re: [OT perhaps] Any way to restore Iceweasel 2 behavior in the Navig
Folder: possible-spam/new/1217150430.28673_0.laasya 5456
>From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 15:45:47 2008
Subject: Re: [OT perhaps] Any way to restore Iceweasel 2 behavior in the
Folder: possible-spam/new/1217153747.29188_0.laasya 4989


As you can see, only Andrei Popescu's mails, which also had a 'cc' to
my email address, get delivered to the proper mailbox. All other mails
to d-u get filtered as spam. Also Andrei's mails do not have the
mailing list headers whereas the other mails had. So i am assuming
Andrei's mails reached me directly and his mails via d-u were thrown
out by gmail.

I am also subscribed to some other mailing lists, and those mails are
delivered to the appropriate mailboxes by procmail. (For eg., mutt
mailing list mails are delivered as desired).

About a year back, i was subscribed to d-u for a short time from my
workplace account. The filter settings were same, and those mails were
not labelled as spam. So this might have something to do with gmail. I
don't have much experience with this kind of settings, so any pointers
as to why this must be happening are appreciated.

Arvind

--
Quidquid latine dictum sit, altum sonatur.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 11:37 AM
Arvind Marathe
 
Default Procmail filters debian-user mails as spam

On Sun, Jul 27, 2008 at 04:53:28PM +0530, Arvind Marathe wrote:
>
> Hi!
>
> As mentioned in another thread yesterday, i have setup getmail to
> retrieve mails from my gmail id. In my setup, getmail delivers the
> mail to procmail, which in turn filters them into different mailboxes,
> including a "possible-spam" mailbox depending on certain criteria. Now
> all my d-u mails are getting filtered as spam. Following are the rules
> in my $HOME/.procmailrc:
>
>
> :0
> * ^X-Spam-Status: Yes
> possible-spam/
> #
> :0
> * ^X-Spam-Level: *****
> possible-spam/
> #
> :0
> * ^X-Spam-Flag:.*YES
> possible-spam/
>
>
>
> And following are some lines from $HOME/.procmaillog:
>
>
> >From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 09:50:27 2008
> Subject: Re: What is ~~ into inittab?
> Folder: possible-spam/new/1217132427.27009_0.laasya 6758
> >From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 10:25:21 2008
> Subject: Wi-Fi in Inspiron 1720 - Help!
> Folder: possible-spam/new/1217134521.27203_0.laasya 4602
> >From andreimpopescu@gmail.com Sun Jul 27 11:05:31 2008
> Subject: Re: [OT] Setting up getmail to retrieve mails from gmail [Was: Re:
> Folder: debian-users/new/1217136931.27423_1.laasya 4568
> >From andreimpopescu@gmail.com Sun Jul 27 11:20:17 2008
> Subject: Re: [OT] Setting up getmail to retrieve mails from gmail [Was: Re:
> Folder: debian-users/new/1217137817.27513_1.laasya 4556
> >From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 12:40:24 2008
> Subject: [OT] Turion 64X2 desktop?
> Folder: possible-spam/new/1217142624.27958_0.laasya 5045
> >From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 14:05:21 2008
> Subject: Re: [OT perhaps] Any way to restore Iceweasel 2 behavior in the Navig
> Folder: possible-spam/new/1217147721.28424_0.laasya 5300
> >From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 14:30:23 2008
> Subject: How do I update kernel in Debian 4
> Folder: possible-spam/new/1217149223.28563_0.laasya 5741
> >From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 14:50:30 2008
> Subject: Re: [OT perhaps] Any way to restore Iceweasel 2 behavior in the Navig
> Folder: possible-spam/new/1217150430.28673_0.laasya 5456
> >From bounce-debian-user=bahuroopi=gmail.com@lists.debian.org Sun Jul 27 15:45:47 2008
> Subject: Re: [OT perhaps] Any way to restore Iceweasel 2 behavior in the
> Folder: possible-spam/new/1217153747.29188_0.laasya 4989
>
>
> As you can see, only Andrei Popescu's mails, which also had a 'cc' to
> my email address, get delivered to the proper mailbox. All other mails
> to d-u get filtered as spam. Also Andrei's mails do not have the
> mailing list headers whereas the other mails had. So i am assuming
> Andrei's mails reached me directly and his mails via d-u were thrown
> out by gmail.
>
> I am also subscribed to some other mailing lists, and those mails are
> delivered to the appropriate mailboxes by procmail. (For eg., mutt
> mailing list mails are delivered as desired).
>
> About a year back, i was subscribed to d-u for a short time from my
> workplace account. The filter settings were same, and those mails were
> not labelled as spam. So this might have something to do with gmail. I
> don't have much experience with this kind of settings, so any pointers
> as to why this must be happening are appreciated.

OK some more investigation. All the d-u mails, getting listed as spam,
have X-Spam-Checker-Version, X-Spam-Level and X-Spam-Status, in their
headers. For eg. one of the mails has:

X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on liszt.debian.org
X-Spam-Level:
X-Spam-Status: No, score=0.1 required=4.0 tests=MDO_DATING2 autolearn=no version=3.2.3

Andrei's mails and the mutt mailing list mails do not have these
headers.

Arvind

--
Quidquid latine dictum sit, altum sonatur.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 12:35 PM
Bob Cox
 
Default Procmail filters debian-user mails as spam

On Sun, Jul 27, 2008 at 17:07:29 +0530, Arvind Marathe (bahuroopi@gmail.com) wrote:

> On Sun, Jul 27, 2008 at 04:53:28PM +0530, Arvind Marathe wrote:

> > :0
> > * ^X-Spam-Level: *****
> > possible-spam/

Won't that rule match anything with a 'X-Spam-Level:' header ?

--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 04:08 PM
ajm
 
Default Procmail filters debian-user mails as spam

On Sun, Jul 27, 2008 at 01:35:00PM +0100, Bob Cox wrote:
> On Sun, Jul 27, 2008 at 17:07:29 +0530, Arvind Marathe (bahuroopi@gmail.com) wrote:
>
> > On Sun, Jul 27, 2008 at 04:53:28PM +0530, Arvind Marathe wrote:
>
> > > :0
> > > * ^X-Spam-Level: *****
> > > possible-spam/
>
> Won't that rule match anything with a 'X-Spam-Level:' header ?
>
> --
> Bob Cox. Stoke Gifford, near Bristol, UK.
> Registered user #445000 with the Linux Counter - http://counter.li.org/
>
>
It might be easier to tract one of the following or maybe a combination
for you d-u mail.

This will be at the begining of your list

:0
* ^To:.debian-user*
possible-spam/

:0
* ^X-Mailing-List:.debian-user*
possible-spam/

:0
* ^List-Id:.debian-user.lists.debian.org
possible-spam/

:0
* ^List-Subscribe:.debian-user*
possible-spam/


At the end of your list:

#----------------------------- Junk Mail

:0Hw:
*(may be forged)
possible-spam/

:0w:
* ^X-Header-Overseas:.*
possible-spam/

:0w:
* ^X-Header-NoReverseIP:.*
possible-spam/

:0w:
* ^Subject:.*Bulk*
possible-spam/

:0w:
* ^Received:.*forged*
possible-spam/

:0w:
* ^Received:.*anonimo*
possible-spam/

:0w:
* ^Received:.*nobody*
possible-spam/

:0w:
* ^Received:....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
.................................................. .....................
possible-spam/

--
Alexander J.M.
Linux 2.6.18-6-686 i686


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 08:12 PM
Andrei Popescu
 
Default Procmail filters debian-user mails as spam

On Sun,27.Jul.08, 17:07:29, Arvind Marathe wrote:

> OK some more investigation. All the d-u mails, getting listed as spam,
> have X-Spam-Checker-Version, X-Spam-Level and X-Spam-Status, in their
> headers. For eg. one of the mails has:
>
> X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on liszt.debian.org
> X-Spam-Level:
> X-Spam-Status: No, score=0.1 required=4.0 tests=MDO_DATING2 autolearn=no version=3.2.3
>
> Andrei's mails and the mutt mailing list mails do not have these
> headers.

Gee, glad to know I'm special cased! I think it's actually due to the
fact that I'm using gmail as well. Are you sure you don't want to try
maildrop instead of procmail? Example rule:

if (/^X-Spam-Status:.Yes/:h)
to Maildir/.Junk/

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
 
Old 07-28-2008, 08:34 AM
Jon Dowland
 
Default Procmail filters debian-user mails as spam

Arvind Marathe:
> :0
> * ^X-Spam-Level: *****
> possible-spam/

Bob Cox:
> Won't that rule match anything with a 'X-Spam-Level:' header ?

Yes, the asterisks in the rule are being treated as regular
expression characters (match any of preceding character).
You want:

:0
* ^X-Spam-Level: *****
possible-spam/

You may want to check the other rules, too.


--
Jon Dowland


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-28-2008, 09:27 AM
"Arvind Marathe"
 
Default Procmail filters debian-user mails as spam

On Mon, Jul 28, 2008 at 1:42 AM, Andrei Popescu
<andreimpopescu@gmail.com> wrote:
> On Sun,27.Jul.08, 17:07:29, Arvind Marathe wrote:
>
>> OK some more investigation. All the d-u mails, getting listed as spam,
>> have X-Spam-Checker-Version, X-Spam-Level and X-Spam-Status, in their
>> headers. For eg. one of the mails has:
>>
>> X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on liszt.debian.org
>> X-Spam-Level:
>> X-Spam-Status: No, score=0.1 required=4.0 tests=MDO_DATING2 autolearn=no version=3.2.3
>>
>> Andrei's mails and the mutt mailing list mails do not have these
>> headers.
>
> Gee, glad to know I'm special cased! I think it's actually due to the
> fact that I'm using gmail as well.

I don't think so. I still think it is because you "cc" to me. All
mails that were "cc"ed to me were dumped fine. And my own mails (from
gmail) to the list, which did not have my address as "cc", were dumped
as spam.

> Are you sure you don't want to try
> maildrop instead of procmail?

Busy right now, but won't mind trying it after a few days. Is it
better than procmail? how?

Arvind

ps: btw, why do you "cc" to the sender? I am assuming you do some sort
of reply-all.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-28-2008, 09:36 AM
Andrei Popescu
 
Default Procmail filters debian-user mails as spam

On Mon,28.Jul.08, 14:57:16, Arvind Marathe wrote:
> On Mon, Jul 28, 2008 at 1:42 AM, Andrei Popescu
> <andreimpopescu@gmail.com> wrote:
> > On Sun,27.Jul.08, 17:07:29, Arvind Marathe wrote:
> >
> >> OK some more investigation. All the d-u mails, getting listed as spam,
> >> have X-Spam-Checker-Version, X-Spam-Level and X-Spam-Status, in their
> >> headers. For eg. one of the mails has:
> >>
> >> X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on liszt.debian.org
> >> X-Spam-Level:
> >> X-Spam-Status: No, score=0.1 required=4.0 tests=MDO_DATING2 autolearn=no version=3.2.3
> >>
> >> Andrei's mails and the mutt mailing list mails do not have these
> >> headers.
> >
> > Gee, glad to know I'm special cased! I think it's actually due to the
> > fact that I'm using gmail as well.
>
> I don't think so. I still think it is because you "cc" to me. All
> mails that were "cc"ed to me were dumped fine. And my own mails (from
> gmail) to the list, which did not have my address as "cc", were dumped
> as spam.

Hhmm, interesting...

> > Are you sure you don't want to try
> > maildrop instead of procmail?
>
> Busy right now, but won't mind trying it after a few days. Is it
> better than procmail? how?

Because you can actually read the rules? Don't worry, it's just a
matter of preference, like vim vs. emacs, KDE vs. Gnome. You will find
strong advocates on both sides, but in the end it's a matter of
preference.

> ps: btw, why do you "cc" to the sender? I am assuming you do some sort
> of reply-all.

The mails I Cc'd you had Reply-To and Mail-Followup-To set (this one
doesn't, but I think you didn't use mutt). I always use mutt's
Reply-To-List. My guess is you have a 'subscribe' stanza for this list
in your muttrc. This is actually not needed, mutt does the Right Thing
(tm) by default.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
 
Old 07-28-2008, 10:01 AM
Arvind Marathe
 
Default Procmail filters debian-user mails as spam

On Mon, Jul 28, 2008 at 09:34:33AM +0100, Jon Dowland wrote:
> Arvind Marathe:
> > :0
> > * ^X-Spam-Level: *****
> > possible-spam/
>
> Bob Cox:
> > Won't that rule match anything with a 'X-Spam-Level:' header ?
>
> Yes, the asterisks in the rule are being treated as regular
> expression characters (match any of preceding character).
> You want:
>
> :0
> * ^X-Spam-Level: *****
> possible-spam/
>
> You may want to check the other rules, too.

Yeah i think thats the reason. I will check with your suggestion for a
day and get back.

Thanks to all those who replied.

Arvind

--
Quidquid latine dictum sit, altum sonatur.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-28-2008, 05:10 PM
Arvind Marathe
 
Default Procmail filters debian-user mails as spam

On Mon, Jul 28, 2008 at 12:36:43PM +0300, Andrei Popescu wrote:
> On Mon,28.Jul.08, 14:57:16, Arvind Marathe wrote:
> > On Mon, Jul 28, 2008 at 1:42 AM, Andrei Popescu
> > <andreimpopescu@gmail.com> wrote:
> > > On Sun,27.Jul.08, 17:07:29, Arvind Marathe wrote:
> > >
> > >> OK some more investigation. All the d-u mails, getting listed as spam,
> > >> have X-Spam-Checker-Version, X-Spam-Level and X-Spam-Status, in their
> > >> headers. For eg. one of the mails has:
> > >>
> > >> X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on liszt.debian.org
> > >> X-Spam-Level:
> > >> X-Spam-Status: No, score=0.1 required=4.0 tests=MDO_DATING2 autolearn=no version=3.2.3
> > >>
> > >> Andrei's mails and the mutt mailing list mails do not have these
> > >> headers.
> > >
> > > Gee, glad to know I'm special cased! I think it's actually due to the
> > > fact that I'm using gmail as well.
> >
> > I don't think so. I still think it is because you "cc" to me. All
> > mails that were "cc"ed to me were dumped fine. And my own mails (from
> > gmail) to the list, which did not have my address as "cc", were dumped
> > as spam.
>
> Hhmm, interesting...
>
> > > Are you sure you don't want to try
> > > maildrop instead of procmail?
> >
> > Busy right now, but won't mind trying it after a few days. Is it
> > better than procmail? how?
>
> Because you can actually read the rules? Don't worry, it's just a
> matter of preference, like vim vs. emacs, KDE vs. Gnome. You will find
> strong advocates on both sides, but in the end it's a matter of
> preference.

Hmm - i have only used procmail. Sometime i will try maildrop.
Depending on whether i like it, i'll join one of the camps and either
credit you or curse you

Arvind

--
Quidquid latine dictum sit, altum sonatur.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 09:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org