[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: some fetchmail questions
- From: Hugo Rabson <hugo rabson zetnet co uk>
- To: Jacek Andreas Matulla <jacek netcologne de>
- Cc: redhat-list redhat com
- Subject: RE: some fetchmail questions
- Date: Fri, 01 Jan 1999 22:56:45 -0000 (GMT)
Try this:-
#!/bin/sh
for username in `ls /home`
do
r=`su - $username -c true &> /dev/null`
if [ "$?" -eq "0" ] && [ -e "/home/$username/.fetchmailrc" ] ; then
su - $username -c $scriptname
fi
done
Hugo
On 24-Dec-98 Jacek Andreas Matulla wrote:
> Hi all,
>
> I was using fetchmail as root...for some time.
>
> But now I have some users which want their mail to be polled from
> different pop
> servers.
> How to do it?
>
> Do I have to create a .fetchmailrc in each user's home directory?
> What would I put into my ip-up.local and ip.down, in order to get each
> user's
> mail downloaded when connecting to the internet via modem? Do I have to
> launch
> fetchmail for each user? How to kill each user's fetchmail in ip-down?
>
> I remember that I need to use su in ip-up.local for each user....bu I
> think,
> that my line is misspelled somehow. Do I have to use " " in the line?
>
>
> TIA
>
> Jacek
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST
> ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request redhat com with
> "unsubscribe" as the Subject.
>
----------------------------------------------
E-Mail: Hugo Rabson <hugo rabson zetnet co uk>
Date: 01-Jan-99 Time: 22:53:46
------Bounce if you love Sarah McLachlan------
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]