procmail
[Top] [All Lists]

Re: Forward and copy recipe

1996-09-04 23:46:58
Without procmail, create a .forward file in the user's home directory with
the following

\username
OtherEmailAddress

With procmail it is simple as:

:0 c
! username(_at_)host(_dot_)org

This forwords it and leaves it in the mail box on the server.
The file INBOX, is maintained by pine. In all actuallity, it realy is the
users system mail box located in /var/spool/mail/username. You do not have
to worry about it.

Hope this helps.

Michael


On Wed, 4 Sep 1996, Mike wrote:

I am trying to create a simple recipe that will forward a user's email to
another address AND place a copy in their inbox on this server.  Can
someone tell me what modifications need to be made to make this possible?

----- %< snip ----------

VERBOSE=on
SENDMAIL=/usr/sbin/sendmail
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
FILEDIR=$HOME/fileserver

:0 c
* ^TO.*user_alias@
! username(_at_)host(_dot_)org
   :0 A
   inbox

:0
* ^TO.*username@
{
  :0 c
  ! username(_at_)host(_dot_)org

  :0 A
  INBOX
}

-------- %< snip --------


Thanks!

Mike

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
    Syn-Work Media, Inc.   | WWW Development & Hosting | Life Safety    
       http://www.synwork.com | Systems Integration       | CCTV           
   mike(_at_)synwork(_dot_)com       | Voice/Data/Fiber          | Access 
Control 
     Flaq on IRC            | Dukane Distributor        | BICSI/RCDD     
                   :|:|:|: Powered By FreeBSD :|:|:|:
                   Turning PC's Into Workstations
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~


<Prev in Thread] Current Thread [Next in Thread>