New feature - hostname lookups in rulesets
MailScanner at ecs.soton.ac.uk
Mon Jun 1 09:28:16 IST 2009
On 01/06/2009 00:08, Eduardo Casarero wrote:
> 2009/5/31 Julian Field <MailScanner at ecs.soton.ac.uk
> <mailto:MailScanner at ecs.soton.ac.uk>>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> I have just added a new feature which I hope you will find useful.
> It struck me that it has always been really awkward to have to use IP
> addresses in the "From:" lines in rulesets, and wouldn't it be a lot
> easier to be able to use hostnames or domain names, with
> wildcards, and
> stuff like that.
> So now you can.
> You just put "host:" at the start of the hostname or domain name (or
> wildcard or regexp or whatever) and it matches it against the hostname
> of the SMTP client that sent the message to MailScanner.
> So you can now do rules such as these:
> From: host:localhost.localdomain yes
> From: host:mail.mydomain.com <http://mail.mydomain.com> yes
> From: host:mailgate*.soton.ac.uk <http://soton.ac.uk> yes
> From: host:soton.ac.uk <http://soton.ac.uk> yes
> From: host:ac.uk <http://ac.uk> yes
> From: host:example.* yes
> From: host:/\.(de|dk|es)$/ yes
> and all sorts of things like that.
> I hope you find this useful, particularly those where who have to live
> in a world of dynamic IP addresses for their machines.
> This will be in the stable release tomorrow, but I don't consider this
> feature itself to be "stable" quite yet, as I only just wrote it.
> However, it shouldn't interfere with anything else.
> This will work with mailwatch SQLWhiteBlaklist custom function
> (getting regex from sql backend)?
I don't know, sorry. It is another type of entry in a ruleset
internally, 'h' as opposed to the already existing 'v', 'f', 't' and 'b'
Julian Field MEng CITP CEng
Buy the MailScanner book at www.MailScanner.info/store
Need help customising MailScanner?
Need help fixing or optimising your systems?
Need help getting you started solving new requirements from your boss?
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner