[newbie] procmail stopped working

2004-10-22 Thread Russell W. Behne
I had tried to install a groupware program tthat only succeded in
screwing up my mail system completly. I removed it, did an rpm -e
postscript, then re-installed postscript and got it working again, but
for some unknown reason I just can't get procmail working again. Can
someone pleaase help me with this? I'm lost!

-- 
Mit freundlichen Gren,
Russ.
 Visit my nursery:
 http://www.angelfire.com/linux/behnesnursery/
  The Behne Family Genealogy Project:
  http://www.usgenealogy.net/members/rwbehne/

Should we continue to trust Bush as our leader? Read this, then you  decide:
http://www.capitolhillblue.com/artman/publish/article_4636.shtml

--=[Russell's Quotes 1]=--

 Lost time is never found again.

=[Russell's Quotes 2]=

 Enjoy the present hour, be mindful of the past;
 And neither fear nor wish the approaches of the last.

---
http://www.TruthAboutWar.org
  What is freedom, really? See this great flash presentation:
 http://www.isil.org/resources/introduction.swf
---


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] procmail stopped working

2004-10-22 Thread Derek Jennings
On Friday 22 October 2004 07:32, Russell W. Behne wrote:
 I had tried to install a groupware program tthat only succeded in
 screwing up my mail system completly. I removed it, did an rpm -e
 postscript, then re-installed postscript and got it working again, but
 for some unknown reason I just can't get procmail working again. Can
 someone pleaase help me with this? I'm lost!

If you want help you had better say precisely what is or is not happening, and 
how you are currently configured. Look at your log files in /var/log/mail 
What is is /etc/postfix/main.cf ? how about ~/.procmailrc ? What was the 
groupware app? Does anything work? How are you testing it?

Plenty of people are willing to help, but we are not psychic.

derek
-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] procmail stopped working

2004-10-22 Thread Russell W. Behne
Today at 11:51, Derek Jennings wrote:
 On Friday 22 October 2004 07:32, Russell W. Behne wrote:
  I had tried to install a groupware program that only succeeded in
  screwing up my mail system completely. I removed it, did an rpm -e
  postscript, then re-installed postscript and got it working again, but
  for some unknown reason I just can't get Procmail working again. Can
  someone pleaase help me with this? I'm lost!

 If you want help you had better say precisely what is or is not happening,
Ok, sorry. I thought I had explained precisely what the problem is. Let 
me try again this way:
1. everything was working fine for the past 7 years.
2. I installed the groupware program from the control panel using 
   `configure groupware' under `Server Wizards'.
3. The entire mail system stopped working, (no mail arriving or 
   leaving.)
