[exim-dev] [Bug 502] New: Received-SPF header uses real host…

Etusivu
Poista viesti
Vastaa
Lähettäjä: bug502
Päiväys:  
Vastaanottaja: exim-dev
Aihe: [exim-dev] [Bug 502] New: Received-SPF header uses real hostname of the server instead of $primary_hostname in exim.conf
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

http://www.exim.org/bugzilla/show_bug.cgi?id=502

           Summary: Received-SPF header uses real hostname of the server
                    instead of $primary_hostname in exim.conf
           Product: Exim
           Version: 4.67
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Keywords: work:tiny
          Severity: bug
          Priority: medium
         Component: Experimental
        AssignedTo: ph10@???
        ReportedBy: rommer@???
         QAContact: exim-dev@???



Received-SPF header uses real hostname of the server instead of
$primary_hostname in exim.conf.

Example:
/etc/sysconfig/network: HOSTNAME=host.example.com
/etc/exim.conf: primary_hostname = mx1.example.com
Received-SPF: error (temporary) (host.example.com: encountered temporary error
during SPF processing of domain of xxx.com) client-ip=1.2.3.4;
envelope-from=xxx@???; helo=xxx;

My patch resolves this bug:
diff -Nru a/src/spf.c b/src/spf.c 
--- a/src/spf.c 2007-04-17 16:06:40.000000000 +0300 
+++ b/src/spf.c 2007-05-17 17:19:04.000000000 +0300 
@@ -43,6 +43,12 @@ 
     return 0; 
   } 


+  if (SPF_server_set_rec_dom(spf_server, primary_hostname)) { 
+    debug_printf("spf: SPF_server_set_rec_dom() failed.\n"); 
+    spf_server = NULL; 
+    return 0; 
+  } 
+ 
   spf_request = SPF_request_new(spf_server); 


if (SPF_request_set_ipv4_str(spf_request, spf_remote_addr)) {

--
Configure bugmail: http://www.exim.org/bugzilla/userprefs.cgi?tab=email