I have my sendmail .forward file set up like this: "|/home/brian/bin/mailfwd"
That works. Send mail runs the program when it get's mail for me. My
problem is that when the program runs, it doesn't write everything it receives to a file, like it should. Here is the program:
#!/usr/bin/perl
open (MAIL, ">/home/brian/mail.txt");
print MAIL "\n";
while (<STDIN>) {print MAIL $_}