Unix Server .forward File Help Needed (Perl Script Related)

Unix Server .forward File Help Needed (Perl Script Related)

Post by Ralph Fresho » Wed, 13 Nov 1996 04:00:00



I'm having trouble getting my web server's MTA (sendMail) to act upon
my .forward file when mail arrives at my domain?  I created a .forward
file and have the following line in it:

"! u2/home/mailman"

It is susposed to call mailman, a perl script, as follows:


open (OUTFILE, ">/u2/home/rfresh/test.dat"); #open file for writing

close (OUTFILE); # close the file
exit(0);         #exit perl script

When mail arrives at my primemail.com domain, the MTA should send it
to the perl script mailman based on what's in my .forward file but the
incoming test mails don't get written to the test.dat file.  I've
tested the mailman script by piping into it's STDIN test mail data so
I know the script is working.  The broken link is from the MTA to
forward file or .forward file to mailman.

Any help appreciated...

--Ralph

 
 
 

Unix Server .forward File Help Needed (Perl Script Related)

Post by brian d f » Wed, 13 Nov 1996 04:00:00




> I'm having trouble getting my web server's MTA (sendMail) to act upon
> my .forward file when mail arrives at my domain?  I created a .forward
> file and have the following line in it:

> "! u2/home/mailman"

did you mean for that to be a pipe?  ie "| u2/home/mailman"?

did you want to print that to STDOUT?  i think you wanted print OUTFILE :)

 
 
 

Unix Server .forward File Help Needed (Perl Script Related)

Post by Jeremy Laidma » Thu, 14 Nov 1996 04:00:00



> I'm having trouble getting my web server's MTA (sendMail) to act upon
> my .forward file when mail arrives at my domain?  I created a .forward
> file and have the following line in it:

> "! u2/home/mailman"

Shouldn't the "!" be a "|"?
----------------------------------------------------------------

Networking Consultant                            +61 0416 290866
Canberra Institute of Technology                  +61 6 207 4272