1
# $DUH: helo_unqualified,v 1.7 2002/12/16 05:14:33 tv Exp $
3
# Copyright (c) 2002 Todd Vierling <tv@pobox.com> <tv@duh.org>.
5
# Please see the COPYRIGHT file, part of the PMilter distribution,
6
# for full copyright and license terms.
8
##### helo_unqualified #####
10
# Rejects HELO commands of an unqualified, non-IP-literal name.
11
# In short, rejects any domain name without a dot (.).
13
my $errmsg = shift_errmsg(@_, 'Domain "%1" is not fully qualified');
20
if (($helo !~ /\./) && ($helo !~ /^\[.*\]$/)) {
22
$err =~ s/%1/$helo/g; # interpolate HELO arg
24
return $ctx->reject("554 HELO/EHLO command rejected: $err");