Re: fetchmail and multiple users in one POP3 box

2000-01-09 Thread Brian Servis
*- On  9 Jan, hypnos wrote about "Re: fetchmail and multiple users in one POP3 
box"
> On Sun, 9 Jan 2000, Jeff Flowers wrote:
> 
>> Can this command be run everytime that I connect to the internet?
> 
> Yep, put that stuff (that I snipped) into .fetchmailrc
> in your home directory, and add something like this
> to your /etc/ppp/ip-up
> 
> fetchmail -f /home/jeff/.fetchmailrc
> 
> That will run fetchmail once each time you connect,
> to have it keep checking mail while you're online,
> add '-d xxx' to the command above.  'xxx' is the
> interval (in seconds) between mail checks.  For
> example, -d 600 will call fetchmail once every 10
> minutes.  If you use the -d option, you will want
> to put "fetchmail -q" in your /etc/ppp/ip-down file.
> to stop it when you disconnect.
> 

The Debian fetchmail maintainer has included two scripts, fetchmail-up
and fetchmail-down in the /usr/doc/fetchmail directory to place in the
appropriate directories of /etc/ppp/ip-up.d and /etc/ppp/ip-down.d. Just
remember that ppp runs all its scripts as root so be careful with
permissions and things that you do in your scripts. Some people prefer to
use su to change the user away from root for these tasks for security
reasons.

Brian Servis
-- 

Mechanical Engineering  |  Never criticize anybody until you  
Purdue University   |  have walked a mile in their shoes,
[EMAIL PROTECTED]   |  because by that time you will be a
http://www.ecn.purdue.edu/~servis   |  mile away and have their shoes.


Re: fetchmail and multiple users in one POP3 box

2000-01-09 Thread hypnos
On Sun, 9 Jan 2000, Jeff Flowers wrote:

> Can this command be run everytime that I connect to the internet?

Yep, put that stuff (that I snipped) into .fetchmailrc
in your home directory, and add something like this
to your /etc/ppp/ip-up

fetchmail -f /home/jeff/.fetchmailrc

That will run fetchmail once each time you connect,
to have it keep checking mail while you're online,
add '-d xxx' to the command above.  'xxx' is the
interval (in seconds) between mail checks.  For
example, -d 600 will call fetchmail once every 10
minutes.  If you use the -d option, you will want
to put "fetchmail -q" in your /etc/ppp/ip-down file.
to stop it when you disconnect.

--
hypnos  



Re: fetchmail and multiple users in one POP3 box

2000-01-09 Thread Jeff Flowers
Can this command be run everytime that I connect to the internet?

Jeff

> ~/.fetchmailrc:
> 
> poll pop3.domain.com using protocol pop3
>user a there is john here password secret;
> poll pop3.domain.com using protocol pop3
>user b there is bert here password blah;


Re: fetchmail and multiple users in one POP3 box

2000-01-09 Thread Phillip Deackes
Steve George <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I currently have mail for a domain which is sent to my ISP's POP3
> server.
> I'd like to have multiple users on the domain be delivered to
> different users
> on my system but the documentation on fetchmail seems to be saying
> that this
> is a bad idea.  Is anyone doing this?
> 
> Basically I need fetchmail to look at the username in front of the @
> symbol
> and then deliver the mail tothe correct user, for example:
>   [EMAIL PROTECTED] is john here
>   [EMAIL PROTECTED] is bert here

Hi, Steve.

I do just that on my system. I have two users, gsmh and scott (Scott's
email name is sah1). I use fetchmail, which hands the mail onto exim for
delivery, so exim gets the mail to the right account. My email address
with my IP is [EMAIL PROTECTED], so my IP username is
effectively scgf:

My .fetchmailrc looks like this:

poll pop.clara.net
protocol pop3
username scgf is gsmh an this system
password xxx

Then I have a .forward file which begins:

# Exim filter  <<== do not edit or remove this line!

if error_message then finish endif
logfile $home/eximfilter.log

if $header_to: contains "sah1" 
then deliver scott

elif $h_x-mailing-list matches "^"
then seen save $home/Mail/Debian

I (gsmh) am the only user who collects mail so the system works very
smoothly.


--
Phillip Deackes
Debian Linux 


Re: fetchmail and multiple users in one POP3 box

2000-01-09 Thread hypnos
On Sun, 9 Jan 2000, Steve George wrote:

> Basically I need fetchmail to look at the username in front of the @ symbol
> and then deliver the mail tothe correct user, for example:
>   [EMAIL PROTECTED] is john here
>   [EMAIL PROTECTED] is bert here

~/.fetchmailrc:

poll pop3.domain.com using protocol pop3
   user a there is john here password secret;
poll pop3.domain.com using protocol pop3
   user b there is bert here password blah;

?

--
hypnos  



fetchmail and multiple users in one POP3 box

2000-01-09 Thread Steve George
Hi,

I currently have mail for a domain which is sent to my ISP's POP3 server.
I'd like to have multiple users on the domain be delivered to different users
on my system but the documentation on fetchmail seems to be saying that this
is a bad idea.  Is anyone doing this?

Basically I need fetchmail to look at the username in front of the @ symbol
and then deliver the mail tothe correct user, for example:
[EMAIL PROTECTED] is john here
[EMAIL PROTECTED] is bert here

Thanks,

Steve