On Sat, Jul 29, 2000 at 01:22:26PM +0800, Dondave was heard to say:
> what if there is only one email box on the server that recieves mail for
> their domain and i want their email to be forwarded to their local
> mailboxes. we have done this but all the emails goes to the root. what
> could be the appropriate .fetchmailrc for this?
> TIA
I'd use a procmail script in a case like that...
Presuming that your inbound "To" addresses look like this:
[EMAIL PROTECTED]
# SET VARIABLES
# Internal Variables
SHELL=/bin/sh #Shell used to run procmail. Be sure this points to
#your system's copy of sh. DO NOT substitute a
#different shell unless you really know UNIX
LINEBUF=8192 #Needed to keep Procmail from choking on long
#"recipes", or instructions on what to do with
#particular kinds of email.
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin #Path for your programs -- this is
probably best
#left alone.
VERBOSE=off #Change this to "on" when you try a new recipe
#so that Procmail
will log literally every step
#it takes. DO NOT LEAVE IT ON, though, because
#it creates huge logfiles.
FORMAIL=/usr/bin/formail
# bobby's mail
:0:
* ^TO.*bobby*
| $FORMAIL >>/var/spool/mail/bobby
# mary's mail
:0:
* ^TO.*mary*
| $FORMAIL >>/var/spool/mail/mary
etc.
See "man procmailex" for more examples. Or you may check out the procmail FAQ:
http://www.linuxguru.com/docs/faq/procmail/
Note that this script would be placed in /etc.
--
Chuck Mead, CTO, LinuxMall.com
[EMAIL PROTECTED]
GnuPG Public Key Available: http://pgp.ai.mit.edu/
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.