4. I removed the packages installed by the `configure groupware'.
5. I removed and re-installed postfix, then struggled to re-configure it 
   so that mail would again go out, then in.
6. Now that mail is once again arriving it's all being dumped into my 
   inbox, meaning that it's apparently not being handed off to Procmail
   by postfix.

 and how you are currently configured. Look at your log files in
 /var/log/mail.

 What is is /etc/postfix/main.cf ?

# maps (change them to ldap)
canonical_maps = hash:/etc/postfix/canonical
local_recipient_maps = 
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = hash:/etc/postfix/virtual
#alias_maps = hash:/etc/postfix/aliases
#alias_database = hash:/etc/postfix/aliases

# local delivery to cyrus (change it to local_transport)
#mailbox_transport = cyrus:unix:extern/cyrus/lmtp
recipient_delimiter = +

# smtp server and access controls
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake 
Linux)
smtpd_recipient_restrictions = 
permit_mynetworks,permit_sasl_authenticated,check_relay_domains
mydestination = $myhostname, localhost.$mydomain, behne.us
mydomain = behne.us
myhostname = behne.us
mynetworks = 127.0.0.0/8, 67.21.58.0/24
relay_domains = 
masquerade_domains = $mydomain
masquerade_exceptions = root

# use tls and sasl auth by default
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
#smtpd_tls_cert_file = /etc/kolab/cert.pem
#smtpd_tls_key_file = /etc/kolab/key.pem
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom

# these are changed by postfix install script #
readme_directory = /usr/share/doc/postfix-2.0.16.20031231/README_FILES
sample_directory = /usr/share/doc/postfix-2.0.16.20031231/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
queue_directory = /var/spool/postfix
mail_owner = postfix
# these are changed by postfix install script #

 how about ~/.procmailrc ? 
That's way too big and private to publish. It hasn't changed from what I 
had built over the years, thus it isn't the problem.

 What was the groupware app?
Do this: start Mandrake's control center, click on `Server Wizards', 
then click on `Configure Groupware'. That is the app that messed 
everything up.

 Does anything work?
As I said, I struggled to get postfix sending  receiving mail again, 
but Procmail isn't working, that is, all mail is being dumped into the 
user's inbox. All 200+/- per day. For some reason it apparently isn't 
being passed from postfix to Procmail. I don't know why, or where to 
look, or what to look at.

 How are you testing it?
Nonsequitur. I have to know what I should try doing before I can test
anything, and testing would simply consist of observing whether incoming
list mail is properly sorted according to my .procmailrc recipes, or
just dumped into the inbox as it now is.

 Plenty of people are willing to help, but we are not psychic.
Neither am I. That's why I said ``I'm lost'' and that I need help.

-- 
Mit freundlichen Gren,
Russ.
 Visit my nursery:
 http://www.angelfire.com/linux/behnesnursery/
  The Behne Family Genealogy Project:
  http://www.usgenealogy.net/members/rwbehne/

Should we continue to trust Bush as our leader? Read this, then you  decide:
http://www.capitolhillblue.com/artman/publish/article_4636.shtml

--=[Russell's Quotes 1]=--

 The poor man must walk to get meat for his stomach, the rich man to get a
 stomach for his meat.

=[Russell's Quotes 2]=

 The Way to see by Faith is to shut the Eye of Reason.

---
http://www.TruthAboutWar.org
  What is freedom, really? See this great flash presentation:
 http://www.isil.org/resources/introduction.swf

Re: [newbie] procmail stopped working

2004-10-22 Thread Derek Jennings
On Friday 22 October 2004 19:11, Russell W. Behne wrote:
 Ok, sorry. I thought I had explained precisely what the problem is. Let
 me try again this way:
 1. everything was working fine for the past 7 years.
 2. I installed the groupware program from the control panel using
`configure groupware' under `Server Wizards'.
 3. The entire mail system stopped working, (no mail arriving or
leaving.)
 4. I removed the packages installed by the `configure groupware'.
 5. I removed and re-installed postfix, then struggled to re-configure it
so that mail would again go out, then in.
 6. Now that mail is once again arriving it's all being dumped into my
inbox, meaning that it's apparently not being handed off to Procmail
by postfix.

  and how you are currently configured. Look at your log files in
  /var/log/mail.
 
  What is is /etc/postfix/main.cf ?

Your main.cf differs from mine in these respects
I have
mail_spool_directory=/var/spool/mail
mailbox_command=/usr/bin/procmail -Y -a $DOMAIN

derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



[newbie] procmail recipe!

2004-03-03 Thread Ricardo Castanho de Oliveira Freitas

I need a recipe to remove an attach from a plain HTML message I receive and 
forward it to a specif folder. I need this attach's for my PDA.

They have a specific extension!

I've googled around, searched for many sites on procmail and nothing good so 
far.

any help?

I need to keep the attach's only for later syncing.

TIA

Ricardo Castanho




-- 
==
Linux user # 102240 = [EMAIL PROTECTED] user = 100% M$ FREE 
==


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [newbie] Procmail mangling my email headers, rendering Netscape Mail/Kmail useless.

2003-10-20 Thread Kaminsky Moshe


 -Original Message-
 From: robin [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 17, 2003 12:12 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] Procmail mangling my email headers, 
 rendering Netscape Mail/Kmail useless.
 
 
 What I would really like would be a procmail recipe to 
 identify a known 
 spammer, scan the message for a telephone number, and set 
 hylafax to fax 
 them a large binary file every five minutes.

That's easy. The real art would be to identify that it's really _his_
phone...

Moshe

 
 Sir Robin
 
 
 -- 
 I declare this sentence a performative!
 
 Robin Turner
 IDMYO
 Bilkent Univeritesi
 Ankara 06533
 Turkey
 
 www.bilkent.edu.tr/~robin
 
 
 
 
 
 
 
 This message is processed by the PrivaWall Email Security Server. 
 
 


 The information contained in this communication is proprietary to Israel Aircraft 
Industries Ltd. 
and/or third parties, may contain confidential or privileged information, and is 
intended only for 
the use of the intended addressee thereof. If you are not the intended addressee, 
please be aware 
that any use, disclosure, distribution and/or copying of this communication is 
strictly prohibited.
If you receive this communication in error, please notify the sender immediately and 
delete it from 
your computer. Thank you. 


This message is processed by the PrivaWall Email Security Server. 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail mangling my email headers, rendering Netscape Mail/Kmail useless.

2003-10-16 Thread robin
Kaminsky Moshe wrote:

 

-Original Message-
From: robin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 1:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Procmail mangling my email headers, 
rendering Netscape Mail/Kmail useless.

Kaminsky Moshe wrote:

   

AFAIK, Netscape (and maybe also Kmail) do not work with procmail.
Netscape is not, strictly speaking, a MUA, but a whole mail system in
one program: It delivers the mail to the local machine, and 
 

does all the
   

redistribution and filtering by itself (I think), basically 
 

performing
   

the roles of fetchmail, sendmail, procmail and a MUA. If you want to
work the traditional unix way (which IMO is better), you 
 

need to use a
   

decent MUA, such as mutt. (Then again, maybe I'm wrong, and there is
some setting that allows netscape mail to function as a MUA, but you
probably have to set this in one of the endless menus)


 

On a typical server setup, procmail kicks in before 
Netscape/Mozilla/whatever downloads your mail, so you can run 
both.  I 
set procmail to send notorious known spam to /dev/null and 
let Mozilla
handle the more subtle stuff.  Mozilla's heuristics are pretty good - 
the disadvantage is that it has to download the mail before it can 
decide it's spam.
   

Ok, but if you want to use procmail only for filtering out some
messages, you must put back in the original mailbox all the mail you
want to read with Mozilla. If that's really Mark's intent, the only
thing to do is change the line saying
DEFAULT=$MAILDIR/inbox

to

DEFAULT=$ORGMAIL

(basically reducing procmail's role to nothing, with the attached
.procmailrc). Any mail redistributed to other mailboxes will never be
seen by Mozilla.
 

That's why I said to use procmail only for the stuff that you definitely 
want to send to /dev/null (or give an error code, if you're feeling 
vindictive).

What I would really like would be a procmail recipe to identify a known 
spammer, scan the message for a telephone number, and set hylafax to fax 
them a large binary file every five minutes.

Sir Robin

--
I declare this sentence a performative!
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail mangling my email headers, rendering Netscape Mail/Kmail useless.

2003-10-14 Thread robin
Kaminsky Moshe wrote:

AFAIK, Netscape (and maybe also Kmail) do not work with procmail.
Netscape is not, strictly speaking, a MUA, but a whole mail system in
one program: It delivers the mail to the local machine, and does all the
redistribution and filtering by itself (I think), basically performing
the roles of fetchmail, sendmail, procmail and a MUA. If you want to
work the traditional unix way (which IMO is better), you need to use a
decent MUA, such as mutt. (Then again, maybe I'm wrong, and there is
some setting that allows netscape mail to function as a MUA, but you
probably have to set this in one of the endless menus)
 

On a typical server setup, procmail kicks in before 
Netscape/Mozilla/whatever downloads your mail, so you can run both.  I 
set procmail to send notorious known spam to /dev/null and let Mozilla 
handle the more subtle stuff.  Mozilla's heuristics are pretty good - 
the disadvantage is that it has to download the mail before it can 
decide it's spam.

Sir Robin

--
I declare this sentence a performative!
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [newbie] Procmail mangling my email headers, rendering Netscape Mail/Kmail useless.

2003-10-14 Thread Kaminsky Moshe


 -Original Message-
 From: robin [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 14, 2003 1:14 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] Procmail mangling my email headers, 
 rendering Netscape Mail/Kmail useless.
 
 
 Kaminsky Moshe wrote:
 
 AFAIK, Netscape (and maybe also Kmail) do not work with procmail.
 Netscape is not, strictly speaking, a MUA, but a whole mail system in
 one program: It delivers the mail to the local machine, and 
 does all the
 redistribution and filtering by itself (I think), basically 
 performing
 the roles of fetchmail, sendmail, procmail and a MUA. If you want to
 work the traditional unix way (which IMO is better), you 
 need to use a
 decent MUA, such as mutt. (Then again, maybe I'm wrong, and there is
 some setting that allows netscape mail to function as a MUA, but you
 probably have to set this in one of the endless menus)
 
   
 
 On a typical server setup, procmail kicks in before 
 Netscape/Mozilla/whatever downloads your mail, so you can run 
 both.  I 
 set procmail to send notorious known spam to /dev/null and 
 let Mozilla
 handle the more subtle stuff.  Mozilla's heuristics are pretty good - 
 the disadvantage is that it has to download the mail before it can 
 decide it's spam.

Ok, but if you want to use procmail only for filtering out some
messages, you must put back in the original mailbox all the mail you
want to read with Mozilla. If that's really Mark's intent, the only
thing to do is change the line saying

DEFAULT=$MAILDIR/inbox

to

DEFAULT=$ORGMAIL

(basically reducing procmail's role to nothing, with the attached
.procmailrc). Any mail redistributed to other mailboxes will never be
seen by Mozilla.

Moshe
 
 Sir Robin
 
 
 -- 
 I declare this sentence a performative!
 
 Robin Turner
 IDMYO
 Bilkent Univeritesi
 Ankara 06533
 Turkey
 
 www.bilkent.edu.tr/~robin
 
 
 
 
 
 
 
 This message is processed by the PrivaWall Email Security Server. 
 
 


 The information contained in this communication is proprietary to Israel Aircraft 
Industries Ltd. 
and/or third parties, may contain confidential or privileged information, and is 
intended only for 
the use of the intended addressee thereof. If you are not the intended addressee, 
please be aware 
that any use, disclosure, distribution and/or copying of this communication is 
strictly prohibited.
If you receive this communication in error, please notify the sender immediately and 
delete it from 
your computer. Thank you. 


This message is processed by the PrivaWall Email Security Server. 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] Procmail mangling my email headers, rendering Netscape Mail/Kmail useless.

2003-10-11 Thread Mark
Help!  I just don't understand what is going on with my mail system.
Let me explain.  

I have two users on my mail server, who access mail remotely, via IMAP

I have been reconfiguring my mail lately, to begin incorporating filtering and 
virus detection.  First I need to get the fetchmail/procmail system working 
correctly.  I am doing the following:

User mark, has a .fetchmailrc file in /home/mark, which is as follows:

poll mail.voyager.net proto pop3
user xxx pass xxx is mark here nokeep

mda '/usr/bin/procmail'


This downloads the mail fine, prior to the incorporation of procmail, 
delivering mail to /var/spool/mail/mark which oddly enough, showed up
under Inbox or inbox on my email programs.  Still don't understand how
it can rename files and such.  I am using mbox format, which is a 
series of text files, one for each folder in the Email program.  Procmail, 
which I just began to setup a couple days ago, 
which uses the /home/mark/.procmailrc file, which is below:

# .procmailrc
# routes incoming mail to appropriate mailboxes

# This line tells procmail where to look for other programs
# it may need to function
PATH=/usr/bin;/usr/local/bin

# This line tells the location of your mailboxes. $HOME stand for
# the users home directory.
MAILDIR=$HOME/mail  # all mailboxes are in mail/

# Not sure what this does but it's optional
DEFAULT=$MAILDIR/inbox

# This line tells where to put the logfile
LOGFILE=$MAILDIR/log/procmail

# This line defines the shell for procmail to run commands in
SHELL=/bin/sh
VERBOSE=yes
# now for the formulas in the following format
#  :0 [flags] [:[lock-file]]
#  zero or more conditions
#  one action line

# Put mail from MythTv mailing list in mailbox myth
#:0:
#* ^(From|Cc|To).*mythtv-users
#$MAILDIR/mythtv


# Lastly, add all remaining to default box
:0:
$DEFAULT

I have the procmail filtering shut off, just to get this working.  Procmail 
delivers the email to the /home/mark/mail/inbox file, but the Netscape and 
Kmail email MUA's do not show that mail has arrived, and in most instances 
will not read the file correctly.  In the event I move the inbox file to a new 
file such has oldinbox, Netscape will read the new file, but without 
delineating the messages, it shows up as ONE big email with  a subject of 
/home/mark/mail/oldinbox

The headers of the mbox file appear to be changed by procmail.  An old header
is shown below:

From [EMAIL PROTECTED] Thu Oct  2 00:36:47 2003 -0400
X-UIDL: 2460106452283620
Received: by pop5.mx.blanked.net (mbox [EMAIL PROTECTED])
(with blanked.net's vgrpop Thu, 25 Sep 2003 18:35:30)
Received: from CLEOHSHUB03.etn.com (fwcout.eaton.com [xxx.104.67.8])
by mx8.mx.blanked.net (8.12.10/8.10.2) with ESMTP id h8PKlEYi040587
for [EMAIL PROTECTED]; Thu, 25 Sep 2003 16:47:14 -0400 (EDT)
Received: by cleohshub03.etn.com with Internet Mail Service (5.5.2653.19)
id TTF0V7LD; Thu, 25 Sep 2003 16:43:48 -0400
Message-ID: [EMAIL PROTECTED]
From: Shirley, Mark R [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: photoshop
Date: Thu, 25 Sep 2003 16:47:06 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary=_=_NextPart_001_01C383A6.2ED49780
Status: RO
X-Status:
From [EMAIL PROTECTED] Thu Oct  2 00:36:47 2003 -0400
X-UIDL: 2460106452283620
Received: by pop5.mx.blanked.net (mbox [EMAIL PROTECTED])
(with voyager.net's vgrpop Thu, 25 Sep 2003 18:35:30)
Received: from CLEOHSHUB03.etn.com (fwcout.eaton.com [xxx.104.67.8])
by mx8.mx.blanked.net (8.12.10/8.10.2) with ESMTP id h8PKlEYi040587
for [EMAIL PROTECTED]; Thu, 25 Sep 2003 16:47:14 -0400 (EDT)
Received: by cleohshub03.etn.com with Internet Mail Service (5.5.2653.19)
id TTF0V7LD; Thu, 25 Sep 2003 16:43:48 -0400
Message-ID: [EMAIL PROTECTED]
From: Shirley, Mark R [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: photoshop
Date: Thu, 25 Sep 2003 16:47:06 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary=_=_NextPart_001_01C383A6.2ED49780
Status: RO
X-Status:
X-Keywords:
X-UID: 74
m [EMAIL PROTECTED] Thu Oct  2 00:36:47 2003 -0400
X-UIDL: 2460106452283620
Received: by pop5.mx.blanked.net (



NOW, a new header generated after passing the emails through
procmail is shown below:

Received: from pop.blanked.net [xxx.93.66.170]
by localhost with POP3 (fetchmail-6.2.1)
for [EMAIL PROTECTED] (single-drop); Sat, 11 Oct 2003 14:48:22 -0400 
(EDT)
Received: from mail2.mx.blanked.net (mail2.mx.blanked.net [216.93.66.201])
by mx9.mx.voyager.net (8.12.10/8.10.2) with ESMTP id h9BIkVMt057795
for [EMAIL PROTECTED]; Sat, 11 Oct 2003 14:46:31 -0400 (EDT)
Received: from blanked.net (d25.as0.chrl.mi.blanked.net [216.93.70.26])
by mail2.mx.voyager.net (8.12.10/8.10.2) with ESMTP id h9BIkTcY058621
   

[newbie] Procmail error msg HELP!

2003-10-10 Thread Ricardo Castanho de Oliveira Freitas
Hi, there!

For some periods, not always, I do get this kind of msg below...

And I DO lose some important mails on that! ;-(

How cain I fix that!

Using ,mdk9.1 + postfix + procmail + kmail (spamassassim somwhere in between!)

TIA!

Ricardo Castanho


=
reporting-MTA: dns; home.english-quest.com.br
Arrival-Date: Fri, 10 Oct 2003 11:01:17 -0400 (EDT)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; Command time limit exceeded: IFS=' '
/usr/bin/procmail -f || exit 75 #ricardo. Command output: procmail:
Missing name
=
-- 
==
Linux user # 102240 = [EMAIL PROTECTED] user = [EMAIL PROTECTED] 
==
AntiVir for UNIX
Copyright (C) 1994-2002 by H+BEDV Datentechnik GmbH. All rights reserved.
For more information see http://www.antivir.de/ or http://www.hbedv.com/


Fri, 10 Oct 2003 13:20:00 -0300
 13:20:00 up 17:09,  3 users,  load average: 1.25, 1.31, 1.28
Kill Ugly Radio
- Frank Zappa

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] Procmail

2003-09-20 Thread HaywireMac

I would just like to post these links, as they are, combined with the
input I received on this page, what finally got me to the point where I
finally kind of sort of understand how Procmail works:

http://www.ii.com/internet/robots/procmail/qs/

http://mirror.ncsa.uiuc.edu/procmail-faq/jimd.html

whereupon Anne jumps in and commands:

Att zose linkks to zee Twiki, schnell! ;-)

BTW, I've tried unsuccessfully to subscribe to the procmail list, anyone
know what's going on with that?

The instructions on the Procmail page say:

Subscribing
To join the list, send mail to

[EMAIL PROTECTED] 

with the word subscribe in the Subject: header. (No quotes, of
course.)

this gets me a 550, command rejected or somesuch...do they just not like
me? :-(

-- 
HaywireMac
Registered Linux user #282046
Homepage: www.orderinchaos.org
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Don't stop to stomp ants when the elephants are stampeding.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail

2003-09-20 Thread Stephen Kuhn
On Sat, 2003-09-20 at 22:09, HaywireMac wrote:
 I would just like to post these links, as they are, combined with the
 input I received on this page, what finally got me to the point where I
 finally kind of sort of understand how Procmail works:
 
 http://www.ii.com/internet/robots/procmail/qs/
 
 http://mirror.ncsa.uiuc.edu/procmail-faq/jimd.html
 
 whereupon Anne jumps in and commands:
 
 Att zose linkks to zee Twiki, schnell! ;-)
 
 BTW, I've tried unsuccessfully to subscribe to the procmail list, anyone
 know what's going on with that?
 
 The instructions on the Procmail page say:
 
 Subscribing
 To join the list, send mail to
 
 [EMAIL PROTECTED] 
 
 with the word subscribe in the Subject: header. (No quotes, of
 course.)
 
 this gets me a 550, command rejected or somesuch...do they just not like
 me? :-(

Maybe they're using a procmail filter on ya mate...
stephen kuhn - owner
==
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
--
  * This message was composed on a 100% Microsoft free computer *
  We expressly refuse to utilise Microsoft DRM encoded documents
--
Gnagloot, n.: A person who leaves all his ski passes on his jacket just
to impress people. -- Rich Hall, Sniglets


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail

2003-09-20 Thread HaywireMac
On Sat, 20 Sep 2003 22:18:12 +1000
Stephen Kuhn [EMAIL PROTECTED] uttered:

 Maybe they're using a procmail filter on ya mate...

yer s predictable... ;-)

-- 
HaywireMac
Registered Linux user #282046
Homepage: www.orderinchaos.org
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Just remember, wherever you go, there you are.
-- Buckaroo Bonzai

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail

2003-09-20 Thread Anne Wilson
On Saturday 20 Sep 2003 3:01 pm, Stephen Kuhn wrote:
 On Sat, 2003-09-20 at 23:39, Anne Wilson wrote:
  On Saturday 20 Sep 2003 1:09 pm, HaywireMac wrote:
   I would just like to post these links, as they are, combined
   with the input I received on this page, what finally got me to
   the point where I finally kind of sort of understand how
   Procmail works:
  
   http://www.ii.com/internet/robots/procmail/qs/
  
   http://mirror.ncsa.uiuc.edu/procmail-faq/jimd.html
  
   whereupon Anne jumps in and commands:
  
   Att zose linkks to zee Twiki, schnell! ;-)
 
  So why are we waiting?
 
  Anne

 Aren't YOU the Twiki-Nazi?

Can't let HM have all the fun g

Anne
-- 
Registered Linux User No.293302
Have you visited http://twiki.mdklinuxfaq.org yet?


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail / twiki

2003-09-20 Thread Eric Huff
 I would just like to post these links, as they are, combined with the
 input I received on this page, what finally got me to the point where
 I finally kind of sort of understand how Procmail works:
 
 http://www.ii.com/internet/robots/procmail/qs/
 
 http://mirror.ncsa.uiuc.edu/procmail-faq/jimd.html
 
 whereupon Anne jumps in and commands:
 
 Att zose linkks to zee Twiki, schnell! ;-)

Hey Hay,

Just to make it easier on you, I started a procmail page at

http://mandrake.vmlinuz.ca/bin/view/Main/ProcMail


Anne (or other knowlegables), do you know how to add a twiki page w/o
first making a new twiki word and clicking the '?' ?

eric

-- 
Mandrake HowTo's  More:  http://twiki.mdklinuxfaq.org

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-05 Thread robin
HaywireMac wrote:

On Wed, 03 Sep 2003 16:43:03 +1000
Stephen Kuhn [EMAIL PROTECTED] uttered:
 

Why not /dev/null?
 

Have you actually read through the entire RC file yet?
   

bows head in em-bare-ass-ment

Funnily enough, this is one of the first messages I received since a typo in my rc.mail sent all of my mail to /dev/null.  The only prog I know with more potential for embarrassment than procmail is postfix (I'll never forget the time I accidentally managed to send the backup log to everyone in our domain).

Now I know why sensible people also have a file named something like rc.testing

Sir Robin
--
There are other rules, but you'll find out what those are when you break them.
- Blake's 7
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Stephen Kuhn
On Wed, 2003-09-03 at 12:12, HaywireMac wrote:

 Why not /dev/null?

Have you actually read through the entire RC file yet?

The idea would be to collect the crap, inspect the crap, then delete the
crap...

What if something came through that WASN'T a bug and WAS important?

 
  Uh - why not just have the clients on the network use IMAP - so that
  you can share a public set of folders...??
 
 Not familiar with that concept, I guess, is why I never thunk of it...

Just like having Exchange and using a public message box/forum - do you
want your wife to CC you on email funnies, or you to CC her on them? Why
not dump them into a public folder that everyone in the house can access
so that you're not necessarily CC'ing everyone that you live with -
helps to cut down unnecessary email traffic, ya reckon? I've got public
folders that I copy stuff to for legal purposes - so the wife and look
at them or refer back to them for accounting/business reasons...

 How does that work? My wife uses Outhouse Express, can that even do
 IMAP? I'm scared to go near that machine...

LookOut Express can do either POP3, IMAP or HTTP-mail...

  It's so bloody easy - but mind you, I substitute SENDMAIL for POSTFIX
  - other than that, it's easy as pie.
 
 Well, I'll take that as encouragement and get started in the AM.

It's so easy even YOU can do it.
 
 But I want to know *how* I would do it in a large scale ops...
 apparently this Linux thing could become attractive in certain business
 sectors, or so I've read in the tabloids, so I would like to be able to
 say, hey, I know how to do that...

Baby steps, Bob.

 Maybe, tho, I've got two things confused, using a *global* fetchmail,
 postfix, and procmail config, and running the lot as a system service. I
 *do* want it to run at boot, and not just as a regular user.

If you setup proper cron jobs, they run at boot - and why even bother to
reboot a unix/linux box anyways?

stephen kuhn
==
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
-
* This message was composed on a 100% Microsoft free computer *
-
There are few people more often in the wrong than those who cannot
endure to be thought so.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Bryan Phinney
On Tuesday 02 September 2003 09:15 pm, HaywireMac wrote:
 On Wed, 03 Sep 2003 07:35:42 +1000

 Stephen Kuhn [EMAIL PROTECTED] uttered:
  Look - it's dependent on your need and requirement.

 What I want to do is implement that wunderbar procmail recipe you linked
 us to, and test it out, eventually I would like to have a mail server up
 and running so that it:

 1. Retrieves the mail from the ISP (fetchmail, precalls mailfilter as
 1st line of defense against the viagra, penis enlargement, (definitely
 not needed ;-)), etc.)

 2. Postfix then deposits the mail, I guess, from what others have
 posted, in appropriate users mailboxes (/var/spoo/mail/[username]

 3. Procmail looks at the mail using said recipe and acts as second line
 of defense against .pif attachments, Nigerian free money scams etc.

 4. IMAP package allows clients on LAN to retrieve mail from mailserver
 using POP.

 I gave up on this before, but I really think I can do it this time!

 But I want this to be a *system* service type deal, because I want to
 learn it as a sysadmin would see it, rather than as an end user, see?

This doesn't sound too hard.

1.  Run Fetchmail as root and pass the mail off through procmail on the way to 
Postfix.  Procmail runs a /etc/procmailrc recipe as a root service and calls 
the nkvir recipe through an include file from that recipe.  You can also add 
in Spamassassin and any other filters in this recipe.

2.  Then the mail goes to Postfix who delivers to local mail box file, 
/var/spool/mail/user based on aliases or the rewrite done by fetchmail in the 
.fetchmailrc file ([EMAIL PROTECTED] is jblow here).  

3.  From the local user directory, create a .forward file that calls procmail 
and applies a local user.procmailrc recipe to do local filtering, although I 
imagine this is supposed to catch stuff that is different from the first set 
of recipes, I am imagining a conservative set of filters for global filtering 
and a more aggressive set here.  So, you could also call spamassassin a 
second time here and apply user_prefs that would apply a customized set of 
filters for user mail.  Procmail, called from the .forward file would then 
put the mail into $maildir/user, should be /home/user/Mail/etc.  

4.  Run an IMAP daemon that allows a user to connect with IMAP and they will 
pull read and write their mail directly to the maildir directories, no need 
to use POP which would remove the mail from the server to a local directory, 
with IMAP, mail stays on the server and the user just accesses through the 
client direct to the server and their maildir directories.

This is way more complex than what I currently do but I think that this is the 
way that it would work.
-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread HaywireMac
On Wed, 03 Sep 2003 16:43:03 +1000
Stephen Kuhn [EMAIL PROTECTED] uttered:

  Why not /dev/null?
 
 Have you actually read through the entire RC file yet?

bows head in em-bare-ass-ment
 
 The idea would be to collect the crap, inspect the crap, then delete
 the crap...

I generally don't want to inspect crap, but I see your point.
  
 Just like having Exchange and using a public message box/forum - do
 you want your wife to CC you on email funnies, or you to CC her on
 them? Why not dump them into a public folder that everyone in the
 house can access so that you're not necessarily CC'ing everyone that
 you live with - helps to cut down unnecessary email traffic, ya
 reckon? I've got public folders that I copy stuff to for legal
 purposes - so the wife and look at them or refer back to them for
 accounting/business reasons...

Like I say, this is more of a learning thing than a practical thing...

Like you say below, baby steps?

  
  Well, I'll take that as encouragement and get started in the AM.
 
 It's so easy even YOU can do it.

Uh, er, thanks... G
  
  But I want to know *how* I would do it in a large scale ops...
  apparently this Linux thing could become attractive in certain
  business sectors, or so I've read in the tabloids, so I would like
  to be able to say, hey, I know how to do that...
 
 Baby steps, Bob.

I gotcha.
 
  Maybe, tho, I've got two things confused, using a *global*
  fetchmail, postfix, and procmail config, and running the lot as a
  system service. I*do* want it to run at boot, and not just as a
  regular user.
 
 If you setup proper cron jobs, they run at boot - and why even bother
 to reboot a unix/linux box anyways?

True, true.

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Superstition, idolatry, and hypocrisy have ample wages, but truth goes
a-begging.
-- Martin Luther

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread HaywireMac
On Wed, 3 Sep 2003 07:49:39 -0400
Bryan Phinney [EMAIL PROTECTED] uttered:

 This doesn't sound too hard.

To a software test engineer maybe... g
 
 1.  Run Fetchmail as root 

So, if I were to follow Stephen's advice and use cron instead of
inetd, I could just su root and crontab -e to create an entry then?
And fetchmail would call Procmail, and then Postfix would automagically
be waiting when Procmail was done it's business? And the hip bone's
connected to the... ;-)

 and pass the mail off through procmail on the way to Postfix. 
 Procmail runs a /etc/procmailrc recipe as a root service and calls the
 nkvir recipe through an include file from that recipe.  You can also
 add in Spamassassin and any other filters in this recipe.

Ok, so I had it backwards, it's Procmail *b4* Postfix then...
 
 2.  Then the mail goes to Postfix who delivers to local mail box file,
 
 /var/spool/mail/user based on aliases or the rewrite done by fetchmail
 in the .fetchmailrc file ([EMAIL PROTECTED] is jblow here).  

Ya, since I'm already with configuring that on fetchmail I would
probably start there, and learn aliases after.

 3.  From the local user directory, create a .forward file that calls
 procmail and applies a local user.procmailrc recipe to do local
 filtering, although I imagine this is supposed to catch stuff that is
 different from the first set of recipes, I am imagining a conservative
 set of filters for global filtering and a more aggressive set here. 

I am looking at sticking to a strictly global config, assuming that I
will allow for a minimal amount of spam to reach the end user. The main
thing is to catch *all* attachments that end in .pif, etc.

The occasional bit of annoying spam is OK.

 So, you could also call spamassassin a second time here and apply
 user_prefs that would apply a customized set of filters for user mail.
  Procmail, called from the .forward file would then 
 put the mail into $maildir/user, should be /home/user/Mail/etc.  
 
 4.  Run an IMAP daemon that allows a user to connect with IMAP and
 they will pull read and write their mail directly to the maildir
 directories, no need to use POP which would remove the mail from the
 server to a local directory, with IMAP, mail stays on the server and
 the user just accesses through the client direct to the server and
 their maildir directories.

Ok, so you and Stephen seem to be in agreement there. With IMAP, tho, is
it still /var/spool/mail/*? 

 This is way more complex than what I currently do but I think that
 this is the way that it would work.

Ya, like I say, it's mainly a learning exercise. I'll take it slow, I
have a test mail account I can use, and a seperate server box, so if I
bork it I can just start over, no harm done. Nice to have that luxury,
wot?

Thanks very much!

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
A thing is not necessarily true because a man dies for it.
-- Oscar Wilde, The Portrait of Mr. W.H.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Bryan Phinney
On Wednesday 03 September 2003 08:06 am, HaywireMac wrote:
 On Wed, 3 Sep 2003 07:49:39 -0400

 Bryan Phinney [EMAIL PROTECTED] uttered:
  This doesn't sound too hard.

 To a software test engineer maybe... g

Hey, those who can't do, test. ;-}

My personal skillset consists, modestly, of being able to figure out where 
other people's elegant solutions are likely to fail.  I don't mind the work 
and I am pretty good at it, but being able to figure out how to break other 
people's creations is not a skill that one should get too arrogant about.

  1.  Run Fetchmail as root

 So, if I were to follow Stephen's advice and use cron instead of
 inetd, I could just su root and crontab -e to create an entry then?

Or use Webmin, if you prefer the easy way to do things.

 And fetchmail would call Procmail, and then Postfix would automagically
 be waiting when Procmail was done it's business? And the hip bone's
 connected to the... ;-)

IIRC, Fetchmail can pass mail through Procmail like a filter, after passing 
through, Procmail adds whatever is called for by the recipes and then 
Fetchmail delivers mail back to the local MTA, Postfix or Sendmail or 
whichever MTA you are running.  Also, Fetchmail can pass mail to Procmail 
which can act as an MDA and puts mail directly into the maildir folders, if 
that is the way that it is configured.


  and pass the mail off through procmail on the way to Postfix.
  Procmail runs a /etc/procmailrc recipe as a root service and calls the
  nkvir recipe through an include file from that recipe.  You can also
  add in Spamassassin and any other filters in this recipe.

 Ok, so I had it backwards, it's Procmail *b4* Postfix then...

Fetchmail to Procmail to Postfix to var/spool/mail to .forward file back to 
Procmail again and into maildir in the /home/user/mail directory.  I think.

  2.  Then the mail goes to Postfix who delivers to local mail box file,
 
  /var/spool/mail/user based on aliases or the rewrite done by fetchmail
  in the .fetchmailrc file ([EMAIL PROTECTED] is jblow here).

 Ya, since I'm already with configuring that on fetchmail I would
 probably start there, and learn aliases after.

I have more than one POP email address.  Aliases are useful when you want mail 
from particular accounts to pass to specific user accounts.  So, mail from 
one POP might go to postmaster which is aliased to a specific user account 
but gets filtered into a specific folder based on the To info.

  3.  From the local user directory, create a .forward file that calls
  procmail and applies a local user.procmailrc recipe to do local
  filtering, although I imagine this is supposed to catch stuff that is
  different from the first set of recipes, I am imagining a conservative
  set of filters for global filtering and a more aggressive set here.

 I am looking at sticking to a strictly global config, assuming that I
 will allow for a minimal amount of spam to reach the end user. The main
 thing is to catch *all* attachments that end in .pif, etc.

 The occasional bit of annoying spam is OK.

Then why worry about the second call to Procmail at all.  Simply pass mail 
from Fetchmail through Procmail with all filtering or even pass mail from 
Fetchmail directly to Postfix which passes mail through Procmail on the way 
to the /var/spool/mail file.  My own setup passes mail from Fetchmail to 
Postfix, through Procmail and then on to /var/spool/mail.  Mail that is 
flagged as virus, or spam by spamassassin is tagged by Procmail and then 
moved directly to /var/spool/mail/spam mailbox where I check it once per week 
before allowing a cron job to delete it.  You could just as readily flag 
based on levels, pass viruses and definite-spam directly to /dev/null and 
then put possible-spam in a spam mailbox where you can check it periodically 
for false positives prior to deleting it.

I find that a spamassassin level of 10 has no false positives and anything 
above a 4 is a possible with very few false positives.  So above 10 gets sent 
to spam, above 4 is flagged for further checking prior to deletion.  Nkvir 
gets called first before spamassassin so viruses and nigerian stuff doesn't 
even make it to spamassassin.


 Ok, so you and Stephen seem to be in agreement there. With IMAP, tho, is
 it still /var/spool/mail/*?

Actually, I think that the way that IMAP works, mail goes directly to $maildir 
which would be /home/user/Mail/etc where users look directly at the mail in 
the directory.  New mail goes to inbox in the maildir directory.  With IMAP, 
I think that you bypass the /var/spool/mail which is an mbox type of file.

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread HaywireMac
On Wed, 3 Sep 2003 09:01:05 -0400
Bryan Phinney [EMAIL PROTECTED] uttered:

 On Wednesday 03 September 2003 08:06 am, HaywireMac wrote:
  On Wed, 3 Sep 2003 07:49:39 -0400
 
  Bryan Phinney [EMAIL PROTECTED] uttered:
 
   1.  Run Fetchmail as root
 
  So, if I were to follow Stephen's advice and use cron instead of
  inetd, I could just su root and crontab -e to create an entry
  then?
 
 Or use Webmin, if you prefer the easy way to do things.

Yes, Webmin is a kickass tool, and cron entries still confuse the hell
out of me. This way I could configure cron thru Webmin, then see what it
spits out to get a better understanding...

  And fetchmail would call Procmail, and then Postfix would
  automagically be waiting when Procmail was done it's business? And
  the hip bone's connected to the... ;-)
 
 IIRC, Fetchmail can pass mail through Procmail like a filter, 

like so:?

postconnect procmail?

 after passing through, Procmail adds whatever is called for by the
 recipes and then Fetchmail delivers mail back to the local MTA,
 Postfix or Sendmail or whichever MTA you are running.  Also, Fetchmail
 can pass mail to Procmail which can act as an MDA and puts mail
 directly into the maildir folders, if that is the way that it is
 configured.

Not to muddy the waters, but just out of curiosity, I could bypass
Postfix completely?

   and pass the mail off through procmail on the way to Postfix.
   Procmail runs a /etc/procmailrc recipe as a root service and calls
   the nkvir recipe through an include file from that recipe.  You
   can also add in Spamassassin and any other filters in this recipe.
 
  Ok, so I had it backwards, it's Procmail *b4* Postfix then...
 
 Fetchmail to Procmail to Postfix to var/spool/mail to .forward file

I read in one quickstart guide that a .forward file is unnecessary if
using fetchmail...is that correct?

 back to Procmail again and into maildir in the /home/user/mail
 directory.  I think.
 
   2.  Then the mail goes to Postfix who delivers to local mail box
   file,
  
   /var/spool/mail/user based on aliases or the rewrite done by
   fetchmail in the .fetchmailrc file ([EMAIL PROTECTED] is jblow
   here).
 
  Ya, since I'm already with configuring that on fetchmail I would
  probably start there, and learn aliases after.
 
 I have more than one POP email address.

Me too. I'm infamous for it, ;-)

 Aliases are useful when you want mail from particular accounts to
 pass to specific user accounts. So, mail from one POP might go to
 postmaster which is aliased to a specific user account but gets
 filtered into a specific folder based on the To info.

But again, that can be done in the fetchmailrc, right? I might stick
with that for now, just to keep it as simple as possible.
 
  I am looking at sticking to a strictly global config, assuming that
  I will allow for a minimal amount of spam to reach the end user. The
  main thing is to catch *all* attachments that end in .pif, etc.
 
  The occasional bit of annoying spam is OK.
 
 Then why worry about the second call to Procmail at all. 

Exactly, I use Mailfilter to delete *definite* no-no's right off the POP
server, then Fetchmail -- Postfix -- Procmail will take care of
the rest...

 Simply pass mail from Fetchmail through Procmail with all filtering
 or even pass mail from Fetchmail directly to Postfix which passes mail
 through Procmail on the way to the /var/spool/mail file.  My own setup
 passes mail from Fetchmail to Postfix, through Procmail and then on to
 /var/spool/mail.  

 I find that a spamassassin level of 10 has no false positives and
 anything above a 4 is a possible with very few false positives.  So
 above 10 gets sent to spam, above 4 is flagged for further checking
 prior to deletion.  Nkvir gets called first before spamassassin so
 viruses and nigerian stuff doesn't even make it to spamassassin.

I'll add the Spamassassin option in later to *really* kick some spam
butt!

This is where I am still confused, though. In the procmailrc, I am under
the impression that one must specify the maildir like so:

MAILDIR=/var/spool/mail/joehill

but of course, if I am dealing with mail for more than one user, do I
just specify /var/spool/mail and Procmail will know which spool to dump
it in, or is this where aliases come in?

Thanks so much for your time and explanations, I *am* reading the docs
at the same time, but as I always say, it is one thing to RTFM, it is
another to UTFM!

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
It is so stupid of modern civilisation to have given up believing in the
devil when he is the only explanation of it.
-- Ronald Knox, Let Dons Delight

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Derek Jennings
On Wednesday 03 Sep 2003 4:28 pm, Bryan Phinney wrote:
 On Wednesday 03 September 2003 10:45 am, HaywireMac wrote:
   IIRC, Fetchmail can pass mail through Procmail like a filter,
 
  like so:?
 
  postconnect procmail?

 IIRC, I read this, but am not doing it myself.  I would have to research to
 find the exact command and syntax to make it do this.


If there is no MTA like Postfix or Sendmail listening on Port 25 fetchmail 
will automatically pass the mail to procmail so long as /etc/procmailrc or 
~/.procmailrc exists.

derek

-- 
--
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread HaywireMac
On Wed, 3 Sep 2003 16:25:42 +0100
Derek Jennings [EMAIL PROTECTED] uttered:

 
 If you install the fetchmail-daemon RPM then fetchmail will
 automatically start as a root service using /etc/fetcmailrc as its
 config file.
 BTW: I may have mentioned this before, but there is a writeup on my
 homepage on precisely the same application as you are trying to do.

ya, ya, you mentioned it, but it was a little more complicated than my
level of understanding up til now. I am reading it now, tho, there may
still be bits which I am unclear on (my fault, not yours), so don't RTFM
me if I still ask ?'s. k?

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
We have reason to be afraid.  This is a terrible place.
-- John Berryman

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread HaywireMac
On Wed, 3 Sep 2003 11:28:13 -0400
Bryan Phinney [EMAIL PROTECTED] uttered:

 On Wednesday 03 September 2003 10:45 am, HaywireMac wrote:
 
   IIRC, Fetchmail can pass mail through Procmail like a filter,
 
  like so:?
 
  postconnect procmail?
 
 IIRC, I read this, but am not doing it myself.  I would have to
 research to find the exact command and syntax to make it do this.

Well, I might just have enough now to do a test run, we'll see how it
goes. I'm looking at Derek's tutorial right now, and it's called from
Postfix, so maybe I'll do it that way.

   after passing through, Procmail adds whatever is called for by the
   recipes and then Fetchmail delivers mail back to the local MTA,
   Postfix or Sendmail or whichever MTA you are running.  Also,
   Fetchmail can pass mail to Procmail which can act as an MDA and
   puts mail directly into the maildir folders, if that is the way
   that it is configured.
 
  Not to muddy the waters, but just out of curiosity, I could bypass
  Postfix completely?
 
 Yes.  Specify a specific MDA, like Procmail and you will bypass
 Postfix completely and write directly to /var/spool/mail/user or write
 directly to maildir type folders as specified by the MDA.
 
  I read in one quickstart guide that a .forward file is unnecessary
  if using fetchmail...is that correct?
 
 Most people only run one set of filters, not more than one since you
 would be checking the same content twice which is twice as much work
 as doing it all the first time.  So, if you use fetchmail and send to
 the MTA which is default behavior, you control delivery from the MTA,
 the .forward file is unnecessary

Excellent, the more steps I can skip while learning, the better...er...
at least in my mind ;-)
 
 No, you can send it wherever you like.  For myself, I don't write
 anything directly to a MAILDIR, I like to pull my mail down with the
 client so that I can do a little client side filtering, such as
 putting mail lists in folders, etc.  So, I use procmail to Append to
 file /var/spool/mail/user when I direct mail to specific places.
 
 Messages that come from known mailing lists or things that I don't
 want to go through the SA or other filters gets appended to
 /var/spool/mail/user, based on who is subscribed to the mail list,
 directly, bypassing any additional filters in Procmail.

How is that accomplished? That would be a procmail recipe, I assume, no?

 Then, known crap is pushed off to /dev/null based on a pinhead list
 that I maintain seperately.

LOL! Hope I never end up on that one...I know I've come close a few
times with others... ;-)

 You can either append it directly using Procmail, or you can stick it
 in MAILDIR directly, or you can let the piped mail go to Postfix where
 it will match the local user specified by Fetchmail with the local
 account and drop it in the right mbox.

Cool.

  Thanks so much for your time and explanations, I *am* reading the
  docs at the same time, but as I always say, it is one thing to RTFM,
  it is another to UTFM!
 
 Some of the stuff you are wanting to do is stuff that I haven't done
 yet, I actually like running my own mail server, even if I don't have
 it open to the net to send mail from.

Ya, that's my one problem is *sending*, as I cannot use my own domain
(lots of people do reverse lookups, see my IP is a consumer block and
reject it...) and must tell Postfix to relay mail through my ISP so as
not to get RBL'd. Someday, though...

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Faith goes out through the window when beauty comes in at the door.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Bryan Phinney
On Wednesday 03 September 2003 11:37 am, Derek Jennings wrote:
 On Wednesday 03 Sep 2003 4:28 pm, Bryan Phinney wrote:
  On Wednesday 03 September 2003 10:45 am, HaywireMac wrote:
IIRC, Fetchmail can pass mail through Procmail like a filter,
  
   like so:?
  
   postconnect procmail?
 
  IIRC, I read this, but am not doing it myself.  I would have to research
  to find the exact command and syntax to make it do this.

 If there is no MTA like Postfix or Sendmail listening on Port 25 fetchmail
 will automatically pass the mail to procmail so long as /etc/procmailrc or
 ~/.procmailrc exists.

Yeah, but that is because it is using Procmail as the MDA.  For some reason, I 
keep thinking that I read some writeup that said that you could pipe mail 
through Procmail with Fetchmail and still have it passed back to the MTA, so 
you could filter some mail out before it got to the MTA.

If he really wants to try to do that, I can try to find where that was again.

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread HaywireMac
On Wed, 3 Sep 2003 12:02:15 -0400
Bryan Phinney [EMAIL PROTECTED] uttered:

 If he really wants to try to do that, I can try to find where that was
 again.

Nah, I'm gonna stick with the info you guys have provided for now, keep
it simple, right?

Thanks for all the help and explanations, I'm starting, just starting
mind you, to get the picture.

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
An idea is not responsible for the people who believe in it.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Bryan Phinney
On Wednesday 03 September 2003 12:00 pm, HaywireMac wrote:
...snip

 How is that accomplished? That would be a procmail recipe, I assume, no?

Yes, something like this:
:0H
* ^List-Owner: mailto:[EMAIL PROTECTED]
/var/spool/mail/user

In the above recipe, it checks headers for the List-Owner header and if it 
matches, it appends the message to /var/spool/mail/user directly rather than 
passing the mail back to the MTA for delivery.

This also serves to bypass any additional procmail recipes that are further 
down the procmailrc file.


 Ya, that's my one problem is *sending*, as I cannot use my own domain
 (lots of people do reverse lookups, see my IP is a consumer block and
 reject it...) and must tell Postfix to relay mail through my ISP so as
 not to get RBL'd. Someday, though...

Well, I don't have my own domain either, even if I did, my ISP blocks outgoing 
port 25 so I can't originate mail outbound, I simply let Postfix relay 
through my ISP, aka smarthosting mail.  

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Bryan Phinney
On Wednesday 03 September 2003 02:09 pm, HaywireMac wrote:
 On Wed, 3 Sep 2003 13:51:49 -0400

 Bryan Phinney [EMAIL PROTECTED] uttered:
  I don't think that it would be too hard.  I could do a DNS query for
  an MX record and if you don't have one, simply deny the connect.  If
  you are running a real mail server, you should have an MX record on a
  DNS.  Dynamic ranges won't have those because they are dynamic.

 How does one register a mail server? Could I not register the one I am
 using, and get around it that way?

 My setup at Zoneedit.com allows me to add a mailserver, what if I just
 put mail.orderinchaos.org?

Might work for some but might not for others.  A reverse DNS on the IP won't 
show Zoneedit as the owner of the dynamic IP, it will show the ISP that the 
IP is assigned to.  Trying to connect to a MTA that does reverse lookups 
would get you denied because the IP would not match the domain that you 
report.  If they are doing that check.  I don't think that there is any real 
substitute for a static IP assigned through a registrar.

I think that in order to run a mailserver with a dynamic address, you have to 
use a mail reflector to bounce mail through.

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-03 Thread Stephen Kuhn
On Wed, 2003-09-03 at 22:06, HaywireMac wrote:
 On Wed, 3 Sep 2003 07:49:39 -0400
 Bryan Phinney [EMAIL PROTECTED] uttered:
 
  This doesn't sound too hard.
 
 To a software test engineer maybe... g

Ok...step by step.

1.) Download the nkvir-rc and put it in your /etc/ directory

2.) Edit the /etc/procmailrc and at the end of the file, but
INCLUDERC=/etc/nkvir-rc

3.) Fire up KCRON (nice GUI for editing the system crontab), locate ROOT
and then right-click TASKS - choose NEW/ADD - put in whatever
description you desire - and in the program field, put
/usr/bin/fetchmail --nodetach

4.) Set the schedule to run every day, at 15 minute intervals (or
whatever you so desire - I like the 15 minute bit because it keeps my
POP3 servers clean and tidy)

5.) On a workstation running MS Outlook Express, create a new account
using IMAP instead of POP3 - put in the name/IP of your linux box along
with the account name and password.

You're done.

stephen kuhn
==
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
-
* This message was composed on a 100% Microsoft free computer *
-
You will step on the night soil of many countries.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] procmail default to inbox

2003-09-02 Thread Todd Slater
My system mailbox is /var/spool/mail/todd; any mail that doesn't get
filtered according to my procmail recipes stays there. How could I make
those messages that fall through the filters go to my inbox folder?

Todd

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] procmail default to inbox

2003-09-02 Thread Derek Jennings
On Tuesday 02 Sep 2003 1:45 pm, Todd Slater wrote:
 My system mailbox is /var/spool/mail/todd; any mail that doesn't get
 filtered according to my procmail recipes stays there. How could I make
 those messages that fall through the filters go to my inbox folder?

 Todd

In your procmailrc
DEFAULT=$HOME/Maildir/  (for example)


derek
-- 
--
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] procmail default to inbox

2003-09-02 Thread Paul
On Tue, 2003-09-02 at 14:45, Todd Slater wrote:

Use this directive

DEFAULT=$HOME/path/yourInbox

to set the default to your inbox.

 My system mailbox is /var/spool/mail/todd; any mail that doesn't get
 filtered according to my procmail recipes stays there. How could I make
 those messages that fall through the filters go to my inbox folder?
 
 Todd

-- 
Lack of planning on your part 
does not constitute an emergency on my part. 

http://www.nlpagan.net - Linux Mandrake - Ximian Evolution


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] procmail default to inbox

2003-09-02 Thread rikona
Hello Todd,

Tuesday, September 2, 2003, 5:45:56 AM, you wrote:

TS My system mailbox is /var/spool/mail/todd; any mail that doesn't get
TS filtered according to my procmail recipes stays there. How could I make
TS those messages that fall through the filters go to my inbox folder?

Try the procmail list for questions. See
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail They have some
very sharp people there and can answer almost anything (I've been
amazed by some of the things they've done). :-)

-- 

 rikonamailto:[EMAIL PROTECTED]


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] procmail default to inbox

2003-09-02 Thread HaywireMac
On Tue, 2 Sep 2003 15:04:02 +0100
Derek Jennings [EMAIL PROTECTED] uttered:

 In your procmailrc
 DEFAULT=$HOME/Maildir/  (for example)

This would be in addition to the:

MAILDIR=/var/spool/mail ?

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
Immortality -- a fate worse than death.
-- Edgar A. Shoaff

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] Procmail and Fetchmail as system services

2003-09-02 Thread HaywireMac

Most of the guides and tutorials I see use ~/.procmalrc as an example,
for use with Fetchmail.

Now, I would like my machine to run Fetchmail as a system service, then
have Procmail twiddle with the mail once it's been delivered to the
appropriate maildirs, ie. /var/spool/mail/[username].

Am I barking up the wrong tree here? Can a systemwide Procmail config
deal with multiple user accounts that have their mail delivered with
Fetchmail, or should I be using Postfix instead of Fetchmail (can
Postfix retrieve mail from a POP server?!)

Brain...feels...sore...

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
You can only live once, but if you do it right, once is enough.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-02 Thread Bryan Phinney
On Tuesday 02 September 2003 03:10 pm, HaywireMac wrote:
 Most of the guides and tutorials I see use ~/.procmalrc as an example,
 for use with Fetchmail.

 Now, I would like my machine to run Fetchmail as a system service, then
 have Procmail twiddle with the mail once it's been delivered to the
 appropriate maildirs, ie. /var/spool/mail/[username].

 Am I barking up the wrong tree here? Can a systemwide Procmail config
 deal with multiple user accounts that have their mail delivered with
 Fetchmail, or should I be using Postfix instead of Fetchmail (can
 Postfix retrieve mail from a POP server?!)

 Brain...feels...sore...

Fetchmail usually delivers mail directly to Postfix which then does the local 
delivery, passing through procmail at that point or afterward.  Fetchmail can 
also deliver mail through procmail but procmail would have to act as an mda, 
mail delivery agent, to put the mail directly into the maildir folders or 
mbox file depending on your preference.

The recommended setup is for fetchmail to pull mail from a pop and deliver to 
an mta (postfix or sendmail) which then does the local delivery.  This allows 
you to use procmail or whatever other filtering agents you want on all mail, 
regardless of who it is going to and to use mta aliases to insure that the 
right pop mail goes to the right local accounts.

BTW, Postfix will NOT retrieve mail from a POP server, it can request the 
server to push mail to it, if the POP server is configured to do so, but most 
individuals will not have an ISP that does this for them unless they are 
running a business account with their own domain name that is hosted by the 
ISP.

You might be better off telling us what you are trying to do with procmail, 
fetchmail, etc. and let us make suggestions that will work for you.  
Personally, I want procmail to do its business before mail hits the local 
account, that way, the most egregious spam is already dealt with, mail from 
people on the blacklist gets trashed before it gets to a local mailbox and 
viruses and the like are filtered before they get to the local users mailbox.  
YMMV.

There is also no reason why you can't do both, use procmail at a system level 
for major filtering and then if you want to use procmail at the local level 
to sort mail into folders, do that using a mail client that pipes messages 
through a local promail recipe.  That depends on the flexibility of the email 
client.

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-02 Thread Mark
On Tue, 2 Sep 2003, HaywireMac wrote:

 
 Most of the guides and tutorials I see use ~/.procmalrc as an example,
 for use with Fetchmail.
 
 Now, I would like my machine to run Fetchmail as a system service, then
 have Procmail twiddle with the mail once it's been delivered to the
 appropriate maildirs, ie. /var/spool/mail/[username].
 
 Am I barking up the wrong tree here? Can a systemwide Procmail config
 deal with multiple user accounts that have their mail delivered with
 Fetchmail, or should I be using Postfix instead of Fetchmail (can
 Postfix retrieve mail from a POP server?!)
 
 Brain...feels...sore...
 

you're definately barking up the correct tree here. there are a few 
different ways you can use procmail to filter and sort the mail as it 
comes in. 

1) you can create a .procmailrc file for each individual user
   on the machine.

2) you can configure, by hand the /etc/procmailrc file and load
   the recipes in with a text editor.

3) you can use the Procmailrc config utility that is available
   through webmin to assist in the creation and configuration
   of procmail.  https://127.0.0.1:1/procmail/

There is also a ton of awesome Procmail primers on the net that can help 
get you started and configure a fine implementation of Procmail.

This is likely the best procmail security page I've ever seen:
http://www.impsec.org/email-tools/procmail-security.html

here's a good getting started page: 
http://www.uwasa.fi/~ts/info/proctips.html

-- 
Mark

If necessity is the mother of invention, then who's the father?
---
Paid for by Penguins against modern appliances(R)
Linux User Since 1996
Powered by Mandrake Linux 8.2  9.1
ICQ# 27816299

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-02 Thread HaywireMac
On Wed, 03 Sep 2003 07:35:42 +1000
Stephen Kuhn [EMAIL PROTECTED] uttered:

 Look - it's dependent on your need and requirement. 

What I want to do is implement that wunderbar procmail recipe you linked
us to, and test it out, eventually I would like to have a mail server up
and running so that it:

1. Retrieves the mail from the ISP (fetchmail, precalls mailfilter as
1st line of defense against the viagra, penis enlargement, (definitely
not needed ;-)), etc.)

2. Postfix then deposits the mail, I guess, from what others have
posted, in appropriate users mailboxes (/var/spoo/mail/[username]

3. Procmail looks at the mail using said recipe and acts as second line
of defense against .pif attachments, Nigerian free money scams etc.

4. IMAP package allows clients on LAN to retrieve mail from mailserver
using POP.

I gave up on this before, but I really think I can do it this time!

But I want this to be a *system* service type deal, because I want to
learn it as a sysadmin would see it, rather than as an end user, see?

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
It is only with the heart one can see clearly; what is essential is
invisible to the eye.
-- The Fox, 'The Little Prince

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-02 Thread Stephen Kuhn
On Wed, 2003-09-03 at 11:15, HaywireMac wrote:

 What I want to do is implement that wunderbar procmail recipe you linked
 us to, and test it out, eventually I would like to have a mail server up
 and running so that it:
 
 1. Retrieves the mail from the ISP (fetchmail, precalls mailfilter as
 1st line of defense against the viagra, penis enlargement, (definitely
 not needed ;-)), etc.)

/etc/procmailrc calls the /etc/nkvir-rc from the INCLUDERC= file - so
you have to look through the nkvir-rc and make sure you create a
/var/spool/mail/virus/ directory - other than that, it's quite cool...

 2. Postfix then deposits the mail, I guess, from what others have
 posted, in appropriate users mailboxes (/var/spoo/mail/[username]
 
 3. Procmail looks at the mail using said recipe and acts as second line
 of defense against .pif attachments, Nigerian free money scams etc.

Speaking of Nigerian - I get announcements from the US Government
about US citizens travelling abroad - it marked one of the US Travel
Announcements as possible spam this morning...so it's doing its job.

 4. IMAP package allows clients on LAN to retrieve mail from mailserver
 using POP.

Uh - why not just have the clients on the network use IMAP - so that you
can share a public set of folders...??

 I gave up on this before, but I really think I can do it this time!

It's so bloody easy - but mind you, I substitute SENDMAIL for POSTFIX -
other than that, it's easy as pie.

 But I want this to be a *system* service type deal, because I want to
 learn it as a sysadmin would see it, rather than as an end user, see?

I like doing it at home as a sysadmin would - some users have particular
needs - hence the customisation per user. Screw the system service.
That's for large scale ops - more than 50 - so I stick with this. Nyah!
Pffftp!

stephen kuhn
==
illawarra computer services
a kuhn media australia company
http://kma.0catch.com
-
* This message was composed on a 100% Microsoft free computer *
-
In 1967, the Soviet Government minted a beautiful silver ruble with
Lenin in a very familiar pose -- arms raised above him, leading the
country to revolution. But, it was clear to everybody, that if you
looked at it from behind, it was clear that Lenin was pointing to 11:00,
when the Vodka shops opened, and was actually saying, Comrades, forward
to the Vodka shops. It became fashionable, when one wanted to have a
drink, to take out the ruble and say, Oh my goodness, Comrades, Lenin
tells me we should go.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail and Fetchmail as system services

2003-09-02 Thread HaywireMac
On Wed, 03 Sep 2003 11:53:52 +1000
Stephen Kuhn [EMAIL PROTECTED] uttered:

 

 
 /etc/procmailrc calls the /etc/nkvir-rc from the INCLUDERC= file - so
 you have to look through the nkvir-rc and make sure you create a
 /var/spool/mail/virus/ directory - other than that, it's quite cool...

Why not /dev/null?

  2. Postfix then deposits the mail, I guess, from what others have
  posted, in appropriate users mailboxes (/var/spoo/mail/[username]
  
  3. Procmail looks at the mail using said recipe and acts as second
  line of defense against .pif attachments, Nigerian free money scams
  etc.
 
 Speaking of Nigerian - I get announcements from the US Government
 about US citizens travelling abroad - it marked one of the US Travel
 Announcements as possible spam this morning...so it's doing its job.
 
  4. IMAP package allows clients on LAN to retrieve mail from
  mailserver using POP.
 
 Uh - why not just have the clients on the network use IMAP - so that
 you can share a public set of folders...??

Not familiar with that concept, I guess, is why I never thunk of it...

How does that work? My wife uses Outhouse Express, can that even do
IMAP? I'm scared to go near that machine...

  I gave up on this before, but I really think I can do it this time!
 
 It's so bloody easy - but mind you, I substitute SENDMAIL for POSTFIX
 - other than that, it's easy as pie.

Well, I'll take that as encouragement and get started in the AM.
 
  But I want this to be a *system* service type deal, because I want
  to learn it as a sysadmin would see it, rather than as an end user,
  see?
 
 I like doing it at home as a sysadmin would - some users have
 particular needs - hence the customisation per user. Screw the system
 service. That's for large scale ops - more than 50 - so I stick with
 this. Nyah! Pffftp!

But I want to know *how* I would do it in a large scale ops...
apparently this Linux thing could become attractive in certain business
sectors, or so I've read in the tabloids, so I would like to be able to
say, hey, I know how to do that...

Maybe, tho, I've got two things confused, using a *global* fetchmail,
postfix, and procmail config, and running the lot as a system service. I
*do* want it to run at boot, and not just as a regular user.

-- 
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++
Mandrake HowTo's  More: http://twiki.mdklinuxfaq.org
++
If you find a solution and become attached to it, the solution may
become
your next problem.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] procmail default move to inbox

2003-08-16 Thread Todd Slater
I just set up procmail not long ago and I have my spam, lists, and bozos
rc files set up. How do I make it so that mails not matching anything in
those goes to the inbox? Right now, everything stays in the spool.

Todd

-- 
Name that tune #4: I said, There is no justice! as they led me out the
door; and the judge said, This isn't a court of justice, son, this is a
court of law.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] procmail and new mail notification

2003-08-03 Thread Todd Slater
I've decided to use Mutt full-time for my mail reader. Moving from
Sylpheed-Claws, my mail is in MH format; I've installed nmh, set up 
~/.procmailrc and added some recipes in ~/.procmail/rc.*.

Now, when most of my mail gets delivered to a folder inside ~/Mail and
only a stray message stays in the spool. How do you set up new mail
notifications with this type of setup? I've read a little about comsat
and biff. I've started comsat and run biff y when I first log in, but
I'm not getting any notifications about new mail in my folders.

Help, suggestions, ideas much appreciated!

Todd

-- 
Name that tune #11: What if the artists ran the TV, all the ads would be
for fine scotch whisky Glenfiddich, Glenlivet, the whole single malt
family.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail Recipes

2003-03-16 Thread Benjamin Pflugmann
Hi.

On Sun 2003-03-16 at 00:03:07 +0100, [EMAIL PROTECTED] wrote:
 On Saturday 15 March 2003 10:53 pm, Stephen Kuhn wrote:
  Hey y'all - anyone remember that I posed a PROCMAILRC a
  while ago - well, as y'all know, all my mail went the way
  of the wind, and if anyone can blast me a copy of it back
  - cuz I'm hustling to get my system back to
  specREALLY APPRECIATE!
 
 Stephen, is this what you want  (attached file) ?

Hehe. As Linus said, backup are for wimps. Real men let just the
public mirror important stuff. :-)

Bye,

Benjamin:


PS: The original quote is:

Only wimps use tape backup: *real* men just upload their
important stuff on FTP, and let the rest of the world mirror
it ;) -- Linus Torvalds (about his failing hard drive)



pgp0.pgp
Description: PGP signature


Re: [newbie] Procmail Recipes

2003-03-16 Thread Stephen Kuhn
On Mon, 2003-03-17 at 00:47, Benjamin Pflugmann wrote:
 Hi.
 
 On Sun 2003-03-16 at 00:03:07 +0100, [EMAIL PROTECTED] wrote:
  On Saturday 15 March 2003 10:53 pm, Stephen Kuhn wrote:
   Hey y'all - anyone remember that I posed a PROCMAILRC a
   while ago - well, as y'all know, all my mail went the way
   of the wind, and if anyone can blast me a copy of it back
   - cuz I'm hustling to get my system back to
   specREALLY APPRECIATE!
  
  Stephen, is this what you want  (attached file) ?
 
 Hehe. As Linus said, backup are for wimps. Real men let just the
 public mirror important stuff. :-)
 
 Bye,
 
   Benjamin:
 
 
 PS: The original quote is:
 
 Only wimps use tape backup: *real* men just upload their
 important stuff on FTP, and let the rest of the world mirror
 it ;) -- Linus Torvalds (about his failing hard drive)

How funny - but how true.
I constantly back up my customers machines to my network - so that I can
scan'em for bugs, burn cd's of their stuff, yadda yadda yadda - but when
it comes to MY stuff, well, I never do anything. As a matter of fact,
last week when I made my complete move to MDK  on my primary box, I
SWORE that I was going to setup a backup to another partition or to the
network so that if I do crash'n'burn again, I'll have a backup - but
still ain't got around to doing it.

At least it's great to know that I did get my procmailrc back (have
heaps of editing to do to it) - thanks to Kaj - maybe I oughta start
posting my entire ~/home/mynamegoeshere directory to the list?

-- 
Mon Mar 17 07:00:00 EST 2003
 07:00:00 up  1:13,  3 users,  load average: 0.02, 0.05, 0.06
--
|____  | kuhn media australia|
|   / ,, /| |'-.   | http://kma.0catch.com   |
|  .\__/ || |   |  |=|
|   _ /  `._ \|_|_.-'  | stephen kuhn|
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED] |
|  |/ ._/  || |  email: [EMAIL PROTECTED]|
|  |'.  `\ | | |icq: 5483808 |
|  ;/ / | | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389|
|  '  `-`'   | Berkeley, New South Wales, AU   |
--
 linux user:267497 * MDK 9.1 * PC/Mac/Linux/Networking/Consulting
 machine no:194239 * RH 7.3 * Sales - Service - Support - Tutor
