|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
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 | ||
|
|
|
|||
|
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 ![]() |
|
|||
|
Quote:
|
|
|||
|
Quote:
Hi Neo, We are using sendmail as MTA. Can you tell some way of doing it using sendmail configuration? Thanks Kam |
|
|||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Tags |
| sendmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
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 |