March 29, 2024, 11:02:21 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Procmail problem  (Read 7520 times)

Offline Linux

  • New Member
  • Posts: 1
Procmail problem
« on: February 07, 2004, 06:52:54 AM »
Hi


I wanted to Delete the mail comming to my mail server and send an auto reply to the sender and rescipent so i have a script but it has some problem can any one help me out

My script starts here
_____________________________________________________________




'exe,vbs,shs,com,pif,bat,src' it gets trashed and you get a notice
:0 HB
* !^FROM_DAEMON
* !^X-Loop: foo\@bar\.com
* ^Content-Disposition: attachment;
*filename=".*\.(exe|vbs|shs|com|pif|bat|src)"
| ($FORMAIL -r -A 'From: "Douglas J. Hunley" <doug@hunley.homeip.net>' \
-i "Subject: Your message (Auto-Reply)" \
-A "X-Loop: foo@bar.com" ; \
echo "Your message contained some form of MS Windows executable and was
automatically deleted (unread). " && /usr/bin/cat /root/dotsignc) | \
/usr/sbin/sendmail -oi -t
:0 a:
$NULL


Script Ends here
____________________________________________________________


Thanks
LINUX