Ruleset patterns...

Julian Field MailScanner at ecs.soton.ac.uk
Fri Apr 4 16:04:01 IST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Philip Butler wrote:
> Hi all,
>
> I don't think this is possible, but I thought I'd ask anyway....
>
> In a MailScanner ruleset, is it possible to use a netmask in a pattern ??
Of course!

It supports several different formats.
Cut straight from /etc/MailScanner/rules/README, here they are:
    192.168.21.        # Any SMTP client IP address in this network
    192.168.21        # Any SMTP client IP address in this network
    192.168.21.0/255.255.255.0 # Any SMTP client IP address in this network
    192.168.21.0/24        # Any SMTP client IP address in this network
    /pattern-with-no-letters/ # Any SMTP client IP address matching this
                  # Perl regular expression
    /^192\.168\.1[4567]\./    # Any SMTP client IP address in the networks
                # 192.168.14 - 192.168.17

>
> For example:
>
>     From:    10.0.0.0/255.255.252.0    yes
>
> I know that this could be expanded to multiple lines and I see things 
> like:
>
>     /^192\.168\.1[4567]\./
>
> in the documentation, but it would be much easier to read with an 
> ip/netmask format.
>
> Please excuse me if I am off-base.
>
> Thanks,
>
> Phil
>

Jules

- -- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

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


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.2 (Build 3005)
Comment: (pgp-secured)
Charset: ISO-8859-1

wj8DBQFH9kNiEfZZRxQVtlQRApA4AJ9q69qw/aVrvPP+1skSDDr6RglPgwCeI1nS
H48KEvdVvS6wfAz6wypop/4=
=7e7t
-----END PGP SIGNATURE-----

-- 
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