Browse Source

Made some more changes to the received line.

gustavf 25 years ago
parent
commit
1767c58635
1 changed files with 6 additions and 5 deletions
  1. 6 5
      functions/smtp.php

+ 6 - 5
functions/smtp.php

@@ -147,9 +147,9 @@
          
          
          /* Make an RFC822 Received: line */
          /* Make an RFC822 Received: line */
          if (isset($REMOTE_HOST))
          if (isset($REMOTE_HOST))
-            $received_from = "$REMOTE_HOST ($username@[$REMOTE_ADDR])";
+            $received_from = "$REMOTE_HOST ([$REMOTE_ADDR])";
          else
          else
-            $received_from = "$REMOTE_ADDR ($username@[$REMOTE_ADDR])";
+            $received_from = $REMOTE_ADDR;
     
     
          if (isset($HTTP_VIA) || isset ($HTTP_X_FORWARDED_FOR)) {
          if (isset($HTTP_VIA) || isset ($HTTP_X_FORWARDED_FOR)) {
             if ($HTTP_X_FORWARDED_FOR == "")
             if ($HTTP_X_FORWARDED_FOR == "")
@@ -157,9 +157,10 @@
             $received_from .= " (proxying for $HTTP_X_FORWARDED_FOR)";
             $received_from .= " (proxying for $HTTP_X_FORWARDED_FOR)";
          }            
          }            
     
     
-         $header = "Received: from $received_from\r\n";
-         $header .= "  by $SERVER_NAME with HTTP;\r\n";
-         $header .= "  $date\r\n";
+         $header  = "Received: from $received_from\r\n";
+         $header .= "        (SquirrelMail authenticated user $username)\r\n";
+         $header .= "        by $SERVER_NAME with HTTP;\r\n";
+         $header .= "        $date\r\n";
          
          
          /* Insert the rest of the header fields */
          /* Insert the rest of the header fields */
          $header .= "Message-ID: $message_id\r\n";
          $header .= "Message-ID: $message_id\r\n";