On Thu, 28 Sep 2000 14:27 John MacLean wrote:
>I want to configure a RH Linux 6.2 box to periodically retrieve POP3 mail
>from my ISP account and then forward the message and attachments to a
>pre-defined list of email addresses (all outside of my network and that
of
>my ISP). DOn't want any forward (>) marks inserted and mail message keeps
>the original From and Reply-To fields. 
>
>This sounds a lot like what a mail list program does, but I don't need
>anything that complicated - the predefined list is static and has only
five
>entries.

You'll probably want to use fetchmail to retreive the messages and procmail
to decide which ones to forward.

The list of recipient addresses can be specified in 

 1. Your ~/.procmailrc or 
 2. The global /etc/aliases or 
 3. A file that is pointed to by an entry in /etc/aliases

The first option does not require root access and makes it a little harder
for the list to be hijacked by unauthorized users. Any entry in /etc/aliases
is available for use by anyone who knows the address.

********************************************************************
Option 1
--------
Add the following to your ~/.procmailrc:

:0
* ^X-BeenThere: [EMAIL PROTECTED]
! [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]

*********************************************************************
Option 2
--------
Add the following to /etc/aliases:

myuserlist: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]

Then add an entry to your ~/.procmailrc:
:0
* ^X-BeenThere: [EMAIL PROTECTED]
! myuserlist@localhost

Then run: newaliases

*********************************************************************
Option 3
--------
Add the following to /etc/aliases:

myuserlist: :include:/home/username/myuserlist.txt

Then create a file named myuserlist.txt that contains the recipient
addresses, one per line.

Then run: newaliases

**********************************************************************

If I've missed anything, I'm sure someone will correct me.

Tony
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AIM: TonyG05    ICQ: 91183266    Jabber: TonyGreene
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

Reply via email to