LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-29-2004, 12:17 PM   #1
Vince0000
Member
 
Registered: Sep 2003
Posts: 48

Rep: Reputation: 15
Help Strip / Remove attachments (Replace with TXT file if Possible)


I hope you can help me out...

What I would like to do is Replace a attachment of certain types IE. EXE, BAT, COM etc with a file such as ATTACHMENT_BLOCKED.TXT which would explain that the file met our blocking restrictions.

I'm trying to find a solution using PROCMAIL or SPAMASSASSIN but to no avail so far.

I'm a newbie in a sense and procmail is making sense but still very cryptic to me so far.

I'm currently using Sendmail as my MTA and Qpopper for my Pop3 checker on a SuSE 9.0 distro.

Does anyone have any thoughts or tips on how to go about this?
I've Googled my #$@ off but can't find what i'm trying to do.

So far i've come up with this to completely remove the file if it has a EXE file for example.

:0 B
* name=.*\.(exe)
{
:0
/dev/null
}

But this does not deliver the message or anything so it's not what i'm lookign for.

Thanks alot!
Vince
 
Old 09-17-2010, 01:17 PM   #2
vbekker
Member
 
Registered: Aug 2010
Location: Brooklyn, NY
Distribution: CentOS
Posts: 38

Rep: Reputation: 0
Hi,
Wondering if anyone found a solution for this question. Would be very interesting and useful.
Thanks
 
Old 09-17-2010, 06:46 PM   #3
Vince0000
Member
 
Registered: Sep 2003
Posts: 48

Original Poster
Rep: Reputation: 15
Holy thread resurrection batman... This is a old post, looking at it I see a good 6 years ago.

Anyway, long story short I got it working at the time, I used MimeDefang you can look for it here : http://www.mimedefang.com/

That system was replaced with an Exchange server pushed down from corporate office and i'm in a domino shop now but didn't want you to be left hanging.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone know of a bash script can search & replace txt in a file. jimwelc Linux - Newbie 6 09-15-2008 12:13 AM
sendmail - strip attachments - is this possible irubin Linux - Software 1 09-22-2004 08:23 AM
Remove attachments with Procmail? ciop Linux - Security 3 06-09-2004 03:11 PM
How can I remove FC and replace with Win2000 fcnewbie Fedora 5 04-26-2004 01:43 PM
How to remove or strip control chars in the 'script' utility? fieldmethods Linux - General 1 10-24-2003 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:02 PM.

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
Open Source Consulting | Domain Registration