On Sun, 18 Feb 2001 00:59:19 Russell W. Behne wrote:
>On Fri, 16 Feb 2001, Mikkel L. Ellertson wrote:
>> Using fetchmail with a dialup connection is nice because you can run
>> it from your /etc/ppp/if-up.local script to get all the mail for local
>> users when ever you connect to the net. You can also have sendmail
>> send any waiting messages at the same time. Mikkel
>
>How can I do this? My ISP gave me 4 email addresses to use, one for me and
>one each for my wife & kids. The `usernames' in each email address does
>not match the local user name. I want my system to download all mail for
>all 4 users from the ISP and hand it off to sendmail for pre filtering
>using the /etc/mail/access file. Then I want the mail to be filtered by
>procmail and then go to the proper user's inbox. How would I set this up?
Create a ~/.fetchmailrc for each user and add the following lines to your
ip-up.local:
for mailuser in `ls /home`
do
if [ -f /home/$mailuser/.fetchmailrc ]; then
/bin/su -l $mailuser -c /usr/bin/fetchmail
fi
done
/usr/sbin/sendmail -q
Then create a menu item for your desktop that calls fetchmail in an xterm so
that any user can download their own mail at any time by using the menu
item. The command would look like this:
xterm -e fetchmail
If you put all the fetchmail info in a single .fetchmailrc file, that file
must belong to root and can only be run by root.
Tony
--
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Chat: AOL/Yahoo: TonyG05 ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list