Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


LinkBack Search this Thread
Old 06-22-2010, 02:14 AM   #1
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
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

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



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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration