I add this functionality to xmail myself and it does not inordinately = impair performance if 1) other changes are made to xmail to improve its = intrinsic performance, 2) the checks are aborted on messages that are long and 3) binary messages are correctly identified and not handled by the filter. However, it is not as simple as looking at each line presented after the DATA command: to correctly interpret input, the code must deal with = message decoding on the fly (quoted-printable, base64 are trivial, but MIME must = be dealt with too) and, at a minimum, support a scrolling-window type of = buffer (DATA lines do not correspond to actual message lines). Although I am = glad that I can reject messages as they come in now, the amount of work = involved was substantial and unless Davide is a complete masochist, there are probably features that would be better uses of development time. (And, naturally, about a month after I got it basically-where-i-wanted-it, I = moved and no longer have adequate connectivity to host my own MTA box. Ha.)
(and BTW, if you stop accepting a message during receipt, you're telling = the other end exactly what they did that tripped the wire. It's best to = accept the rest - discarding it as you go - even after the decision is made to reject the message). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] = On Behalf Of Harald Schneider Sent: Sunday, 1 February 2004 8:07 AM To: [EMAIL PROTECTED] Subject: [xmail] SMTP Dialog Filter Hooks Hi Davide, is there a chance to see SMTP dialog filter hooks in the next release? = This would make the filtering engine more flexible: You could check the RCPT_TO and act before the message is accepted. E.g. checking a forwarding target server, if the user exists there, before accepting and forwarding the whole mail.=20 Hooks after each SMTP command and after each data line would be a nice=20 thing, e.g.: HOOK_HELO HOOK_MAIL_FROM HOOK_RCPT_TO HOOK_DATALINE So a script could also do anti spam and anti virus checking on the fly,=20 aborting conversation without accepting the whole message.=20 What do you think? All the best, Harald - To unsubscribe from this list: send the line "unsubscribe xmail" in the = body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
