Help Strip / Remove attachments (Replace with TXT file if Possible)
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.