Linux Newbie help
 help / color / mirror / Atom feed
* Maildrop doesn't filter or log filters
@ 2003-04-26 15:19 Chris Rose
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Rose @ 2003-04-26 15:19 UTC (permalink / raw)
  To: 'Linux-Newbie (Linux Newbie)'

Here's how i have things:  I'm using postfix as a local MTA, and it's
calling maildrop with 
mailbox_command = /usr/bin/maildrop

I have only one user that receives mail on my system, and that user account
has/d a ~/.mailfilter file.  The problem is, whenever that file exists, no
mail whatsoever makes it into my Maildir.  I've tested this - i send a
message to myself, and i receive nothing as long as there's a mailfilter
file existing.  As soon as i rename it, i'm fine.

Here's the contents of the file: (DELTAG is an environment variable used by
a custom mod to maildrop that i haven't yet implemented)
===============================
logfile "maildrop-filter.log"

log "== message =="

DEFAULT="Maildir"

	# Check headers for winamp
if ( 	(/^Reply-To: Winamp/ ) \
	|| (/^Reply-To: winamp-plugin-dev/)
)
{
	log "winamp message"
	cc "Maildir/.Development.Winamp"
	DELTAG=1
	to "Maildir"
}

if (/^List-Id: <linux-sony.returntonature.com>/
)
{
	log "Sony Linux message"
	cc "Maildir/.Linux.Sony"
	DELTAG=1
	to "Maildir"
}

if (/^X-Mailing-List: linux-newbie@vger.kernel.org/
)
{
	log "Linux Newbie"
	cc "Maildir/.Linux.Newbie"
	DELTAG=1
	to "Maildir"
}
=====end .mailfilter====

I can't find the logfile, either.  It doesn't seem to log anything at all.

Can someone suggest a direction to look in on this one?

Thanks,

Chris R.
=======
http://offline.pointclark.net/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Maildrop doesn't filter or log filters
@ 2003-05-01  8:09 sean
  2003-05-01 23:14 ` James Turnbull
  0 siblings, 1 reply; 6+ messages in thread
From: sean @ 2003-05-01  8:09 UTC (permalink / raw)
  To: linux-newbie

On 26.04.2003 09:19:10, Chris Rose wrote:

 CR> Here's how i have things:  I'm using postfix as a local MTA, and it's
 CR> calling maildrop with
 CR> mailbox_command = /usr/bin/maildrop
 CR>
 CR> I have only one user that receives mail on my system, and that user
 CR> account has/d a ~/.mailfilter file.  The problem is, whenever that file
 CR> exists, no mail whatsoever makes it into my Maildir.  I've tested this -
 CR> i send a message to myself, and i receive nothing as long as there's a
 CR> mailfilter file existing.  As soon as i rename it, i'm fine.
 CR>

What are the permissions on the .mailfilter file, they must be 0600. I had
problems like this and this caused problems similar

Sean

--
I Didn't Climb to the Top of the Food Chain to Be a Vegetarian.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Maildrop doesn't filter or log filters
  2003-05-01  8:09 Maildrop doesn't filter or log filters sean
@ 2003-05-01 23:14 ` James Turnbull
  2003-05-02 21:35   ` sean
  0 siblings, 1 reply; 6+ messages in thread
From: James Turnbull @ 2003-05-01 23:14 UTC (permalink / raw)
  To: sean, linux-newbie

sean@tcob1.net wrote:
> On 26.04.2003 09:19:10, Chris Rose wrote:
>
>> Here's how i have things:  I'm using postfix as a local MTA, and it's
>> calling maildrop with
>> mailbox_command = /usr/bin/maildrop
>>
>> I have only one user that receives mail on my system, and that user
>> account has/d a ~/.mailfilter file.  The problem is, whenever that
>> file exists, no mail whatsoever makes it into my Maildir.  I've
>> tested this - i send a message to myself, and i receive nothing as
>> long as there's a mailfilter file existing.  As soon as i rename it,
>> i'm fine.
>>
>
> What are the permissions on the .mailfilter file, they must be 0600.
> I had problems like this and this caused problems similar

Look in your mail logs / syslogs.  Postfix / Maildrop is usualy pretty good
about telling you what the problem is.

Regards

James Turnbull

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Maildrop doesn't filter or log filters
  2003-05-01 23:14 ` James Turnbull
