MailScanner at ecs.soton.ac.uk
Fri Apr 4 16:04:01 IST 2008
-----BEGIN PGP SIGNED MESSAGE-----
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 ??
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\./ # 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
> in the documentation, but it would be much easier to read with an
> ip/netmask format.
> Please excuse me if I am off-base.
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
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.2 (Build 3005)
-----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