LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 02-05-2003, 08:30 AM   #1
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 68
Thanked: 0
Procmail & mail attachments


[Log in to get rid of this advertisement]
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
PcHammer is offline     Reply With Quote
Old 02-05-2003, 09:31 AM   #2
Wolven
Member
 
Registered: Jan 2003
Posts: 195
Thanked: 0
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. )
Wolven is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 1 05-16-2006 07:17 AM
Have Logwatch mail attachments stefaandk Linux - Newbie 3 06-26-2005 09:57 PM
Remove attachments with Procmail? ciop Linux - Security 3 06-09-2004 04:11 PM
Sendmail & How to reject mail with executable attachments WorldBuilder Linux - Networking 3 02-04-2004 04:27 PM
Mail and attachments wvrhlu Linux - Software 2 04-02-2003 11:06 AM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration