LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2005, 09:21 PM   #1
jorasmi
Member
 
Registered: Apr 2002
Location: Philippines
Distribution: Slackware 10.2
Posts: 111

Rep: Reputation: 15
Post SMTP Filter Help!


Hi! I have a problem securing company files being sent using email. I set up a squid proxy server to filter all http based email. We're using an SMTP server to send our email for convinience and speed, my problem now is how to filter the email and remove any attachment? Please help! Thanks in advance.
 
Old 02-17-2005, 09:39 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
SMTP Filter Help!

assuming postcript as SMTP server you might use:

*) in "/etc/postfix/main.cf" add this:
Code:
[...]
mime_header_checks = regexp:/etc/postfix/mime_header_checks
[...]
*) in /etc/postfix/mime_header_checks
Code:
[...]
/^\s*Content-(Disposition|Type).*name\s*=\s*"?(.+\.(lnk|asd|hlp|ocx|reg|bat|c[ho]m|cmd|exe|dll|vxd|pif|scr|hta|jse?|sh[mbs]|vb[esx]|ws[fh]|wav|mov|wmf|xl))"?\s*$/
   REJECT Attachment type not allowed. File "$2" has the unacceptable extension "$3"
[...]
 
Old 02-17-2005, 09:48 PM   #3
jorasmi
Member
 
Registered: Apr 2002
Location: Philippines
Distribution: Slackware 10.2
Posts: 111

Original Poster
Rep: Reputation: 15
is postcript or postfix? one more question since i didn't understand your reply, is it possible? Thanks for the quick reply!
 
Old 02-27-2005, 07:28 PM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
postfix of course :-) sorry for the error
just add to main.cf and to yout mime header checks file and do a "postfix reload"
 
Old 02-27-2005, 07:40 PM   #5
jorasmi
Member
 
Registered: Apr 2002
Location: Philippines
Distribution: Slackware 10.2
Posts: 111

Original Poster
Rep: Reputation: 15
thanks guys! i'll try it out
 
  


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
SMTP "open relay" and SMTP AUTH aikempshall Linux - Security 3 10-11-2006 09:19 AM
Postfis SMTP forwarding and Incoming SMTP pheasand Linux - Software 0 04-27-2005 06:32 PM
Spam filter to external mail filter deadlock Linux - Software 1 06-16-2004 03:28 AM
SMTP and KMail and SMTP and Netscape Mail jazz... Linux - Newbie 5 10-11-2003 04:49 AM
L7 Filter Xing Linux - Software 0 09-17-2003 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration