Re: [Exim] Fixing exim_checkaccess (doesn't helo)

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: Nico Erfurth
Cc: Marc MERLIN, exim-users
Asunto: Re: [Exim] Fixing exim_checkaccess (doesn't helo)
Nico Erfurth wrote:
> Marc MERLIN wrote:
>
>> exim_checkaccess issues a mail from without doing helo.
>>
>> Could it be quickly fixed to do a helo `hostname -f` first?
>
>
> This is not exactly what you wanted, but should work too.
>
> --- exim-4.12.new/src/exim_checkaccess.src      Wed Jan  8 16:42:35 2003
> +++ exim-4.12/src/exim_checkaccess.src  Tue Dec 17 12:32:51 2002
> @@ -117,7 +117,6 @@
>  # Run a -bh test in Exim, passing the test data

>
> $pid = open2(*IN, *OUT, "$exim_path -bh $host $opt 2>/dev/null");
> -print OUT "HELO [$host]\r\n";
> print OUT "MAIL FROM:<$sender>\r\n";
> print OUT "RCPT TO:<$recipient>\r\n";
> print OUT "QUIT\r\n";



Ooooppppss, this was BS ;)
Use this one:

--- exim-4.12/src/exim_checkaccess.src  Tue Dec 17 12:32:51 2002
+++ exim-4.12.new/src/exim_checkaccess.src      Wed Jan  8 16:47:21 2003
@@ -117,6 +117,7 @@
  # Run a -bh test in Exim, passing the test data


  $pid = open2(*IN, *OUT, "$exim_path -bh $host $opt 2>/dev/null");
+print OUT "HELO [$host]\r\n";
  print OUT "MAIL FROM:<$sender>\r\n";
  print OUT "RCPT TO:<$recipient>\r\n";
  print OUT "QUIT\r\n";
@@ -134,7 +135,7 @@
    $reply .= $_;
    next if /^\d\d\d\-/;


-  if (++$count != 3)
+  if (++$count != 4)
      {
      $reply = "";
      next;