"Head Technician @ Mathco.com" wrote:
> A friend of mine has a interesting problem.
> All the company mail goes to one pop account
> and then they want to retrive it from that
> pop account and distribute it to individual
> users on the local linux server. (kind of
> like a UUCP account)

Use fetchmail with a root or system cronjob to retrieve the mail and
procmail to put it in the correct local account.

The /root/.fetchmailrc file would look like this:

# /root/.fetchmailrc: Provides mail retreival for settings root.
# This file must have read permissions for the owner and none for others:
-rw-------
defaults protocol pop3 mda "/usr/bin/procmail" fetchall nokeep
poll ISP.POP3.Server username CompanyEmailAccount password SomePassword

Then /etc/procmail would look like this:

# /etc/procmail: Provides global mail filtering rules
LOG=/root/procmail.log
:0
* ^[EMAIL PROTECTED]
! [EMAIL PROTECTED]

:0
* ^[EMAIL PROTECTED]
! [EMAIL PROTECTED]



I haven't used it exactly like this, but I use something similar to
retreive and deliver mail for all my family members in one script.

Tony
-- 
 Anthony E. Greene <[EMAIL PROTECTED]>
 Homepage & PGP Key <http://www.pobox.com/~agreene/>
 Linux: The choice of a GNU Generation.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to