Click here to get rid of any annoying frames

TOC


Unix email cmd:forward


Creat a forward

To forward your e-mail from your current Unix account to another system, create a file called .forward and put the appropriate forwarding address into it.

N: in the $HOME dir,
chmod 600 .forward

Forwarding To Another System *and* Keeping A Copy On The Original System

N: Gerry Boyd, who has a Unix account gboyd with the e-mail address gboyd@netcom.com, has temporarily gone to SomewhereElse where he has access to an e-mail account called gboyd. He wishes to forward all e-mail sent to gboyd@netcom.com to his SomewhereElse account, but also wants to keep a copy of each message on his Netcom account for the purpose of reading/filing messages when he returns to Netcom. Gerry Boyd's .forward file should be set up to read

     gboyd,gboyd@somewhere.else.com

If userid (or alias) does not contain any '.' (dots), then it is interpreted as the name of a host in the current domain. That is why the userid "gboyd" by itself sends a copy of the e-mail to gboyd@netcom.com as well as forwarding a copy to gboyd@somewhere.else.com

Gerry Boyd

.forword is a symbol link

     lns bin/.forward.nt .forward
     sendm $USER subject text

     $ mailx 
     "/var/mail/suntong": 1 message 1 unread
     >U  1 suntong@nortelnetw Mon Jan 10 12:33   15/440   subject

Mail is left on the server un-forwarded.

.forword is real file

     rm .forward 
     cp bin/.forward .
     sendm $USER subject text

     $ mailx 
     "/var/mail/suntong": 1 message 1 unread
     >U  1 suntong@nortelnetw Mon Jan 10 12:33   15/440   subject

     $ chk-mh
     msg.9BEH:Date: Mon, 10 Jan 2000 12:34:27 -0500
     msg.9BEH:Subject: subject

Hard link

     rm .forward
     ln bin/.forward.nml .forward
     sendm $USER subject text

     $ mailx
     mailx version 5.0 Tue Jul 15 21:29:48 PDT 1997  Type ? for help.
     "/var/mail/suntong": 2 messages 1 new 2 unread
      U  1 suntong@nortelnetw Mon Jan 10 12:33   15/440   subject
     >N  2 suntong@nortelnetw Mon Jan 10 12:45   14/430   subject

Mail is left on the server un-forwarded.

Couclusion

Link doesn't work for .forward, neither symbol link nor hard link.

<< 2000.01.10 Mon 12:37:00


cmd:procmail problem under Linux

Newsgroups: comp.os.linux.misc
> I can't get my procmail going under my linux (RH6.2). The same
> configuration works fine for Solaris. Here is the error message:

asuming sendmail is the default MTA on RH x.x you should find procmail

cat /etc/sendmail.cf |grep Mlocal

You don't need a .forward file, .procmailrc is enough,

otherwise try this .forward:

|"IFS=' '&&p=/usr/bin/procmail&&test -f $p&&exec $p -f-||exit 75 #username"

Michael Heiming


cmd:procmail problem under Linux

$ cat /etc/sendmail.cf |grep Mlocal

Mlocal,            P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,

cmd:procmail problem under Linux

Most Linux systems are set up to use procmail as the local delivery agent by default, so you should not have to set up a .forward.

I have none under Mandrake 7.1, and it works fine.

Jim Buchanan


Last updated on: Fri Dec 26 11:03:40 EST 2003

TOC

SourceForge.net Logo