New feature - hostname lookups in rulesets

Eduardo Casarero ecasarero at gmail.com
Mon Jun 1 00:08:33 IST 2009


2009/5/31 Julian Field <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 yes
> From: host:mailgate*.soton.ac.uk yes
> From: host:soton.ac.uk yes
> From: host: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)? if so you will have a couple of beer's waiting in
Argentina!

Thanks!



>
> Jules
>
> - --
> Julian Field MEng CITP CEng
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store
> Follow me at twitter.com/JulesFM
>
> MailScanner customisation, or any advanced system administration help?
> Contact me at Jules at Jules.FM
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> PGP public key: http://www.jules.fm/julesfm.asc
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP Desktop 9.10.0 (Build 500)
> Comment: Use PGP or Thunderbird Enigmail to verify this message
> Charset: ISO-8859-1
>
> wj8DBQFKIq2MEfZZRxQVtlQRAonaAKDXPUzKZU4+g4pEJb+GT8VtJhICUACgoEym
> 5BQtUFJRDvsgutWEIJ1ZURc=
> =ZkcA
> -----END PGP SIGNATURE-----
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20090531/d93f8189/attachment.html


More information about the MailScanner mailing list