Virus file extensions can now be defined in configfile (VirusExts=.vbs.vbe.wsh...)
New option(FetchNoHeader in configfile or --fetchnh in commandline) Mailf will exit without errorstate if no mail-header has been received, so fetchmail will delete malformed mail from server instead of leaving it there.
A new "spammer-joke" which send mails to addresses like "alias"@domain.dom caused Mailf to loop because of the double quotes before and after alias. Mailf V1.0rc5 fixes this problem.
Mailf exited with segmetation fault after virusscan if mail(including all attachments) has been small enough to be parsed in memory (mailsize less than maxmem option). Mails without attachment or larger than maxmem have not been affected.
Features: Tmpfiles no longer written to the same folder as the configfiles, SMTP-port now could be other than 25 (-s host:port), QMail prefix now also could be defined by configfile not only commandline.
Bugfix: Fixed spam filter which caused mailf to hang with some From:-lines.
Fixed loop if mail address don't contain a mailbox before @ (e.g. To: @domain.dom)
No longer parsing Delivered-To: lines by default
RFC-Improvement: email addresses now will be enclosed by <...> if resending with SMTP
Improved some functions in order to make the filter more relieable as it is anyhow and speed up processing a little bit.
Fixed Unbalanced '<' error with email-addresses has only one letter name like a@domain.dom
Fixed memory-parser (parser used wrong boundary if boundary in header has not been inclosed by double-
quotes ")
Welcome to the new developer Guillermo Borgobello. Thanks for the good ideas and the QMail-Prefix patch for Delivered-To-Lines.
Now parsing X-Envelope-To for receipients too. Fixed attachment-handling of attachments with special chars (e.g. brackets, quotes, ...) in filename.
Options could now also be set by configfile not only by commandline. To be able to check a configuration also the option -cf was added. With this option a config could be tested before using it.
Now it's also possible to route a mailaddress which not matches any filtered domain(e.g. maillist-address) to another address. The header and line parsers also have been improved. They should be faster and more stable now.
I recommend to update from V0.9.2 to V0.9.3. Version V0.9.2 has a bug parsing From-lines paded in two lines of the mailheader. Such From-lines may not appear very often, but if a mail has such a From-line, the mail won't be deleted from remoteserver and collected over and over.
Version V0.8-final:
changed all strncmp(str, char, 1) to faster char=='?' and other minor performance
improvements, fixed timeout problem with mails having russian-cyrillic-chars, some more
fixes with -m option, no new features only tested
New features:
- Scan mail attachments for virus with a external virus scanner
- Filter spam by sender address or sender domain and take defined action
The -r option of this version has also some improvements. It's no longer needed to use the -d and -n options with -r, cause these are set of -r address. With only -r the To: line also won't be replaced if mail will be send with SMTP. Nearly all SMTP servers should not parse the To: line themself, but if a server does than adding the -d option will rewrite To: line even with -r option. (Please refer docs for details)
New feature: domain-routing (replacing some domains with another)
Minor fixes and improvements
Disable <iframe> and <script> tags in HTML mail (Nimda Virus) so attachment like
readme.exe won't start in a preview of the mail and also not atomaticly by opening
the mail. Anyhow the attached files like readme.exe can still be infected it only
won't start automaticly.
Latest test occured no problems so filter should be stable. Some VB-Worm-Protection is implemented, more virus protection and spam filtering is in develop.