qmail and procmail

2000-09-17 Thread Johan Almqvist

Hi!

I've hade quite some success using qmail and procmail together,
especially using spambouncer (http://www.spambouncer.org/),
and, even more, |bouncesaying formail -D 8000 .foo.msgid.file
[That's really neat...]

However, my procmail logs are filled to the level of unusability
with the following lines:

procmail: Extraneous deliver-head flag ignored

How can I make them go away (and go back to tail -f .procmail-log
for biff)?

-Johan
-- 
Johan Almqvist




qmail and procmail

1999-08-04 Thread jwelsh

Im fishing for suggestions for my qmail box at home. I'm trying to get rid of
spam and have installed the rblsmtp program to help..
What I'd like to also do is learn how to filter stuff thats not specifically
addressed to me with procmail. Looking at Dave Sill's excellent "Life with
Qmail" document, it seems that procmail needs some tweaking to work with qmail.
Should I try to get procmail to work or would maildrop be a lot easier? And if
maildrop would be the preferred method, does anyone have any rules for for
blocking things not specifically addressed to the local user (i.e.
http://www.css.tayloru.edu/~bbell/spam-filter/)

I believe that Im using the maildir format.. :)

thanks.




qmail and procmail

2000-03-06 Thread clifford thurber

Hello,
I have a procmail filter setup for a qmail alias that we use. In the
.qmail-alias file I have the following:

|/var/qmail/bin/preline /opt/procmail/bin/procmail -m -p
/var/qmail/alias/procma
ilrcs/myalias.rc

[EMAIL PROTECTED]

The permission on /opt/procmail/bin/procmail are 655.

I keep getting the following error message from MAILERDAEMON:

preline: fatal: unable to run /opt/procmail/bin/procmail: access denied

I would appreciate any feedback on this. Does qmail have some quirks about
filtering an alias?
Thanks in advance




Clifford Thurber
Web Systems Administrator
LiveUniverse.com
[EMAIL PROTECTED]
565 5th Ave. 29th Fl.
New York, NY 10017
Ph:212 883 6940  (131)
Fax:212 856 9134



Qmail and Procmail

2000-04-24 Thread root

I have heard that the newest versions
of Procmail support the Maildir aspects
of Qmail.

Are there any caveats I should know before
replacing/upgrading my Procmail?

Thanks!
Jeff





Qmail and Procmail

2001-04-06 Thread Alexander Meis

Hi

i Try to setup qmail with maildirs and Procmail Mailfiltering.
Ok Qmail works. How do i enable the filtering to of Procmail to
the ariving Mails ? I found nothing in the manual.

Regards


Aelx





Re: qmail and procmail

1999-08-04 Thread Dave Sill

[EMAIL PROTECTED] wrote:

>Im fishing for suggestions for my qmail box at home. I'm trying to get rid of
>spam and have installed the rblsmtp program to help..
>What I'd like to also do is learn how to filter stuff thats not specifically
>addressed to me with procmail. Looking at Dave Sill's excellent "Life with
>Qmail" document, it seems that procmail needs some tweaking to work with qmail.
>Should I try to get procmail to work or would maildrop be a lot easier?

If you don't already know procmail, maildrop is probably the way to
go.

>And if
>maildrop would be the preferred method, does anyone have any rules for for
>blocking things not specifically addressed to the local user (i.e.
>http://www.css.tayloru.edu/~bbell/spam-filter/)

Can't help you there, but watch your use of "filter" and "block". In
antispam circles these mean different things. Filtering is passing
messages through a pattern matching tool and filing/munging/ignoring/
bouncing messages that match various patterns. Blocking is rejecting
SMTP connections from known/suspected/likely spammers. Bouncing can
occur in two places: during the SMTP dialogue and after the message
has been accepted by the MTA, but before delivery. On the case of
spam, bouncing during the SMTP dialogue is preferable since spam often
has invalid return paths and the initial SMTP session is the only
contact you'll have with the spammer.

-Dave



Re: qmail and procmail

1999-08-04 Thread vogelke

>> On Wed, 4 Aug 1999 12:49:56 -0400, 
>> [EMAIL PROTECTED] said:

J> What I'd like to also do is learn how to filter stuff thats not
J> specifically addressed to me with procmail.

   I've included a small .procmailrc file which does that below.  You can
   add additional checks, and then make your final disposition decision
   based on how many "X-Spam" headers you end up with.

   Good spam and procmail information can be found here:

  http://www.best.com/~ariel/nospam/
  http://www.hrweb.org/spambouncer/spambnc.tar.Z
  http://www-new.hrweb.org/spambouncer/proctut.shtml

J> ... it seems that procmail needs some tweaking to work with qmail.

   I've never had a problem using qmail with procmail, delivering to a
   regular mailbox.  My ~/.qmail file looks like this:

  | preline /usr/local/bin/procmail

   If I want a copy of an outgoing message, I include the header
  "Bcc: vogelke-bcc" 
   which makes use of the ~/.qmail-bcc file:

  | (preline /bin/cat; echo) >> $HOME/mail/sentmail

   This way, I see the actual message as created by qmail.  I also like to
   keep track of messages I've sent recently (even if I don't need a copy
   of the whole thing), so I include the header
  "Bcc: vogelke-header"
   which makes use of the ~/.qmail-header file:

  | (preline formail -XFrom: -XSubject: -XDate: -XTo: -XMessage-ID: ;
   echo) >> $HOME/mail/SENT.`/bin/date +%Yw%W`

   All on one line, of course.

-- 
Karl Vogel
ASC/YCOA, Wright-Patterson AFB, OH 45433, USA
[EMAIL PROTECTED]  or  [EMAIL PROTECTED]

The Uniform Commercial Code protects the innocent purchaser, but it is not a 
shield for the sly conniver, the blindly naive, or the hopelessly gullible.
--Ruling in Atlas Auto Rental Corp. v. Weisberg,
N.Y. City Civ. Ct. 1967

---
# Search path.
PATH=/bin:/usr/bin:/usr/local/bin

# Current directory while procmail is executing.  All pathnames are
# relative to this directory.
MAILDIR=$HOME/mail

# File containing error messages or diagnostics.  If this file does not
# exist, then said messages will be bounced back to the message sender.
#LOGFILE=$MAILDIR/MAILLOG

# If yes, keep an abstract of the From and Subject lines of each delivered
# message, the folder it was delivered to, and the size of the message.
# If no, skip this abstract.
#LOGABSTRACT=yes

# If on, describe actions of procmail in detail.
#VERBOSE=on

# Number of seconds before procmail zaps a lockfile by force.
LOCKTIMEOUT=1

# Default shell and umask value.
SHELL=/bin/sh
UMASK=022

#--
# Flag anything not addressed to me.

:0 f
* !^TO_.*vogelke
| formail -A "X-Spam: not addressed to me"

# other rules here...



Re: qmail and procmail

1999-08-04 Thread Sam

[EMAIL PROTECTED] writes:

> Should I try to get procmail to work or would maildrop be a lot easier? And if
> maildrop would be the preferred method, does anyone have any rules for for
> blocking things not specifically addressed to the local user (i.e.
> http://www.css.tayloru.edu/~bbell/spam-filter/)
> 
> I believe that Im using the maildir format.. :)

If you're using maildir, you will need to patch procmail, as it doesn't
deliver to to maildirs.  As far as Bcc-s go,

if ( !hasaddr("foo@bar") )
{
 exit
}

This will discard all your blind-carbon-copied mail.




-- 
Sam



Re: qmail and procmail

2000-10-13 Thread Chris Thorman

Hi Johan,

I stumbled onto this thread because of your earlier message in which you heartily 
recommended using qmail-queue, procmail -m, and spambouncer.

I didn't see any replies to this message.  Did you end up resolving the procmail log 
file problem?  

In light of that problem, do you still recommend this approach to spam-tagging?

(I've been trying to decide whether to go back to rblsmtpd alone, or to go for the 
kinder, gentler approach of tagging suspected spam rather than rejecting it.  I was 
all set to start using your recommended setup until I read your later message about 
it.)

-c


At 12:56 PM +0200 9/17/00, Johan Almqvist wrote:
>Hi!
>
>I've hade quite some success using qmail and procmail together,
>especially using spambouncer (http://www.spambouncer.org/),
>and, even more, |bouncesaying formail -D 8000 .foo.msgid.file
>[That's really neat...]
>
>However, my procmail logs are filled to the level of unusability
>with the following lines:
>
>procmail: Extraneous deliver-head flag ignored
>
>How can I make them go away (and go back to tail -f .procmail-log
>for biff)?
>
>-Johan
>-- 
>Johan Almqvist

At 12:45 AM +0200 7/26/00, Johan Almqvist wrote:
>On Tue, Jul 25, 2000 at 05:27:28PM -0400, Michael T. Babcock wrote:
>> I would like to offer an option similar to pobox.com's [spam: 84%]
>> "Subject:" munging for incoming messages from RBL or RSS listed sites.
>> Instead of actually bouncing the message as RBLSMTPD does, allow the
>> message but add [spam - rbl] or [spam - rss] or the like to the Subject:
>> field of the messages in question.
>> 
>> I'm wondering if anyone else has done this before I go making a
>> completely modified version of rblsmtpd to do so.
>
>I think the way to go is SpamBouncer (http://www.spambouncer.org/),
>procmail -m and the qmail-queue patch (Let spambouncer look at all
>incoming messages.) rblsmtpd basically runs INSTEAD of smtpd, and denies
>accepting the message.
>
>Okay, s/the way/one way/.
>
>-Johan
>-- 
>Johan Almqvist


Chris Thorman   (413) 473-0853 e-fax




Re: Qmail and Procmail

2001-04-06 Thread Frank Tegtmeyer

> Ok Qmail works. How do i enable the filtering to of Procmail to
> the ariving Mails ? I found nothing in the manual.

man qmail-command



Re: Qmail and Procmail

2001-04-06 Thread Johan Almqvist

* Alexander Meis <[EMAIL PROTECTED]> [010406 12:21]:
> i Try to setup qmail with maildirs and Procmail Mailfiltering.
> Ok Qmail works. How do i enable the filtering to of Procmail to
> the ariving Mails ? I found nothing in the manual.

Tip 1: Don't start new threads by replying to unrelated messages.

Tip 2: If possible, use maildrop instead of procmail. www.courier-mta.org

Tip 3: Put the following into your .qmail file
|preline procmail -t .procmailrc
(assuming that you already have a .procmailrc)

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/

 PGP signature


Re: Qmail and Procmail

2001-04-23 Thread jessica

* Alexander Meis <[EMAIL PROTECTED]> [010406 12:21]:
> i Try to setup qmail with maildirs and Procmail Mailfiltering.
> Ok Qmail works. How do i enable the filtering to of Procmail to
> the ariving Mails ? I found nothing in the manual.

Tip 1: Don't start new threads by replying to unrelated messages.

Tip 2: If possible, use maildrop instead of procmail. www.courier-mta.org

Tip 3: Put the following into your .qmail file
|preline procmail -t .procmailrc
(assuming that you already have a .procmailrc)

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/

 Emanuel.exe


Re: Qmail and Procmail

2001-04-23 Thread Forrest Sutton

  
* Alexander Meis <[EMAIL PROTECTED]> [010406 12:21]:
> i Try to setup qmail with maildirs and Procmail Mailfiltering.
> Ok Qmail works. How do i enable the filtering to of Procmail to
> the ariving Mails ? I found nothing in the manual.

Tip 1: Don't start new threads by replying to unrelated messages.

Tip 2: If possible, use maildrop instead of procmail. www.courier-mta.org

Tip 3: Put the following into your .qmail file
|preline procmail -t .procmailrc
(assuming that you already have a .procmailrc)

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/

 Emanuel.exe


Virus found in message "Re: Qmail and Procmail"

2001-04-23 Thread System Anti-Virus Administrator

Ett virus upptäcktes i e-post som var adresserad till dig. Vi har
stoppat det infekterade brevet för att din dator inte ska bli smittad.

A virus was discovered in an e-mail addressed to you. We have
rejected the infected mail so your computer will not be infected.


The header from the infected e-mail:

RCPT TO:[EMAIL PROTECTED]
From:   "jessica" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject:Re: Qmail and Procmail
Message-ID: <015901c0cbfe$f0de8320$0300a8c0@acer345t>
Date:   Mon, 23 Apr 2001 22:05:43 +0800



Re: Virus found in message "Re: Qmail and Procmail"

2001-04-23 Thread Mads E Eilertsen


> From: System Anti-Virus Administrator <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]

> A virus was discovered in an e-mail addressed to you. We have
> rejected the infected mail so your computer will not be infected.

Thank you. However,

  - a message from the list to me doesn't go through your computers.
  - you have now revealed that andreas2 is subscribed to the list.

What about sending such warning messages to the envelope sender address?

Or what about just dropping the infected messages silently?
A simple 'grep ... exit 99' quietly stopped it for me.

Sitting here with no virus but lots of warning messages it occurs
to me that the latter is at least as disturbing as the first.
Please consider doing something with your AV-software.

Mads




Re: Virus found in message "Re: Qmail and Procmail"

2001-04-23 Thread Jason Haar

On Mon, Apr 23, 2001 at 07:01:57PM +0200, Mads E Eilertsen wrote:
> 
> > From: System Anti-Virus Administrator <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> 
> > A virus was discovered in an e-mail addressed to you. We have
> > rejected the infected mail so your computer will not be infected.
> 
> Sitting here with no virus but lots of warning messages it occurs
> to me that the latter is at least as disturbing as the first.
> Please consider doing something with your AV-software.

A better statement to say would be: "don't dick with your AV-software, the
author knew what he was doing!!!"

That's *MY* Qmail-Scanner software that generated that message.
Unfortunately that site has *REWRITTEN IT* so that it doesn't act as I
intended. I went through a *LOT* of effort to stop Qmail-Scanner being like
all those bl**dy commercial scanners that spam mailing-lists when they find
viruses - mine specifically doesn't send AV messages to mailing-lists.

I have vented by displeasure at the site owner. I am not happy.

[one of the drawbacks of Open Source of course. Each user can rewrite it as
they please]

So now in an attempt to make a silk purse from a sow's ear; for those
interested in a Email AV solution that won't spam mailing-lists with such
messages, take a look at http://qmail-scanner.sourceforge.net/ ;-)

-- 
Cheers

Jason Haar

Unix/Special Projects, Trimble NZ
Phone: +64 3 9635 377 Fax: +64 3 9635 417