--
** This messages was composed on a 100% Microsoft free computer **

And he climbed with the lad up the Eiffelberg Tower.  This, cried the Mayor,
is your town's darkest hour!  The time for all Whos who have blood that is red
to come to the aid of their country! he said.  We've GOT to make noises in
greater amounts!  So, open your mouth, lad!  For every voice counts!  Thus he
spoke as he climbed.  When they got to the top, the lad cleared his throat and
he shouted out, YOPP! 
And that Yopp...  That one last small, extra Yopp put it over!
Finally, at last!  From the speck on that clover their voices were heard!
They rang out clear and clean.  And they elephant smiled.  Do you see what
I mean? They've proved they ARE persons, no matter how small.  And their
whole world was saved by the smallest of All!
How true!  Yes, how true, said the big kangaroo.  And, from now
on, you know what I'm planning to do?  From now on, I'm going to protect
them with you!  And the young kangaroo in her pouch said, ME TOO!  From
the sun in the summer.  From rain when it's fall-ish, I'm going to protect
them.  No matter how small-ish!
-- Dr. Seuss Horton Hears a Who

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail Recipes

2003-03-16 Thread David E. Fox

 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename=procmailrc
 
 PATH=/bin:/usr/bin

Hmm. Once I tried procmail and lost a lot of mails as well :(. If you
don't set the .procmailrc correctly it can be problematic.

 # It is reliably reported that this single test may kill half your
 # spam in one shot:
 :0
 * !^Message-Id
 {
 LOG = No ID 
 :0
 /dev/null
 }

Hmm. I didn't think you could send email without a Message-ID.

Anyway, I finally got around to installing SpamAssasin, which 
si also purported to be very good at catching spam. 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Procmail Recipes

2003-03-16 Thread Stephen Kuhn
On Mon, 2003-03-17 at 08:46, David E. Fox wrote:
  Content-Transfer-Encoding: 7bit
  Content-Disposition: attachment; filename=procmailrc
  
  PATH=/bin:/usr/bin
 
 Hmm. Once I tried procmail and lost a lot of mails as well :(. If you
 don't set the .procmailrc correctly it can be problematic.
 

Maybe all your email is spam, ay?

  # It is reliably reported that this single test may kill half your
  # spam in one shot:
  :0
  * !^Message-Id
  {
  LOG = No ID 
  :0
  /dev/null
  }
 
 Hmm. I didn't think you could send email without a Message-ID.
 

There are ways of sending messages without a message-ID - tools that
spammers use have that ability mate.

 Anyway, I finally got around to installing SpamAssasin, which 
 si also purported to be very good at catching spam. 
 
You can still use a really good /etc/procmailrc along with SpamAssassin
- you can never have enough protection. It's like wearing two rubbers!

-- 
Mon Mar 17 08:50:00 EST 2003
 08:50:00 up  3:03,  4 users,  load average: 0.56, 0.42, 0.29
--
|____  | kuhn media australia|
|   / ,, /| |'-.   | http://kma.0catch.com   |
|  .\__/ || |   |  |=|
|   _ /  `._ \|_|_.-'  | stephen kuhn|
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED] |
|  |/ ._/  || |  email: [EMAIL PROTECTED]|
|  |'.  `\ | | |icq: 5483808 |
|  ;/ / | | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389|
|  '  `-`'   | Berkeley, New South Wales, AU   |
--
 linux user:267497 * MDK 9.1 * PC/Mac/Linux/Networking/Consulting
 machine no:194239 * RH 7.3 * Sales - Service - Support - Tutor
--
** This messages was composed on a 100% Microsoft free computer **

To understand a program you must become both the machine and the program.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] Procmail Recipes

2003-03-15 Thread Stephen Kuhn
Hey y'all - anyone remember that I posed a PROCMAILRC a while ago -
well, as y'all know, all my mail went the way of the wind, and if anyone
can blast me a copy of it back - cuz I'm hustling to get my system back
to specREALLY APPRECIATE!

-- 
Sun Mar 16 08:50:00 EST 2003
 08:50:00 up 1 day, 45 min,  4 users,  load average: 0.14, 0.25, 0.21
--
|____  | kuhn media australia|
|   / ,, /| |'-.   | http://kma.0catch.com   |
|  .\__/ || |   |  |=|
|   _ /  `._ \|_|_.-'  | stephen kuhn|
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED] |
|  |/ ._/  || |  email: [EMAIL PROTECTED]|
|  |'.  `\ | | |icq: 5483808 |
|  ;/ / | | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389|
|  '  `-`'   | Berkeley, New South Wales, AU   |
--
 linux user:267497 * MDK 9.1 * PC/Mac/Linux/Networking/Consulting
--
** This messages was composed on a 100% Microsoft free computer **

The road to ruin is always in good repair, and the travellers pay the
expense of it.
-- Josh Billings

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] procmail recipe

2001-11-17 Thread Stephen Liu

Hi Arthur,

In your email of 10/31/2001 to the list you attached a procmail recipe to 
your email.  Could you please email it to me.

Thanks in advance.

B.R.
Stephen Liu


  Date: Wed, 31 Oct 2001 15:38:06 -0500 (EST)
  From: Arthur H. Johnson II [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: [newbie] fetchmail and procmail

  Here is my procmail recipe.  Put it in $HOME/.procmailrc
  then if it is working once you start fetching
  mail it will show where you sorted it in $HOME/.procmaillog.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] Procmail question: timed checks?

2001-11-10 Thread Paul


Hi everyone,

Is there a way to make procmail do certain rule-checks on certain times?
I set it up to forward specific things to my work mail address, but it does
not need to do that in the weekend.
Wat I can think of is 2 INCLUDERC files and a cronjob that sets up one or the
other. One empty for the weekend, one geared up to do the forwards during the
weekdays.

Anyone know a better option?
Paul

--
Birthdays are healthy.
The more you have, the longer you live!

http://nlpagan.net - Registered Linux User 174403
Linux Mandrake 8.0 - Sylpheed 0.6.3 claws
Open Source, Open Minds. Linux.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] Procmail recipes drive me nuts

2001-10-29 Thread Paul

Hi all,

I am fighting with procmail, and am on the wrong end of the battle.

What the . is wrong with these recipes. They don't work.

Set up of the environment:

DEFAULT=$HOME/sylmail/inbox/.
MAILDIR=$HOME/sylmail/
LOGFILE=$HOME/procmail.log

This one is supposed to catch all newbie mail and move it to the MH folder
Lijsten/Newbie

:0
* ^To:.*newbie
Lijsten/Newbie/.

(After looking at the headers I see a Delivered-To:. Could that be the wrong
one?)
Changed it to
:0
* ^Subject:.*\[Newbie

Let's see what happens when I get this back.

This one should send a mail sent to Things on to my work and then store it in
Lijsten/Things (also an MH folder). Things is identified by [Things] in the
subject:

:0
* ^Subject:.*\[Things
{
   :0 c
   ! paul.kater@myjobs-email.com

   :0
   Lijsten/Things/.
} 

And procmail just sits there and catches nothing.
What am I doing wrong? Must be something really dumb...
Paul

--
If you are sure you understand everything that is going on, 
you are hopelessly confused.
-Walter Mondale

http://nlpagan.net - Registered Linux User 174403
Linux Mandrake 8.0 - Sylpheed 0.6.3 claws
Open Source, Open Minds. Linux.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Procmail recipes drive me nuts

2001-10-29 Thread Paul

In reply to Paul's words, written Mon, 29 Oct 2001 20:01:14 -0500

What the . is wrong with these recipes. They don't work.

Okay peeps, forget this one. I am dumb. Solved.
Paul

--
If you are sure you understand everything that is going on, 
you are hopelessly confused.
-Walter Mondale

http://nlpagan.net - Registered Linux User 174403
Linux Mandrake 8.0 - Sylpheed 0.6.3 claws
Open Source, Open Minds. Linux.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Procmail recipes drive me nuts

2001-10-29 Thread Arthur H. Johnson II



Here is my recipe in case you want it.


On Mon, 29 Oct 2001, Paul wrote:

 Hi all,

 I am fighting with procmail, and am on the wrong end of the battle.

 What the . is wrong with these recipes. They don't work.

 Set up of the environment:

 DEFAULT=$HOME/sylmail/inbox/.
 MAILDIR=$HOME/sylmail/
 LOGFILE=$HOME/procmail.log

 This one is supposed to catch all newbie mail and move it to the MH folder
 Lijsten/Newbie

 :0
 * ^To:.*newbie
 Lijsten/Newbie/.

 (After looking at the headers I see a Delivered-To:. Could that be the wrong
 one?)
 Changed it to
 :0
 * ^Subject:.*\[Newbie

 Let's see what happens when I get this back.

 This one should send a mail sent to Things on to my work and then store it in
 Lijsten/Things (also an MH folder). Things is identified by [Things] in the
 subject:

 :0
 * ^Subject:.*\[Things
 {
:0 c
! paul.kater@myjobs-email.com

:0
Lijsten/Things/.
 }

 And procmail just sits there and catches nothing.
 What am I doing wrong? Must be something really dumb...
 Paul

 --
 If you are sure you understand everything that is going on,
 you are hopelessly confused.
 -Walter Mondale

 http://nlpagan.net - Registered Linux User 174403
 Linux Mandrake 8.0 - Sylpheed 0.6.3 claws
 Open Source, Open Minds. Linux.



-- 
Arthur H. Johnson II
[EMAIL PROTECTED]
The Linux Box
http://www.linuxbox.nu


# Arthur H. Johnson II's Procmail Recipe
# 
# This is my procmail recipe.  Use the templates to configure
# your mail filtering provided in the templates comments.
#
# Once you have your filters configured, simply copy this file
# to your mail home directory with the name of .procmailrc.  
# If you wanted to be on the safe side, you could also run:
#
# touch $HOME/.procmaillog
#
# on your mailserver first, but that should not be necessary.
# 
#
# General Options
# 
VERBOSE=no
UMASK=077
MAILDIR=$HOME/mail
LOGFILE=$HOME/.procmaillog
#
# Filter Templates
# 
# Address Template:
#
# -- CUT HERE --
# :0:
# * ^[EMAIL PROTECTED]
# folder 
# 
# :0:
# * ^From:.*[EMAIL PROTECTED]
# folder
# -- CUT HERE --
#
# Change [EMAIL PROTECTED] to the email address you want filtered.
#
#
# Subject Template:
# 
# -- CUT HERE --
# :0:
# * ^Subject:.*words
# folder
# -- CUT HERE --
#
# Change words to what you want filtered from the subject.
#

# Filter configuration.
#
# Simply copy from the template and append to the end of the
# following entries to create a new filter.  Make sure you 
# uncomment the template thou!  hehe
#

#
# Death to spam and stuff im too lazy to unsubscribe from or 
# can't unsubscribe from
#
:0:
* ^Subject:.*testtrash
/dev/null

:0:
* ^[EMAIL PROTECTED]
/dev/null

:0:
* ^From:.*[EMAIL PROTECTED]
/dev/null

:0:
* ^TO_msnbc.com
/dev/null

:0:
* ^From:.*msnbc.com
/dev/null

:0:
* ^[EMAIL PROTECTED]
/dev/null

:0:
* ^From:.*[EMAIL PROTECTED]
/dev/null

# 
# Filter subjects first
#
:0:
* ^Subject:.*testproc
test

:0:
* ^Subject:.*Cron 
admins

:0:
* ^Subject:.*webclip
personal

#
# Now for the standard filters
#

:0:
* ^[EMAIL PROTECTED]
newsletters

:0:
* ^From:.*[EMAIL PROTECTED]
newsletters

:0:
* ^[EMAIL PROTECTED]
admins

:0:
* ^From:.*[EMAIL PROTECTED]
admins

:0:
* ^[EMAIL PROTECTED]
mdkexpert

:0:
* ^From:.*[EMAIL PROTECTED]
mdkexpert

:0:
* ^[EMAIL PROTECTED]
ltsp

:0:
* ^From:.*[EMAIL PROTECTED]
ltsp

:0:
* ^[EMAIL PROTECTED]
newsletters

:0:
* ^From:.*[EMAIL PROTECTED]
newsletters

:0:
* ^[EMAIL PROTECTED]
kde

:0:
* ^From:.*[EMAIL PROTECTED]
kde

:0:
* ^[EMAIL PROTECTED]
kde

:0:
* ^From:.*[EMAIL PROTECTED]
kde

:0:
* ^[EMAIL PROTECTED]
kde

:0:
* ^From:.*[EMAIL PROTECTED]
kde

:0:
* ^[EMAIL PROTECTED]
newsletters

:0:
* ^From:.*[EMAIL PROTECTED]
newsletters

:0:
* ^TO_window.linuxbox.private.nu
saved-messages

:0:
* ^From:.*window.linuxbox.private.nu
saved-messages

:0:
* ^[EMAIL PROTECTED]
newsletters

:0:
* ^From:.*[EMAIL PROTECTED]
newsletters

:0:
* ^[EMAIL PROTECTED]
newbie

:0:
* ^From:.*[EMAIL PROTECTED]
newbie

:0:
* ^[EMAIL PROTECTED]
expert

:0:
* ^From:.*[EMAIL PROTECTED]
expert

:0:
* ^[EMAIL PROTECTED]
kde

:0:
* ^From:.*[EMAIL PROTECTED]
kde

:0:
* ^[EMAIL PROTECTED]
kde

:0:
* ^From:.*[EMAIL PROTECTED]
kde

:0:
* ^[EMAIL PROTECTED]
kde

:0:
* ^From:.*[EMAIL PROTECTED]
kde

:0:
* ^[EMAIL PROTECTED]
yahoo

:0:
* ^From:.*[EMAIL PROTECTED]
yahoo

:0:
* ^[EMAIL PROTECTED]
newsletters

:0:
* ^From:.*[EMAIL PROTECTED]
newsletters



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] Procmail

2001-07-10 Thread Tim Holmes

I just noticed that procmail on my workstations has died.  Suddenly, and
unexpectedly.  I was looking at mail in my in box this morning and noticed
that it should have been in another folder. 

So I check the procmail.log, and the last time it was edited was on June 29th.
Two weeks ago or so.

I haven't installed anything new on the machine... that I know of at least.
My .procmailrc hasn't changed, and the permissions are just fine.

[timh@r2d2 timh]$ ls -la .procmailrc
-rw-r--r--1 timh timh 2125 Jul 10 07:11 .procmailrc

But it's not making an edit to the $HOME/mail/procmail.log that it's told to
do in the headers of the .procmailrc.

PATH=/usr/bin/procmail  # Procmail Path
MAILDIR=$HOME/mail  # You'd better make sure it exists
DEFAULT=/var/mail/timh  # Default mailbox
LOGFILE=/home/timh/mail/procmail.log
LOCKFILE=/home/timh/mail/.lockmail

Since it seems sendmail sends mail through procmail, and then it's filtered,
instead of having to create a .forward like is needed in FreeBSD and other
UNIX OS', I was thinking maybe I need to restart sendmail.  Yet there's no
sendmail in /etc/init.d/ like there is for postfix.  

Has anybody run into this?  Or have an idea of how to resolve this?
tdh
-- 
T. Holmes
-
UNIXTECHS.org
[EMAIL PROTECTED]
-
Real Men Us Vi!

Uptime: 
  
 7:07AM  up 5 days, 10:14, 7 users, load averages: 0.01, 0.03, 0.00
  
Your Fortune
Green light in a.m. for new projects.  Red light in P.M. for traffic
tickets.




[newbie] Procmail+.forward

2000-09-12 Thread Antti Linno

Lo.
 Yesterday I checked if procmail will execute a script of mine, and I
wrote .forward file, in which is line
"|exec /usr/bin/procmail #user@host". First my mail agent said that no
sendmail is installed. Ok, I installed it. Then for check I simply sent a
mail to myself(removed .forward for that), I recived that. Then I made a
forward file and sent mail again under root to user. Then I got the
message back saying that procmail couldn't be execute etc. I looked around
a bit and stumbled upon remark that says that Redhat 6.0 and newer don't
need to write .forward mail to use procmail and .procmailrc . Question
arises, as Mandrake 7.1 (1st CD, was to lazy to burn the 2nd ext) is
compatible with RedHat , do I really need .forward file?
My goal is to execute a script when a new mail arrives at a certain
address.
 Grateful for your help,
Antti
(Btw, has everybody else had problems with Mandrake 7.1 text install? My
install died when I needed to input root password x 2 , so I had to stick
with graphical install and 60Hz vert. ref.(my poor eyes) )





Re: [newbie] procmail sorting

2000-06-21 Thread Monte Milanuk

Well... That doesn't work quite as I had intended.  The
whole story is that the stock kmail that Mandrake 7.1 ships
with has been doing strange things to my mail, and is
generally buggy as heck.  Plus a botched fetchmail run
partways thru left me w/ several hundred duplicate
messages.  I finally got the latest stable version of
kmail, plus the Kleopatra version... neither was an
appreciable improvement for what I wanted.  So I tried
using Netscape Messenger.  It's worked for years, and I've
got the hotkey sequences pretty much hardwired by now. 
Suddenly it tells me that it cant get write permission to
/var/spool/mail/monte for lock files, and I may need to
change permissions to 01777 on that file/directory.  I did
that once, and it worked.  I reinstalled for some unrelated
reasons, and in this install, it doesn't matter if I chmod
the directory or not, Netscape still refuses to get my new
mail.  Fine.  Time for pine, the old standby.  Now I try
the command listed in Jari's procmail tips, referenced
earlier in the thread, and it didn't quite work.  I don't
know if I need to tell procmail to split the inbox file and
treat it like a digest when I feed it to it, but it isn't
creating any of my list mailboxes or anything.  And for
somereason, now pine won't check new stuff in my spool.  So
I try mutt.  It works, but procmail still isn't.  I decided
that I really don't want to settle for a cli mailer unless
there is no other choice.  It looks like I may have to
append all these various mailboxes together, and feed them
thru a duplicate nuking procmail recipe, and then just have
Netscape sort the messages into mailboxes.  What a PITA. 
And I really don't want to have to hunt down and delete
manually the duplicates, so I hope I get procmail running
right, soon.  What a mess.

Monte

=

"Here, catch!  Don't worry, it won't bite...BBPPP!!!...much snicker"

What an unsuspecting mechanic hears as he learns to never, ever, play 'Catch' with a 
bored electrician  ;)

Monte Milanuk

__
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/




[newbie] procmail sorting

2000-06-17 Thread Monte Milanuk

Hello, all.

I am trying to re-process my 'old' mail and get some  procmail filters
working, such as removing duplicates, etc.  Does anyone know how to take
an existing mailbox and 'feed' it back thru again?  I tried 'cat inbox
 /var/spool/mail/monte' which just dumped everything back in the
inbox, apparently bypassing procmail somehow.  Does anyone have any good
ideas on this?

Thanks for your time,

Monte


__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com




Re: [newbie] procmail with postfix

1999-12-05 Thread Thomas J. Hamman

On Sun, 5 Dec 1999, Russ Pitman wrote:

 Hi, 
   Has anyone had probs using procmail as a filter for postfix?

I'm using procmail and postfix and they're working fine... aside from
.forward and .procmailrc I didn't have to tweak any configuration files to
get them to work together.

(I did have some initial problems when I was first trying to set it up,
but it turned out to be because of permissions.)

   I know that postfix supposed to use sendmail compatable .forward
 files but I am stumped as of now.
 
   I have just got postfix running and can send and receive mail to
 myself. Procmail is set up ok in that it is identical to the setup tested
 and working using sendmail,and I have checked its permissions.

Well, if it helps, this is the command in my .forward:

"|exec /usr/bin/procmail"

   So I reckon that my main.cf file for postfix needs tweaking. Its
 attached (in pruned form to keep the bandwidth down), and would appreciate
 any sugestions/comments.  BTW I -am- going to ask on the procmail
 list as well !!!

Are you using the postfix rpm from Mandrake 6.1?  That's what I'm using
and I did not have to edit anything in main.cf for it to work with
procmail..

-Tom



Re: [newbie] procmail with postfix

1999-12-05 Thread Russ Pitman


Thanks Tom for the reply, in going over the permissions I found a dud file
in my procmail dir which caused the hangup. Stupid of me not to go over
-all- of the bits before yelling for help.
I am impressed that you never had to edit the main.cf file. I am
using the stock Mandrake 6.1 but I had to do some head scratching first
up. Thanks again.
 
---russ---

 On Sun, 5 Dec 1999, Thomas J. Hamman wrote:

 On Sun, 5 Dec 1999, Russ Pitman wrote:
 
  Hi, 
  Has anyone had probs using procmail as a filter for postfix?
 
 I'm using procmail and postfix and they're working fine... aside from
 .forward and .procmailrc I didn't have to tweak any configuration files to
 get them to work together.
 
 (I did have some initial problems when I was first trying to set it up,
 but it turned out to be because of permissions.)
 
  I know that postfix supposed to use sendmail compatable .forward
  files but I am stumped as of now.
  
  I have just got postfix running and can send and receive mail to
  myself. Procmail is set up ok in that it is identical to the setup tested
  and working using sendmail,and I have checked its permissions.
 
 Well, if it helps, this is the command in my .forward:
 
 "|exec /usr/bin/procmail"
 
  So I reckon that my main.cf file for postfix needs tweaking. Its
  attached (in pruned form to keep the bandwidth down), and would appreciate
  any sugestions/comments.BTW I -am- going to ask on the procmail
  list as well !!!
 
 Are you using the postfix rpm from Mandrake 6.1?  That's what I'm using
 and I did not have to edit anything in main.cf for it to work with
 procmail..
 
 -Tom
 
 



Re: [newbie] procmail with postfix

1999-12-05 Thread Thomas J. Hamman

On Mon, 6 Dec 1999, Russ Pitman wrote:

 
 Thanks Tom for the reply, in going over the permissions I found a dud file
 in my procmail dir which caused the hangup. Stupid of me not to go over
 -all- of the bits before yelling for help.

Don't feel bad, it took me hours to get procmail working for that same
exact reason. :) (It's the reason I'm using postfix in the first place--I
thought sendmail was why I couldn't get procmail to work so I switched to
postfix and then later noticed I didn't change the permissions of the
files in my Procmail dir.)

   I am impressed that you never had to edit the main.cf file. I am
 using the stock Mandrake 6.1 but I had to do some head scratching first
 up.   Thanks again.

You're welcome. :)  And yeah it's certainly nice not to have to mess with
a file like that.

-Tom



[newbie] Procmail

1999-11-01 Thread Vic

Hey all I was wondering if anyone had any procmail
experience.

I want to write a simple procmail 'recipe' that would
bounce mail from certain addresses rather than just
move them to /dev/null

I would like to have a little text message ready on
my ISP's server to be sent to anyones address who
spams me.

Also I would like this little message to be sent only to the
spammers address and not to a mailer daemon so
to prevent mail loops.

Thanx
--
Vic
Student Of Linux



Re: [newbie] Procmail

1999-11-01 Thread sphilp

On Mon, Nov 01, 1999 at 01:44:35PM -0600, Vic wrote:
 Hey all I was wondering if anyone had any procmail
 experience.
 
 I want to write a simple procmail 'recipe' that would
 bounce mail from certain addresses rather than just
 move them to /dev/null

You can't bounce mail from procmail.  It's too late.  Bouncing is done by
the mail transfer agent.

The best you could do is resend the message with your text attached, but
that would probably require a bit more than a procmail recipe.
 
 I would like to have a little text message ready on
 my ISP's server to be sent to anyones address who
 spams me.

Is this procmail recipe installed on their server?
 
 Also I would like this little message to be sent only to the
 spammers address and not to a mailer daemon so
 to prevent mail loops.

Good luck!  How many of these spam addresses do you really think are real? 
I know if _I_ were going to spam, I'd make sure that replies went straight
to someone else's bit-bucket.

-- 
Steve Philp
Network Administrator
Advance Packaging Corporation
[EMAIL PROTECTED]



Re: [newbie] Procmail

1999-11-01 Thread Vic

Thanx for the info, yeah they have procmail and have showed
me how to make it dump spam into /dev/null, so
I theorised that I could alter that variable to make it
do other things as well like return a message that
looked like a 'bounce' in hopes that it would at
least make it to the relay of the poor sap 
who fell prey to the spammer alerting her/him
of a spam problem like to restrict their relay,
but ideally it would get back to the postmaster or
account of the spammer and they would regard
my address as invalid.

h, guess I need to do a little homework??


On Mon, 01 Nov 1999, you wrote:
 On Mon, Nov 01, 1999 at 01:44:35PM -0600, Vic wrote:
  Hey all I was wondering if anyone had any procmail
  experience.
  
  I want to write a simple procmail 'recipe' that would
  bounce mail from certain addresses rather than just
  move them to /dev/null
 
 You can't bounce mail from procmail.  It's too late.  Bouncing is done by
 the mail transfer agent.
 
 The best you could do is resend the message with your text attached, but
 that would probably require a bit more than a procmail recipe.
  
  I would like to have a little text message ready on
  my ISP's server to be sent to anyones address who
  spams me.
 
 Is this procmail recipe installed on their server?
  
  Also I would like this little message to be sent only to the
  spammers address and not to a mailer daemon so
  to prevent mail loops.
 
 Good luck!  How many of these spam addresses do you really think are real? 
 I know if _I_ were going to spam, I'd make sure that replies went straight
 to someone else's bit-bucket.
 
 -- 
 Steve Philp
 Network Administrator
 Advance Packaging Corporation
 [EMAIL PROTECTED]
--
Vic
Student Of Linux



Re: [newbie] Procmail

1999-10-22 Thread Ribbo

On Thu, Oct 21, 1999 at 10:38:28PM -0400, Thomas J. Hamman said:
 
 Indeed my .procmailrc was group writable... I did a chmod 644 and bam it works.
  Go figure.
 

glad you made it...
so which will you using then, postfix or sendmail? with or without .forward? 
more things to consider, you should try Fetchpop, its faster than fetchmail,
but cant handle multiple email-account like fetchmail does.
try Mutt instead of PINE. Since i use Mutt (with vim) i never want to use another 
mail-client again.
dont forget to use transparent Aterm/Eterm if you want to read from X  :)

have a good weekend


-- 
Rib



Re: [newbie] Procmail

1999-10-20 Thread Ribbo

On Wed, Oct 20, 1999 at 08:50:38PM -0400, Thomas J. Hamman said:
 
 I gave that a try and it didn't work, all my mail was tossed into
 /var/spool/mail/hawk3 instead of being filtered by my .procmailrc.  Did you
 alter any of sendmail's settings so that it would use .procmailrc without
 needing .forward?

how do you download your emails? 
i use fetchmail (i see you're using XFmail and if i were you i will filtering my mails 
with it).
i didn't make any changes to my sendmail except the smart_relay_host part in
sendmail.cf so i can use another smtp address (thats for sending).
procmail+sendmail without .forward file working for me since i use Redhat 5.2,
and fetchmail for mail-downloader.
did you check the .mailog? 

 Hmm, I'm using Mandrake 6.1 as well with the same procmail and sendmail
 packages, and postfix is not installed, but for me sendmail seems to ignore
 .procmailrc if there's no .forward.

Sendmail wont ignore your procmail (if theres any)
check your /etc/sendmail.cf and make sure this line
Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=procmail -Y -a $h -d $u

see thats why you dont need .forward file just for using procmail :)
if you use XFmail for download your email, maybe it past through the
procmail because mail client like XFmail doesn't need MTA for sender and
receiver (CMIIW).
but if you use fetchmail (or fetchpop) and still not working, then give postfix a try 
(its simple than sendmail to configure).
# ntsysv (uncheck sendmail)
# /etc/rc.d/init.d/sendmail stop
# rpm -e --nodeps sendmail
# rpm -ivh postfix.*.rpm
# /etc/rc.d/init.d/postfix start
do some test, send mail to your self (ie. [EMAIL PROTECTED])
then check your spool/mail dir, and check your procmail-log file.


