| Welcome |
| Services |
| Products |
| News |
| Download |
| Contact us |
| Support |
| Order |
| Français |
| Filtering examples |
To enable a filter you need to use a rexx script in the filter directory, 4 filters exists 3 for SMTP and 1 for POP3 external mailbox fetch, here are the names of the file (script) that ZxMail looks for, when starting if the file exists it is loaded and ready to be used:
|
| SMTPDATA.FLT |
| Spam check example |
This is a sample i use to check incoming ip address with ORDB, Mail-abuse.og and SPAMCOP, ORDB reports open relays only, and SPAMCOP reports spam incidents, be warned some email you want to go through may be blocked by SPAMCOP or ORDB so use carefully, that is why i allways keep a copy of the email in a spam directory i created in the ZxMail install directory, so here it is:
ORDB /**/ /* we check for spam now */
/* SPAMCOP go to http://www.spamcop.net for
more info */ MAIL-ABUSE /* MAIL-ABUSE go to http://mail-abuse.org for
more info */ /* this was not a spam email we return 0 to
keep processing */
|
| Anti-Virus check example |
This filter i created to scan with Norton Anti-Virus, and also Norman Anti-Virus (doing tests for both AV for an email server) Norman has a major flaw when it comes to email viruses, it cannot (as of version 5.0) scan embedded emails (namely emails with an email attached which contains a virus attached, Klezt is such a virus) considering this fact i strongly do not recommend it, Norton scans better but still lets some virus run through, so you will still need a desktop AV for your workstation. Now for the filter itself here is the code i use: /**/ file = "log\virus.log" /* this function is the thread
safe equivalent of lineout no need to close the file/ /* no need to scan twice that is
assuming all workstation have AV /*if local no scan keep going*/ /*Virus var to flag when virus found*/ virus = 0 /*ok here is the call to the norton command line scanner if a virus is found a line is writen to a virus.log
and also we set a return message explaining why we are rejecting this
message, in this case we warn that a virus has been found, and we
refuse to relay this message, by returning 1 it tells ZxMail that
the message is to be refused and deleted, i keep a copy so the copy
command */ 'd:\programs\symantec\navdxos2 'smtpdata.!file'
/B- /S- /CFG:\programs\symantec /DOALLFILES /ZIPS /NOBEEP /NOPROMPT'
if virus==1 then return 0
|