@ 2003-05-02 21:35   ` sean
  2003-05-03  7:58     ` Chris Rose
  0 siblings, 1 reply; 6+ messages in thread
From: sean @ 2003-05-02 21:35 UTC (permalink / raw)
  To: linux-newbie

"James Turnbull" <james@lovedthanlost.net> writes:

> sean@tcob1.net wrote:
> > On 26.04.2003 09:19:10, Chris Rose wrote:
> >
> >> Here's how i have things:  I'm using postfix as a local MTA, and it's
> >> calling maildrop with
> >> mailbox_command = /usr/bin/maildrop
> >>
> >> I have only one user that receives mail on my system, and that user
> >> account has/d a ~/.mailfilter file.  The problem is, whenever that
> >> file exists, no mail whatsoever makes it into my Maildir.  I've
> >> tested this - i send a message to myself, and i receive nothing as
> >> long as there's a mailfilter file existing.  As soon as i rename it,
> >> i'm fine.
> >>
> >
> > What are the permissions on the .mailfilter file, they must be 0600.
> > I had problems like this and this caused problems similar
> 
> Look in your mail logs / syslogs.  Postfix / Maildrop is usualy pretty good
> about telling you what the problem is.
> 

I cannot comment about Postfix as I never used it but Maildrop will not write to a log file if there is a permissions problem.

Sean
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Maildrop doesn't filter or log filters
  2003-05-02 21:35   ` sean
@ 2003-05-03  7:58     ` Chris Rose
  2003-05-03  9:37       ` sean
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Rose @ 2003-05-03  7:58 UTC (permalink / raw)
  To: sean; +Cc: linux-newbie

Speaking from experience (sorry, should have posted my found fix on this 
a while ago), maildrop may not log that itself, but in the 
/var/log/maillog file you can find its output to stderr that indicated a 
permissions problem.  Once i found this, all of it fell into place.

sean@tcob1.net wrote:
> "James Turnbull" <james@lovedthanlost.net> writes:
> 
> 
>>sean@tcob1.net wrote:
>>
>>>On 26.04.2003 09:19:10, Chris Rose wrote:
>>>
>>>
>>>>Here's how i have things:  I'm using postfix as a local MTA, and it's
>>>>calling maildrop with
>>>>mailbox_command = /usr/bin/maildrop
>>>>
>>>>I have only one user that receives mail on my system, and that user
>>>>account has/d a ~/.mailfilter file.  The problem is, whenever that
>>>>file exists, no mail whatsoever makes it into my Maildir.  I've
>>>>tested this - i send a message to myself, and i receive nothing as
>>>>long as there's a mailfilter file existing.  As soon as i rename it,
>>>>i'm fine.
>>>>
>>>
>>>What are the permissions on the .mailfilter file, they must be 0600.
>>>I had problems like this and this caused problems similar
>>
>>Look in your mail logs / syslogs.  Postfix / Maildrop is usualy pretty good
>>about telling you what the problem is.
>>
> 
> 
> I cannot comment about Postfix as I never used it but Maildrop will not write to a log file if there is a permissions problem.
> 
> Sean
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Maildrop doesn't filter or log filters
  2003-05-03  7:58     ` Chris Rose
@ 2003-05-03  9:37       ` sean
  0 siblings, 0 replies; 6+ messages in thread
From: sean @ 2003-05-03  9:37 UTC (permalink / raw)
  To: linux-newbie

Chris Rose <offline@shaw.ca> writes:

> Speaking from experience (sorry, should have posted my found fix on
> this a while ago), maildrop may not log that itself, but in the
> /var/log/maillog file you can find its output to stderr that indicated
> a permissions problem.  Once i found this, all of it fell into place.
> 
> sean

No problem, maybe this will help someone else as well :)

Sean
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-05-03  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-01  8:09 Maildrop doesn't filter or log filters sean
2003-05-01 23:14 ` James Turnbull
2003-05-02 21:35   ` sean
2003-05-03  7:58     ` Chris Rose
2003-05-03  9:37       ` sean
  -- strict thread matches above, loose matches on Subject: below --
2003-04-26 15:19 Chris Rose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox