Re: [newbie] fetchmail and procmail

2001-11-03 Thread Paul Schwebel

Thanks. I will let you know the results...

=Paul

--- Ralph Slooten [EMAIL PROTECTED] wrote:
 Hi there, sorry for the delay...
 
 On Thu, 1 Nov 2001, Paul Schwebel wrote:
 
  Ralph,
 
  I can see three possible approaches.
 
  Approach 1:
  The one you wrote here makes sense, but I'm not

snip

 Now you should both be able to read / write to those
 folders and nobody
 else.
 
  However this ends up, I've been learning alot.
 Thanks.
 
 We all have :-) LOL
 
 Give it all a shot what's the worst that can
 happen? Maybe your
 computer will turn into a barbeque :-)) ROFL!
 
 Good luck and I hope this helps explain some stuff.
 
 Ralph


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com



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



Re: [newbie] fetchmail and procmail

2001-11-03 Thread Paul Schwebel

Yeah, but now...it's personal! ;-)
-Paul

--- Ralph Slooten [EMAIL PROTECTED] wrote:
 
 Or, really to make things simple, why not just drop
 her old address (just
 not use it), create a yahoo mail address for her,
 and fetch that account
 using pop? This may save you a hell of a lot of time
 and effort :-)
 
 Go to http://www.mandrakestore.com
 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com



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



Re: [newbie] fetchmail and procmail

2001-11-01 Thread Paul Schwebel


--- Ricardo Castanho de O. Freitas
[EMAIL PROTECTED] wrote:
 On Wed, 31 Oct 2001, quaylar wrote:
 
 So you better not run /etc/procmailrc!
 root privileges!!!
 Just make a simple one and copy to other users...
 much better than having
 a security 'hole'!

Then, how do I get this to work? Say I put a
.procmailrc in my home directory and another one in my
wifes. 

The point of this is to filter the mail headers so
that mail addressed to me goes to my mailbox and mail
addressed to my wife goes to hers (we have different
addresses that get forwarded to the same email account
at my ISP). 

Now, say I log in. I have a .procmailrc in my home
directory, so Linux invokes procmail. My recipe tries
to move mail addressed to my wife into her home
directory. I'm not logged in as root, so won't this
fail?


 
 Will this work?? The man page says nothing about
 /etc/procmailrc.
 u sure ? and whats this then :
 man procmail
 If no rcfiles and no -p have been specified on the
 command
 line,  procmail  will, prior to reading
 $HOME/.procmailrc,
 interpret  commands  from  /etc/procmailrc  (if 
 present).
 Care must be taken when creating /etc/procmailrc,
 because,
 if circumstances permit, it will  be  executed 
 with  root
 privileges  (contrary  to  the  $HOME/.procmailrc 
 file of
 course).
 read more carefully ;)
 --quay
 
 -- 

==
 Linux user # 102240 = Machine # 96125 = Seti@home
 user

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


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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



Re: [newbie] fetchmail and procmail

2001-11-01 Thread Paul

In reply to Paul Schwebel's words, written Thu, 1 Nov 2001 09:10:46 -0800
(PST)

Now, say I log in. I have a .procmailrc in my home
directory, so Linux invokes procmail. My recipe tries
to move mail addressed to my wife into her home
directory. I'm not logged in as root, so won't this
fail?

You will have to give yourself writing permissions in the directory of your
wife's home dir for this action to succeed, I'd say.
Paul

--
He who binds to himself a joy
Does a winged life destroy
But he who kisses a joy as it flies
Lives in eternal sunrise
-William Blake

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] fetchmail and procmail

2001-11-01 Thread Ralph Slooten

On Thu, 1 Nov 2001, Paul Schwebel wrote:

 Then, how do I get this to work? Say I put a
 .procmailrc in my home directory and another one in my
 wifes.

 The point of this is to filter the mail headers so
 that mail addressed to me goes to my mailbox and mail
 addressed to my wife goes to hers (we have different
 addresses that get forwarded to the same email account
 at my ISP).

 Now, say I log in. I have a .procmailrc in my home
 directory, so Linux invokes procmail. My recipe tries
 to move mail addressed to my wife into her home
 directory. I'm not logged in as root, so won't this
 fail?

Yes, in my opinion this will fail miserably. The problem here is that you
both receive mail via the same e-mail address (forwarded). There are
probably several complicated ways to get this eventually to work, maybe by
internally mailing messages accross, but this is of course a pain in the
ass. 1 solution I can think of is to export both your mail folders, into
a shared folder like /home/mail . In /home/mail you make then 2 folders,
one for you, the other for your wife. Give read / write / excecute acces to
both these folders of a common user (make something up like homemail or
something). Add yourselves into these groups, and then you and her can both
write and read into those folders. This way your .procmailrc can direct
messages to het straight into her mailfolder.

This of course has absolutely no point if you want total privacy, but hey,
you married her :-) LOL

Not sure what mail program you guys are using, but most standard
mailfolders can just be symlinked to the /home/mail/you or
/home/mail/your_wife folders.

Hope this helps ya,

greetings

Ralph





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



Re: [newbie] fetchmail and procmail

2001-11-01 Thread Paul Schwebel

Ralph,

I can see three possible approaches. 

Approach 1:
The one you wrote here makes sense, but I'm not sure
what you meant below by  export both our mail
folders. She uses Kmail, and I use Evolution.

Approach 2:
Put the .procmailrc in /etc and have procmail run as
root, though I'm not sure: 
1. how to invoke it, and 
2. I don't know if procmail runs with root priviledges
anyway, and 
3.if I have to setuid it and if this is too dangerous
from a security standpoint, not to mention
4. I don't know if a procmail recipe can put mail in
any folder I specify or if it has to be a subfolder of
{HOME}/Mail. 

Finally, we have Approach 3:
Privacy is not the issue. It's just that we share our
email account. Under Win9x this wasn't a problam, but
since Linux really isolates one user from another,
when I get the mail it goes into my inbox and when she
gets the mail it goes into her inbox. I get mail
intended for her and vice versa.
  So, the 3rd approach might be to change the
permissions on the directory that fetchmail dumps the
mail into so we can both access it. 

Is that easier than the symlink approach you
mentioned? We could each symlink our inbox folder to
where fetchmail dumps it? I haven't much experience
with symlinks, so I'm not sure how the permissions
would work. 

However this ends up, I've been learning alot. Thanks.

-Paul


--- Ralph Slooten [EMAIL PROTECTED] wrote:
 On Thu, 1 Nov 2001, Paul Schwebel wrote:
 
  Then, how do I get this to work? Say I put a
  .procmailrc in my home directory and another one
 in my
  wifes.
 
  The point of this is to filter the mail headers so
  that mail addressed to me goes to my mailbox and
 mail
.
.
.
 Yes, in my opinion this will fail miserably. The
 problem here is that you
 both receive mail via the same e-mail address
 (forwarded). There are
 probably several complicated ways to get this
 eventually to work, maybe by
 internally mailing messages accross, but this is of
 course a pain in the
 ass. 1 solution I can think of is to export both
 your mail folders, into
 a shared folder like /home/mail . In /home/mail you
.
.
.
 This of course has absolutely no point if you want
 total privacy, but hey,
 you married her :-) LOL
 
 Not sure what mail program you guys are using, but
 most standard
 mailfolders can just be symlinked to the
 /home/mail/you or
 /home/mail/your_wife folders.
 
 Hope this helps ya,
 
 greetings
 
 Ralph


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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



Re: [newbie] fetchmail and procmail

2001-11-01 Thread Paul Schwebel

No, I think I get it. Right now I have fetchmail get
our mail. Then, you're saying that I can set up a
procmail recipe so that when I get the mail, it sends
wife-specific mail to her, and when she opens the
mail, it sents husband-specific mail to me. Right?

--- Paul [EMAIL PROTECTED] wrote:
 In reply to Paul Schwebel's words, written Thu, 1
 Nov 2001 10:36:53 -0800
 (PST)
 
 Hi Paul,
 
 If you know how to get procmail running on your own
 account, then there would
 be a simple solution as long as you have postfix
 running too.
 You can set up a recipe for procmail that determines
 if mail is for you or
 your wife. If it is your wife's, then just have
.
.
.
, the 3rd approach might be to change the
 permissions on the directory that fetchmail dumps
 the
 mail into so we can both access it. 
 
 
 
 --
 He who binds to himself a joy
 Does a winged life destroy
 But he who kisses a joy as it flies
 Lives in eternal sunrise
 -William Blake
 
 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
 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



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



Re: [newbie] fetchmail and procmail

2001-11-01 Thread Paul

In reply to Paul Schwebel's words, written Thu, 1 Nov 2001 11:12:12 -0800
(PST)

No, I think I get it. Right now I have fetchmail get
our mail. Then, you're saying that I can set up a
procmail recipe so that when I get the mail, it sends
wife-specific mail to her, and when she opens the
mail, it sents husband-specific mail to me. Right?

So it should be. Works fine for me, sending certain mails on to my work
account.
Paul

--
He who binds to himself a joy
Does a winged life destroy
But he who kisses a joy as it flies
Lives in eternal sunrise
-William Blake

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] fetchmail and procmail

2001-11-01 Thread Michael

A couple of weeks ago i set up fetchmail (among others) with help from
this list... Works great now  :) Thanks all!

Reading all your comments here about the danger of running procmail as
root. Is there not a similar warning with running fetchmail as root?
If not, what makes feetchmail safe and procmail not?

Paul wrote:
 
 In reply to Paul Schwebel's words, written Thu, 1 Nov 2001 11:12:12 -0800
 (PST)
 
 No, I think I get it. Right now I have fetchmail get
 our mail. Then, you're saying that I can set up a
 procmail recipe so that when I get the mail, it sends
 wife-specific mail to her, and when she opens the
 mail, it sents husband-specific mail to me. Right?
 
 So it should be. Works fine for me, sending certain mails on to my work
 account.
 Paul
 
 --
 He who binds to himself a joy
 Does a winged life destroy
 But he who kisses a joy as it flies
 Lives in eternal sunrise
 -William Blake
 
 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



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



Re: [newbie] fetchmail and procmail

2001-10-31 Thread quaylar

At 12:14 31.10.2001 -0800, you wrote:
Thanks to the help I've gotten from this list, I'm
configuring fetchmail and procmail to retrieve and
sort my incoming mail. I'm on a single-user machine
runing 8.1.

The fetchmail part was easy, and I think I have an
idea of how to write procmail recipe. My question is,
where do I put the .procmailrc ?

I'm sorting mail in order to put it into different
Mail folders in different home directories. I have
fetchmail running as a daemon. It dumps the mail into
/var/spool/mail/paul. Depending on the To: field,
I'm going to move the mail to either my home directory
or my wife's.

According to what I've been reading, Linux invokes
procmail if it finds the .procmailrc file in the
logged-in user's home directory. But, since I'm moving
mail into different home directories, I need procmail
to be run by root, even though either myself or my
wife will be the logged in user. How do I do this and
where do I put the .procmailrc file?


put it in /etc/procmailrc (without the leading .)
this will make the file globally used.

--quay




-Paul I can type 'man' really fast now Schwebel

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




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



Re: [newbie] fetchmail and procmail

2001-10-31 Thread Arthur H. Johnson II




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.

On Wed, 31 Oct 2001, Paul Schwebel wrote:

 Thanks to the help I've gotten from this list, I'm
 configuring fetchmail and procmail to retrieve and
 sort my incoming mail. I'm on a single-user machine
 runing 8.1.

 The fetchmail part was easy, and I think I have an
 idea of how to write procmail recipe. My question is,
 where do I put the .procmailrc ?

 I'm sorting mail in order to put it into different
 Mail folders in different home directories. I have
 fetchmail running as a daemon. It dumps the mail into
 /var/spool/mail/paul. Depending on the To: field,
 I'm going to move the mail to either my home directory
 or my wife's.

 According to what I've been reading, Linux invokes
 procmail if it finds the .procmailrc file in the
 logged-in user's home directory. But, since I'm moving
 mail into different home directories, I need procmail
 to be run by root, even though either myself or my
 wife will be the logged in user. How do I do this and
 where do I put the .procmailrc file?

 -Paul I can type 'man' really fast now Schwebel

 __
 Do You Yahoo!?
 Make a great connection at Yahoo! Personals.
 http://personals.yahoo.com



-- 
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

:0:
* ^[EMAIL PROTECTED]
newsletters

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

:0:
* ^[EMAIL PROTECTED]
newsletters

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

:0:
* ^[EMAIL PROTECTED]
ltsp

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



Want to buy your Pack or Services from 

Re: [newbie] fetchmail and procmail

2001-10-31 Thread Arthur H. Johnson II



