procmail
[Top] [All Lists]

Sending email to receipient and sender

2001-06-27 07:38:35
Okay..
   Im trying to figure out how get a message be sent to the original sender.
Also i will be sending a message to the receiver, and include the senders
email address and name.  But how do i do that?  Currently i am just sending
a email to a static address when i delete the email message.  Here is my
current setup:
#
:0 BD:
* Content-Disposition..attachment.
* filename=.*\.(exe|EXE).
{
        :0 c
        /dev/null

        :0 h
        | (formail -i"Subject: Executable file received" \
          -A"X-Filter: Executable attachment received and deleted" \
          -i"To:Postmaster(_at_)astcorp(_dot_)com"\
          -i"Content-type: text/plain; charset=\"us-ascii\""; \
          echo "A executable file was received."; \
          echo "Date: `/bin/date`"; \
          echo "Due to possible virus infections the file has been sent to
/dev/
null and deleted";\
          ) | \
          $SENDMAIL -oi postmaster(_at_)astcorp(_dot_)com
}
#

Oh and do i realy need to have both exe and EXE?  it is case sensitive to
the file attachments name right?

Thanks,
Tom Warfield
Systems Administrator
AST Corp
580-248-0321 ext 101
twarfield(_at_)astcorp(_dot_)com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>