|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Mogens Valentin (monz
danbbs.dk)Date: Wed Oct 03 2001 - 16:05:25 CDT
"Luis S.-" wrote:
>
> Hello everybody
>
> I have done a filters in sendmail (in file /etc/procmailrc) for to not
> permit the files like .com, .exe, .vbs, etc.
> I did it writing lines like these:
> :0 B
> * .*filename=.*\.exe
> /home/programs/exes/
>
> Well, that work so good... but the problem is that people who send that
> kind of attach don't know that the email doesn't arrived to the
> recipient.
> How can I do that sendmail reply to sender that the email doesn't arrived
> to the recipients and why?
Try batemail instead. It's a perl filter which substitutes procmail as
delivery agent, filters out various attachments and then parses the
treated mail on to procmail for final delivery.
Contrast to your approach, it slips the mail contents through, and only
substitutes a range of attachments with a message which can be
customized.
The current release (0.7) still requires editing of sendmail.cf, but I
wrote some sendmail m4 macroes which should be part of the next release.
Hopefully by then I'll have sorted out filtering outbound mail too.
Until then, I can send the m4 macroes to those who needs them.
Batemail can be found on http://www.freshmeat.net .
--
Regards,
Mr Dev - Mogens Valentin
http://www.mrdev.com - mrdev
danbbs.dk
OpenSource Security - Networking - Programming
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]