Will this work?? The man page says nothing about /etc/procmailrc.

On Wed, 31 Oct 2001, quaylar wrote:

 At 12:14 31.10.2001 -0800, you wrote:
 Thanks to the help I've gotten from this list, I'm
 configuring fetchmail and procmail to retrieve and
 sort my incoming mail. I'm on a single-user machine
 runing 8.1.
 
 The fetchmail part was easy, and I think I have an
 idea of how to write procmail recipe. My question is,
 where do I put the .procmailrc ?
 
 I'm sorting mail in order to put it into different
 Mail folders in different home directories. I have
 fetchmail running as a daemon. It dumps the mail into
 /var/spool/mail/paul. Depending on the To: field,
 I'm going to move the mail to either my home directory
 or my wife's.
 
 According to what I've been reading, Linux invokes
 procmail if it finds the .procmailrc file in the
 logged-in user's home directory. But, since I'm moving
 mail into different home directories, I need procmail
 to be run by root, even though either myself or my
 wife will be the logged in user. How do I do this and
 where do I put the .procmailrc file?


 put it in /etc/procmailrc (without the leading .)
 this will make the file globally used.

 --quay




 -Paul I can type 'man' really fast now Schwebel
 
 __
 Do You Yahoo!?
 Make a great connection at Yahoo! Personals.
 http://personals.yahoo.com
 
 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com




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




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



Re: [newbie] fetchmail and procmail

2001-10-31 Thread quaylar

At 15:43 31.10.2001 -0500, you wrote:


Will this work?? The man page says nothing about /etc/procmailrc.


u sure ? and whats this then :


man procmail


If no rcfiles and no -p have been specified on the command
line,  procmail  will, prior to reading $HOME/.procmailrc,
interpret  commands  from  /etc/procmailrc  (if  present).
Care must be taken when creating /etc/procmailrc, because,
if circumstances permit, it will  be  executed  with  root
privileges  (contrary  to  the  $HOME/.procmailrc  file of
course).


read more carefully ;)

--quay



On Wed, 31 Oct 2001, quaylar wrote:

  At 12:14 31.10.2001 -0800, you wrote:
  Thanks to the help I've gotten from this list, I'm
  configuring fetchmail and procmail to retrieve and
  sort my incoming mail. I'm on a single-user machine
  runing 8.1.
  
  The fetchmail part was easy, and I think I have an
  idea of how to write procmail recipe. My question is,
  where do I put the .procmailrc ?
  
  I'm sorting mail in order to put it into different
  Mail folders in different home directories. I have
  fetchmail running as a daemon. It dumps the mail into
  /var/spool/mail/paul. Depending on the To: field,
  I'm going to move the mail to either my home directory
  or my wife's.
  
  According to what I've been reading, Linux invokes
  procmail if it finds the .procmailrc file in the
  logged-in user's home directory. But, since I'm moving
  mail into different home directories, I need procmail
  to be run by root, even though either myself or my
  wife will be the logged in user. How do I do this and
  where do I put the .procmailrc file?
 
 
  put it in /etc/procmailrc (without the leading .)
  this will make the file globally used.
 
  --quay
 
 
 
 
  -Paul I can type 'man' really fast now Schwebel
  
  __
  Do You Yahoo!?
  Make a great connection at Yahoo! Personals.
  http://personals.yahoo.com
  
  Want to buy your Pack or Services from MandrakeSoft?
  Go to http://www.mandrakestore.com
 
 
 

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


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




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



Re: [newbie] fetchmail and procmail

2001-10-31 Thread Ricardo Castanho de O. Freitas

On Wed, 31 Oct 2001, quaylar wrote:

So you better not run /etc/procmailrc!
root privileges!!!
Just make a simple one and copy to other users... much better than having
a security 'hole'!

Will this work?? The man page says nothing about /etc/procmailrc.
u sure ? and whats this then :
man procmail
If no rcfiles and no -p have been specified on the command
line,  procmail  will, prior to reading $HOME/.procmailrc,
interpret  commands  from  /etc/procmailrc  (if  present).
Care must be taken when creating /etc/procmailrc, because,
if circumstances permit, it will  be  executed  with  root
privileges  (contrary  to  the  $HOME/.procmailrc  file of
course).
read more carefully ;)
--quay

-- 
==
Linux user # 102240 = Machine # 96125 = Seti@home user
==




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