LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-22-2010, 02:14 AM   #1
pankajguptaspn
LQ Newbie
 
Registered: Dec 2008
Posts: 11

Rep: Reputation: 0
Sendmail block sending or receiving .exe files as attachment


Please tell me how i can block sending or receiving .exe files as a attachment in sendmail server
 
Old 06-22-2010, 03:46 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Hi,

For the incoming mail it can be easily done using a procmail receipt, but for outgoing it's a bit tricky.
You can use amavis that by default discards attachments with certain extensions (.exe being one of them). To see how you can implement amavis with sendmail to do what you want, take a look at this howto.
Don't forget to make backups before editing any configuration files

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to block email sending and receiving using Squid ??? mianmajidali Linux - Server 1 06-17-2010 01:39 PM
Sending mail attachment via Sendmail antanas Linux - Newbie 6 11-25-2009 05:54 PM
How to Restricts files in attachment like .exe in sendmail on RHEL3 r.bhange Linux - Newbie 1 03-13-2009 10:07 AM
sendmail not sending or receiving email kaplan71 Linux - Software 1 12-20-2005 08:26 AM
Sending file attachment with Sendmail aurelio26 Linux - Newbie 2 09-17-2004 12:36 AM


All times are GMT -5. The time now is 07:15 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration