filename & filetype with CustomFunctions

Jules Field MailScanner at
Tue Feb 9 08:33:08 GMT 2010

The "Filename Rules" setting in MailScanner.conf takes a filename, so 
that is what your Custom Function must produce. Very straightforward.

What you may find more helpful is to use the "Allow Filenames", "Deny 
Filenames" and so on settings with a Custom Function instead, as they 
would allow your Custom Function to produce lists of filename patterns 
that you want to allow or deny.

Hope that helps,

On 08/02/2010 19:05, Eduardo Casarero wrote:
> I'm playing with some custom functions and the filename rulset. Is 
> posible to use custom functions here? what should be the return string 
> when the to_address pattern match. I was doing some test, but sending 
> for example "allow *. - - -" didn't work, although that string in a 
> filename.rules work ok.
> any help would be appreciated.
> thanks!


Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at and

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list