LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SMTP Filter Help! (https://www.linuxquestions.org/questions/linux-software-2/smtp-filter-help-291631/)

jorasmi 02-17-2005 08:21 PM

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. :)

AltF4 02-17-2005 08:39 PM

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"
[...]


jorasmi 02-17-2005 08:48 PM

is postcript or postfix? one more question since i didn't understand your reply, is it possible? Thanks for the quick reply!

AltF4 02-27-2005 06:28 PM

postfix of course :-) sorry for the error
just add to main.cf and to yout mime header checks file and do a "postfix reload"

jorasmi 02-27-2005 06:40 PM

thanks guys! i'll try it out


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