[Mimedefang] filter_relay not working

Jim McCullars jim at info.uah.edu
Thu May 8 13:59:25 EDT 2003


On Thu, 8 May 2003, Myles Uyema wrote:

> I'm trying to implement sub filter_relay and reject hosts that greet using
> an IP address: http://www.mimedefang.com/node.php?id=23
>
> /usr/local/bin/mimedefang -P /var/spool/MIMEDefang/mimedefang.pid -U defang -m /var/spool/MIMEDefang/mimedefang-multiplexor.sock -r -s
>
> sub filter_relay ($$$) {
> my($ip, $name, $helo) = @_;
> if ($helo =~ /^(d{1,3})(.)(d{1,3})(.)(d{1,3})(.)(d{1,3})$/) {    return

   Apparently that web site does not reproduce backslashes.  The correct
line should be:

if ($helo =~ /^(\d{1,3})(.)(\d{1,3})(.)(\d{1,3})(.)(\d{1,3})$/) {  return


Jim





More information about the MIMEDefang mailing list