<br><br><div class="gmail_quote">2009/5/31 Julian Field <span dir="ltr">&lt;<a href="mailto:MailScanner@ecs.soton.ac.uk">MailScanner@ecs.soton.ac.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
I have just added a new feature which I hope you will find useful.<br>
It struck me that it has always been really awkward to have to use IP<br>
addresses in the &quot;From:&quot; lines in rulesets, and wouldn&#39;t it be a lot<br>
easier to be able to use hostnames or domain names, with wildcards, and<br>
stuff like that.<br>
<br>
So now you can.<br>
<br>
You just put &quot;host:&quot; at the start of the hostname or domain name (or<br>
wildcard or regexp or whatever) and it matches it against the hostname<br>
of the SMTP client that sent the message to MailScanner.<br>
<br>
So you can now do rules such as these:<br>
<br>
From: host:localhost.localdomain yes<br>
From: host:<a href="http://mail.mydomain.com" target="_blank">mail.mydomain.com</a> yes<br>
From: host:mailgate*.<a href="http://soton.ac.uk" target="_blank">soton.ac.uk</a> yes<br>
From: host:<a href="http://soton.ac.uk" target="_blank">soton.ac.uk</a> yes<br>
From: host:<a href="http://ac.uk" target="_blank">ac.uk</a> yes<br>
From: host:example.* yes<br>
From: host:/\.(de|dk|es)$/ yes<br>
<br>
and all sorts of things like that.<br>
<br>
I hope you find this useful, particularly those where who have to live<br>
in a world of dynamic IP addresses for their machines.<br>
<br>
This will be in the stable release tomorrow, but I don&#39;t consider this<br>
feature itself to be &quot;stable&quot; quite yet, as I only just wrote it.<br>
However, it shouldn&#39;t interfere with anything else.<br>
</blockquote><div><br>This will work with mailwatch SQLWhiteBlaklist custom function (getting regex from sql backend)? if so you will have a couple of beer&#39;s waiting in Argentina!<br><br>Thanks!<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

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