[Mimedefang] Stream_by-domain question

Barry Byrne barry.byrne at wbtsystems.com
Wed Dec 11 10:46:02 EST 2002


> -----Original Message-----
> From: mimedefang-admin at lists.roaringpenguin.com
> [mailto:mimedefang-admin at lists.roaringpenguin.com]On Behalf Of Dan
> Tulovsky

> After I do a stream_by_domain, I can do something like:
>
> if ($Domain eq "abc.com") {
>
> }
>
> Will this also match x.abc.com and y.abc.com?  Or do I need to do an
> sub-string comparison?

No:

You would need a regular expression rather than an equality test to test for
sub-domains:

if ($Domain eq "abc.com" || $Domain =~ /.+\.abc\.com$/ ) {
	# Do stuff for abc.com or *.abc.com
}

 - Barry




More information about the MIMEDefang mailing list