|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
ERDNS weirdnessHi,
I'm having problems receiving mail a particular server. It's being logged as an ERDNS issue, but when I lookup the IP using the same DNS server xMail uses I get an answer, although not a configuration I've seen before, but maybe it's legal, I don't know all the RFCs. So I don't know if the problem is the way they have setup their RDNS or something else. As I understand from what I can find in the docs smtp-rdnscheck just looks for the IP address having a record. Or is it looking for a PTR record on the first lookup with out recursion? Or is there something else it's doing? This is xMail 1.25 on Windows. Can anyone make sense of why the ERDNS is coming up? Here's an excerpt from the smtp log and what I get when I dig the IP address. "mx.xxxxxxxxx.com" "mx.xxxxxxxxxx.com" "207.162.214.242" "2009-08-12 15:20:21" "mx.soldoutdisciples.com" "" "kip@..." "" "" "SNDRIP=ERD NS" "" "0" "" dig -x 207.162.214.242 ; <<>> DiG 9.3.2 <<>> -x 207.162.214.242 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 3 ;; QUESTION SECTION: ;242.214.162.207.in-addr.arpa. IN PTR ;; ANSWER SECTION: 242.214.162.207.in-addr.arpa. 2971 IN CNAME 242.224/27.214.162.207.in-addr.arpa. 242.224/27.214.162.207.in-addr.arpa. 37771 IN PTR enoch.soldoutdisciples.com. 242.224/27.214.162.207.in-addr.arpa. 37771 IN PTR mx.soldoutdisciples.com. ;; AUTHORITY SECTION: 224/27.214.162.207.in-addr.arpa. 37771 IN NS ns1.lightonthenet.org. 224/27.214.162.207.in-addr.arpa. 37771 IN NS ns3.lightonthenet.org. 224/27.214.162.207.in-addr.arpa. 37771 IN NS ns2.lightonthenet.org. ;; ADDITIONAL SECTION: ns2.lightonthenet.org. 569866 IN A 207.162.214.229 ns3.lightonthenet.org. 604118 IN A 207.162.214.233 ns1.lightonthenet.org. 604118 IN A 207.162.214.232 ;; Query time: 62 msec ;; SERVER: 192.168.1.249#53(192.168.1.249) ;; WHEN: Thu Sep 03 10:59:48 2009 ;; MSG SIZE rcvd: 247 Thanks, Bill _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
Re: ERDNS weirdnessOn Thu, 3 Sep 2009, Bill Healy wrote:
> Hi, > > I'm having problems receiving mail a particular server. It's being > logged as an ERDNS issue, but when I lookup the IP using the same DNS > server xMail uses I get an answer, although not a configuration I've > seen before, but maybe it's legal, I don't know all the RFCs. So I don't > know if the problem is the way they have setup their RDNS or something > else. > > As I understand from what I can find in the docs smtp-rdnscheck just > looks for the IP address having a record. Or is it looking for a PTR > record on the first lookup with out recursion? Or is there something > else it's doing? > > This is xMail 1.25 on Windows. Can anyone make sense of why the ERDNS is > coming up? XMail does simply a SysGetHostByAddr() when doing an RDNS check, and this translates to a call to getnameinfo(), on both Windows and Unix. It works fine on Linux (using the test program below), and it should even on Windows: $ gcc -o nettest nettest.c $ ./nettest 207.162.214.242 name = 'mx.soldoutdisciples.com' - Davide #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> int main(int ac, char **av) { int error; struct sockaddr_in addr; char name[256]; memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; if (inet_aton(av[1], (struct in_addr *) &addr.sin_addr) == 0) { perror(av[1]); return 1; } if ((error = getnameinfo((struct sockaddr *) &addr, sizeof(addr), name, sizeof(name), NULL, 0, NI_NAMEREQD)) != 0) { fprintf(stderr, "%s: %s\n", av[1], gai_strerror(error)); return 1; } printf("name = '%s'\n", name); return 0; } _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
|
|
|
Re: ERDNS weirdnessOn Fri, 4 Sep 2009, Bill Healy wrote:
> HI Davide, > > So am I correct that all the RDNS check does is look for a hostname and > that's all? Or does it compare it to something once it gets it? > > Davide can you, or anyone else on this list e-mail an exe of the test > program so I can see if it works on the Windows 2000 server that xmail > is on? Attached (source below). - Davide #define _WIN32_WINNT 0x0501 #include <winsock2.h> #include <ws2tcpip.h> #include <mswsock.h> #include <windows.h> #include <windowsx.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int ac, char **av) { int error; WSADATA wsd; struct sockaddr_in addr; char name[256]; if (WSAStartup(MAKEWORD(2, 0), &wsd)) { fprintf(stderr, "WSAStartup failed!\n"); return 1; } memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_addr.S_un.S_addr = inet_addr(av[1]); if ((error = getnameinfo((struct sockaddr *) &addr, sizeof(addr), name, sizeof(name), NULL, 0, NI_NAMEREQD)) != 0) { fprintf(stderr, "%s: %s\n", av[1], gai_strerror(error)); return 1; } printf("name = '%s'\n", name); return 0; } _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
|
|
|
|
|
|
Re: ERDNS weirdnessOn Mon, 7 Sep 2009, CLEMENT Francis wrote:
> > Hi Davide > > Tool tested on w2000 sp4 returns this error : > > (manually translated from French to English so not exact english error) > > "getnameinfo entry point no found in dinamic link library WS2_32.dll" > > Works fine on w2003R2 SP2 > (not tested on w2003 no sp nor 2008/2008r2) It could be, although this would have revealed in a different way, to the original poster (XMail would not start at all). - Davide _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
Re: ERDNS weirdnessOn Mon, 7 Sep 2009, CLEMENT Francis wrote:
> Davide > > For informations about getnameinfo on windows older than XP you can check > this : > > http://msdn.microsoft.com/en-us/library/ms738532(VS.85).aspx > > And end of article you will find "Support for getnameinfo on older versions > of Windows" > > Seems you need to include Ws2tcpip.h file (done) AND also include the > Wspiapi.h file :) No that's fine. If the binary runs, it means getnameinfo() is there. Maybe a temporary local DNS/network problem, or a misconfigured one, might have caused the problem to the original poster. - Davide _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
|
|
|
Re: ERDNS weirdnessOn Mon, 7 Sep 2009, CLEMENT Francis wrote:
> My post was about nettest tool you provided, not about xmail server itself > :) > > When I try to run "nettest" binary on w2000 sp4, Windows returned immediatly > the error mentioned in my previous post !?!? > So the nettest "binary' don't start at all :) > So this tool can't help Bill (original poster) to test it's server responses > > Could you provide a nettest binary that can run on w2000 ? Windows 2000?! I wasn't even born in year 2000 :) Seriously, I think there might be something wrong with your Win2K setup, otherwise XMail (that does not include wspiapi.h) could not run on any Win2K setup. And I know it does. Maybe the definition of _WIN32_WINNT screwed that up, but I doubt, since a missing ws2_32.dll is a more serious problem. You can try the attached binary, but I doubt it helps, since it still links to ws2_32.dll. - Davide _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
|
|
|
Re: ERDNS weirdnessOn Tue, 8 Sep 2009, CLEMENT Francis wrote:
> This version works on w2k without any problem > > And xmail works while using getnameinfo but without including wspiapi.h, > strange ! > Perhabs a different compiler or linker option for xmail that force some > others inclusions or lib search ? I think it was the removal of the _WIN32_WINNT definition, more than the include file, the reason of the behaviour change. - Davide _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
|
|
Re: ERDNS weirdnessI´m using W2K SP4 + Xmail here for years, without problems...
The first version of nettest (that was sended in 09/05/2009) didn´t run here. The second version (that was sended in 09/07/2009) ran without problems. Regards Edinilson --------------------------------------------------------- ATINET-Professional Web Hosting Tel Voz: (0xx11) 4412-0876 http://www.atinet.com.br ----- Original Message ----- From: "Davide Libenzi" <davidel@...> To: "XMail Users Mailing List" <xmail@...> Sent: Monday, September 07, 2009 2:55 PM Subject: Re: [xmail] ERDNS weirdness On Mon, 7 Sep 2009, CLEMENT Francis wrote: > My post was about nettest tool you provided, not about xmail server itself > :) > > When I try to run "nettest" binary on w2000 sp4, Windows returned > immediatly > the error mentioned in my previous post !?!? > So the nettest "binary' don't start at all :) > So this tool can't help Bill (original poster) to test it's server > responses > > Could you provide a nettest binary that can run on w2000 ? Windows 2000?! I wasn't even born in year 2000 :) Seriously, I think there might be something wrong with your Win2K setup, otherwise XMail (that does not include wspiapi.h) could not run on any Win2K setup. And I know it does. Maybe the definition of _WIN32_WINNT screwed that up, but I doubt, since a missing ws2_32.dll is a more serious problem. You can try the attached binary, but I doubt it helps, since it still links to ws2_32.dll. - Davide -------------------------------------------------------------------------------- _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail _______________________________________________ xmail mailing list xmail@... http://xmailserver.org/mailman/listinfo/xmail |
| Free embeddable forum powered by Nabble | Forum Help |