[wplug] Procmail/Fetchmail and multible accounts

Gentgeen gentgeen at linuxmail.org
Sat Dec 17 20:30:02 EST 2005


On Sat, 17 Dec 2005 12:54:39 -0500
Brian Sammon <wplug-list at brisammon.fastmail.fm> wrote:

> > Right now I use fetchmail to hand out "copies" of the email. I am
> > thinking there has to be a better way.  Right now, fetchmail hits
> > kevin_val at comcast.net twice and then hits daughter at comcast.net three
> > times.  Seems like a lot of extra network traffic that I should be
> > able to eliminate, but can't seem to figure out how.
> >
> > poll mail.comcast.net with proto POP3
> >         # Drops Comcast mail into Kevin's account
> >         user 'kevin_val at comcast.net' there with password 'PASSWORD'
> >         is 'kevin' here keep
> >         mda '/usr/bin/procmail -d kevin'       
> > 
> >         # Drops Comcast mail into Val's account
> >         user 'kevin_val at comcast.net' there with password 'PASSWORD'
> >         is 'val' here fetchall
> >         mda '/usr/bin/procmail -d val'
> 
> Have you tried specifying multiple userids on one procmail call? 
> Something like
>   mda '/usr/bin/procmail -d val kevin'
> The procmail manpage on my computer leads me to think that that might
> work as expected.
> 
> If that works, I wouldn't worry too much about the "is" directive in
> your fetchmail configuration as I don't think it affects much (it
> might affect the one Received: header that fetchmail inserts in
> messages)
> 

After doing some research today on a slightly related topic, I got an
idea.  I put a .forward file in val's and daughter's $HOME.  

Then just for saftey measures, made them read-only, and owned by root. 
Since we don't send email to each other directly
(val at localdomain.localhost kind of thing), this will work perfectly.   

-- 
*****************************************************************
 Associate yourself with men of good quality if you esteem    
 your own reputation; for 'tis better to be alone then in bad 
 company.        - George Washington, Rules of Civility


More information about the wplug mailing list