+----- On Mon, 24 Aug 1998 16:44:19 PDT, Darren Benham writes: | | I've got an aliase setup (vote@benham.net) that's supposed to filter all mail | through a custom filter. | | I have a one-line .forward file: | /home/vote/bin/test.sh | | test.sh consists of two lines | #!/bin/bash | cat > test | | sendmail uses /bin/sh as it's mail shell and -r is NOT turned on... so... | | why does the mail get bounced with the following respone:? | | 550 /home/debian-vote/.forward: line 2: /home/vote/bin/test.sh... Can't | create output: Executable files not allowed Sendmail uses some special characters to determine how to deliver mail, a destination that begins with / is expected to be a file, a | means a program. In general it is not a good idea to do what you have done as sendmail expects all programs that it invokes to exit with one of the codes in /usr/include/sysexits.h and your script is nearly guaranteed to not do that. If something goes wrong you will send a lot of "unknown mailer error" error messages. A better approach is: |"/home/vote/bin/test.sh || exit 75" which will cause sendmail to requeue your mail (75 works for most systems but check sysexits first to be sure). I have learned after much wailing and gnashing of teeth that sendmail always does what you tell it to but that isn't always what you wanted in the first place ;^). /Michael - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e