-- 
Rib



Re: [newbie] Procmail

1999-10-19 Thread Michael R. Batchelor

 what you put in your ~/.forward file?  I've tried several variations, including
 this one given in procmail's manpage:
 
 "|exec /usr/bin/procmail"
 
 And it does not work.


Try removing the exec so it looks like

"|/usr/bin/procmail"

just in case your sendmail is configured to deny exec.
That should dump the message directly into procmail's 
standard input. Of course, you need to verify that procmail 
is actually installed in /usr/bin, too.

MB



Re: [newbie] Procmail

1999-10-19 Thread John Richards

I'm having the same problem.  If I use:

"|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #richajoh"

an error is mailed to root that says 'sh: cannot use  in command'.

If I use:

"|exec /usr/bin/procmail #richajoh"

I get address richajoh is unsafe for mailing to programs.

Anyone have any ideas?   If anyone has procmail working in Mandrake 6.1,
what do you have in your forward?

-JR


- Original Message -
From: Thomas J. Hamman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 19, 1999 11:18 AM
Subject: Re: [newbie] Procmail


 Can somebody who uses Procmail for mail filtering (or knows how) please
tell me
 what you put in your ~/.forward file?  I've tried several variations,
including
 this one given in procmail's manpage:

 "|exec /usr/bin/procmail"

 And it does not work.



 On 19-Oct-99 Civileme wrote:
  Tom,
 
  I think I need to see the line before that one as well. The pipe
