LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2003, 07:30 AM   #1
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Rep: Reputation: 15
Procmail & mail attachments


Hi all , I have a sendmail mail server in my firm and i have one problem; I would like to block some file attachments (*.mpg, *.avi *.exe ...etc)
Can I do this with procmail filter ???
And if yes can some point me to te solution.


Regards, PcHammer
 
Old 02-05-2003, 08:31 AM   #2
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
Quote:
# -- .dbl.ext --
:0
* ^Content-Type: multipart/(alternative|mixed)
{
:0 $Lock
* B ?? ^Content-Type: \
(audio/x-|application).*;.*($.*)?name=.*\..*\.(scr|com|bat|pif|lnk|exe)(")?$
$VIRS_BOX
}

from:

http://www.xs4all.nl/~rvtol/procmailrc.txt


If that doesn't cover it, it should at least get you started....

(I'm going to find some caffeine, so if this message was completely wrong, just ignore me. )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have Logwatch mail attachments stefaandk Linux - Newbie 4 09-05-2013 11:23 AM
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 01:05 PM
Remove attachments with Procmail? ciop Linux - Security 3 06-09-2004 03:11 PM
Sendmail & How to reject mail with executable attachments WorldBuilder Linux - Networking 3 02-04-2004 03:27 PM
Mail and attachments wvrhlu Linux - Software 2 04-02-2003 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration