Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google site



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-25-2001
Registered User
 

Join Date: Jul 2001
Location: Mumbai
Posts: 8
Lightbulb Blocking email attachments

Dear Friends,

Is there any way to block incoming emails with attachments or move them in specified directory on.

Can anybody help?

Yours
kam
Sponsored Links
  #2 (permalink)  
Old 08-25-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 7,386
Yes, there are many ways to do this and the methods vary depending on the MTA. Which MTA are you using?
  #3 (permalink)  
Old 08-25-2001
Registered User
 

Join Date: Jun 2001
Location: Leicestershire, UK
Posts: 92
Hi,

I've just found a nifty looking procmail recipe on redhat's seawolf mailing list

: 0 B
* !^FROM_DAEMON
* .*Content-Disposition:.*attachment
* .*filename="[^\"]+.(bat|com|lnk|pif|vbs)"
{
:0
| echo `date` vb script or sircom >> /root/blocked

:0
/root/mail/blockedmail
}


This script checks for emails with potentially dangerous attachments.

I'm just about to try it out myself


Andy H





  #4 (permalink)  
Old 08-27-2001
Registered User
 

Join Date: Jul 2001
Location: Mumbai
Posts: 8
Hi Neo,

We are using sendmail as MTA.

Can you tell some way of doing it using sendmail?

Thanks
Kam

  #5 (permalink)  
Old 08-27-2001
Registered User
 

Join Date: Jul 2001
Location: Mumbai
Posts: 8
Quote:
Originally posted by Andy Hibbins
Hi,

I've just found a nifty looking procmail recipe on redhat's seawolf mailing list

: 0 B
* !^FROM_DAEMON
* .*Content-Disposition:.*attachment
* .*filename="[^\"]+.(bat|com|lnk|pif|vbs)"
{
:0
| echo `date` vb script or sircom >> /root/blocked

:0
/root/mail/blockedmail
}


This script checks for emails with potentially dangerous attachments.

I'm just about to try it out myself


Andy H


Hi Andy,

Can you please tell about the location of the procmail file in which I have to add this code?

Thanks
Kam




  #6 (permalink)  
Old 08-27-2001
Registered User
 

Join Date: Jul 2001
Location: Mumbai
Posts: 8
Quote:
Originally posted by Neo
Yes, there are many ways to do this and the methods vary depending on the MTA. Which MTA are you using?

Hi Neo,

We are using sendmail as MTA.

Can you tell some way of doing it using sendmail configuration?

Thanks
Kam





  #7 (permalink)  
Old 08-27-2001
Registered User
 

Join Date: Jun 2001
Location: Leicestershire, UK
Posts: 92
Hi Kamlakar,

You'll want to add the procmail recipe to procmail's global script file, this is normally /etc/procmailrc.

A basic sample procmailrc file follows:

PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:.
LOGFILE=/log/procmail.log
LOCKFILE=$HOME/.lockmail


: 0 B
* !^FROM_DAEMON
* .*Content-Disposition:.*attachment
* .*filename="[^\"]+.(bat|com|lnk|pif|vbs)"
{
:0
| echo `date` vb script or sircom >> /root/blocked

:0
/root/mail/blockedmail
}



Andy H
Sponsored Links
Closed Thread

Bookmarks

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sending email attachments venush UNIX for Dummies Questions & Answers 2 06-06-2008 02:42 AM
Email recipient problems with uuencode attachments Dave Miller UNIX for Dummies Questions & Answers 1 03-31-2008 03:33 PM
Sending attachments using email through shell script symhonian Shell Programming and Scripting 6 01-27-2006 09:41 AM
Email Attachments fabbas UNIX for Dummies Questions & Answers 1 10-18-2004 11:36 AM
blocking domains tamemi UNIX for Dummies Questions & Answers 1 04-16-2003 08:13 AM



All times are GMT -4. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0