[Mimedefang] filter-relay, rejection on bogus helo
Bryan Stansell
bryan at stansell.org
Wed Jan 7 12:27:26 EST 2004
On Wed, Jan 07, 2004 at 09:44:23AM -0700, Lucas Albers wrote:
> if ($helo =~ /^(\w*)$/){ }
>
> Anyone see any problem with my previously mentioned helo host check
> regex?
if you really want things that don't have a '.', i'd use
if ($helo !~ /\./) {}
if someone used 'HELO me!', your check wouldn't match...any
non-alphanumeric characters (besides '_') look the same to your regex,
so there are many non-'.' characters you could use to bypass the check.
Bryan
More information about the MIMEDefang
mailing list