Hi,

by using the script  - checkattach -  from Noel G. Mistula
to reject Emails with attachments i have a problem.

i have made some modification because i want to reject all
Emails with attachments. See the script below.

The rejection works fine, the sender gets a daemon-message,
but Emails without attachments disappears. The mail-log says
the delivery was successfull.

Have anyone an idea?

Thanks for help

Uli Butzer


#!/bin/bash
VV2=`grep "filename="|gawk '{split($ATTACHTYPE, results, ".");
r=toupper(results[2]); print r}' | cut -c -3`
if test -z $VV2
then
  #echo "leer"
  exit 0
else
  echo "Mails with attachment"
  exit 100
fi
exit 0



Reply via email to