established
  on
  that line has to be from something.  Better yet, a copy of the file
where it
  is.
  I see a shell error being reported which indicates a syntax problem is
  isolating
  an '' somehow.

 That line is the only line in the file (and as far as I can tell, the only
line
 that's supposed to be in it).

  One elementary check is to make sure the example line isn't using `
  (lowercase of
  the uppercase ~ key) where you are using ' (lowercase of the uppercase "
key)
  .
 
  Civileme

 I checked, and was indeed using the correct key.  I've since tried some
 alternate .forward files given in the documentation I was using, including
the
 one given in procmail's man page (which I typed above), and they all
result in
 the test mail being lost and me receiving (when I check in my X-based mail
 client so procmail can't lose it) a mail ending in something like this:

- Transcript of session follows -
 sh: exec not available for sendmail programs
 554 "|exec /usr/bin/procmail"... Service unavailable

 It's as if sendmail doesn't want to run any of the commands in the
.forward
 file..

 -Tom





Re: [newbie] Procmail

1999-10-19 Thread Thomas J. Hamman

On 19-Oct-99 Michael R. Batchelor wrote:
 Try removing the exec so it looks like
 
 "|/usr/bin/procmail"
 
 just in case your sendmail is configured to deny exec.
 That should dump the message directly into procmail's 
 standard input. Of course, you need to verify that procmail 
 is actually installed in /usr/bin, too.

Thanks; however, that didn't work either.  It produced the same result as the
other lines I tried.  The mail I receive pointing out the failed delivery
includes this:


   - Transcript of session follows -
sh: procmail not available for sendmail programs
554 "|/usr/bin/procmail"... Service unavailable


Procmail is definitely installed and in /usr/bin.  Are there any default
settings (I haven't messed with sendmail's settings at all) that would make
sendmail unable to use procmail?

-Tom



[newbie] Procmail

1999-10-18 Thread Thomas J. Hamman

Could somebody please point me to some documentation for setting up procmail to
filter E-mail?  The man pages aren't very helpful to someone completely new to
filtering with procmail, and I've been following the Procmail Quickstart guide
at http://www.ii.com/internet/robots/procmail/qs/ but unfortunately the line it
said to put in my .forward file failed me.

I set up my .procmailrc and .forward files as directed by the aforementioned
quickstart guide.  I then tried sending myself a test mail from Pine, and then
ran fetchmail (which is properly set up) to try receiving the mail.

The test mail, after being retrieved (and deleted from the server), was nowhere
to be found on my hard drive.  Then I retrieved my mail with XFMail and
received a mail with the subject "Returned mail: Service unavailable" which had
this in the body:



The original message was received at Mon, 18 Oct 1999 21:52:47 -0400
from localhost [127.0.0.1]

   - The following addresses had permanent fatal errors -
"|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #hawk3"
(expanded from: hawk3@localhost)

   - Transcript of session follows -
sh: cannot use  in command
554 "|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #hawk3"... Service
unavailable


I assume from that message that there is something wrong with the
.forward file which contains this line:

"|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #hawk3"

This is exactly what the Quickstart guide said to use, except that I changed
the path to correctly point to where Mandrake installs procmail, and I used my
user ID instead of the example's, of course.

If there is just a small adjustment I should be making to the .forward file,
can someone tell me what it is?  On the other hand, if there is other
documentation that could give me more useable information on setting up mail
filters with procmail, could somebody point me to it?

Thanks for any help.

-Tom



Re: [newbie] Procmail

1999-10-18 Thread Civileme

"Thomas J. Hamman" wrote:

 Could somebody please point me to some documentation for setting up procmail to
 filter E-mail?  The man pages aren't very helpful to someone completely new to
 filtering with procmail, and I've been following the Procmail Quickstart guide
 at http://www.ii.com/internet/robots/procmail/qs/ but unfortunately the line it
 said to put in my .forward file failed me.

 I set up my .procmailrc and .forward files as directed by the aforementioned
 quickstart guide.  I then tried sending myself a test mail from Pine, and then
 ran fetchmail (which is properly set up) to try receiving the mail.

 The test mail, after being retrieved (and deleted from the server), was nowhere
 to be found on my hard drive.  Then I retrieved my mail with XFMail and
 received a mail with the subject "Returned mail: Service unavailable" which had
 this in the body:

 The original message was received at Mon, 18 Oct 1999 21:52:47 -0400
 from localhost [127.0.0.1]

- The following addresses had permanent fatal errors -
 "|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #hawk3"
 (expanded from: hawk3@localhost)

- Transcript of session follows -
 sh: cannot use  in command
 554 "|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #hawk3"... Service
 unavailable

 I assume from that message that there is something wrong with the
 .forward file which contains this line:

 "|IFS=' '  exec /usr/bin/procmail -f- || exit 75 #hawk3"

 This is exactly what the Quickstart guide said to use, except that I changed
 the path to correctly point to where Mandrake installs procmail, and I used my
 user ID instead of the example's, of course.

 If there is just a small adjustment I should be making to the .forward file,
 can someone tell me what it is?  On the other hand, if there is other
 documentation that could give me more useable information on setting up mail
 filters with procmail, could somebody point me to it?

 Thanks for any help.

 -Tom

Tom,

I think I need to see the line before that one as well. The pipe established on
that line has to be from something.  Better yet, a copy of the file where it is.
I see a shell error being reported which indicates a syntax problem is isolating
an '' somehow.

One elementary check is to make sure the example line isn't using ` (lowercase of
the uppercase ~ key) where you are using ' (lowercase of the uppercase " key) .

Civileme



Re: [newbie] Procmail Woes

1999-10-03 Thread Ribbo

On Mon, Sep 27, 1999 at 09:28:54PM -0400, Jim Howarth said:
 I am presently attempting to setup procmail and its not sending my
 messages to the appropriate place...I have followed the instructions
 in the FAQ by the letter and yet it isn't processing the mail properly.
 I'm pretty sure that the problem is in the .forward file.  Attached are
 both my .forward file and .procmailrc file.
 
 Any help would be appreciated!

Jim,
first, make sure you run MTA Daemon, Sendmail or Postfix, both include in Mandrake 6.x.
but dont run postfix and sendmail at the same time, and you have to choose only one of
them installed to your system.
you dont realy need that .forward file, works fine with me.

-- 
Rib
mailto:[EMAIL PROTECTED]
West Java - Indonesia



[newbie] procmail

1999-09-30 Thread James Stewart

I'm using procmail as my mta in .fetchmailrc as I had various problems
with sendmail.

I was wondering if anyone could tell me the correct syntax to have
procmail pass a message into a particular mailbox rather than forwarding
it to a user?

currently, to forward to a user, I'd use:
"procmail -t -d james"

James.

-- 
James Stewart |  Britlinks |  The Phantom Tollbooth
[EMAIL PROTECTED] | http://www.britlinks.co.uk | http://www.tollbooth.org

 Sixpence None The Richer UK -- http://www.britlinks.co.uk/sixpence/



[newbie] Procmail Woes

1999-09-27 Thread Jim Howarth

I am presently attempting to setup procmail and its not sending my
messages to the appropriate place...I have followed the instructions
in the FAQ by the letter and yet it isn't processing the mail properly.
I'm pretty sure that the problem is in the .forward file.  Attached are
both my .forward file and .procmailrc file.

Any help would be appreciated!

 .forward 

"|exec /usr/bin/procmail"

 .procmailrc 

VERBOSE=off
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.testing
INCLUDERC=$PMDIR/rc.maillists

 rc.testing -

:0:
* ^Subject:.*test
IN.testing

-
Jim Howarth - Resident Geek

"For men may come and men may go, but I go on forever" - Tennyson