Re: [xmail] ERDNS weirdness
I´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 davi...@xmailserver.org To: XMail Users Mailing List xmail@xmailserver.org 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@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] ERDNS weirdness
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : lundi 7 septembre 2009 19:55 À : XMail Users Mailing List Objet : 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 :) Yes, me too :) But why change a system that works :) Seriously, I think there might be something wrong with your Win2K setup, Don't think so, because xmail works on the same system where I tested first nettest version otherwise XMail (that does not include wspiapi.h) could not run on any Win2K setup. And I know it does. Yes, this confirm win2k setup is ok 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 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 ? Thanks Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] ERDNS weirdness
On 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@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] ERDNS weirdness
On 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@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] ERDNS weirdness
On 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@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] ERDNS weirdness
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : lundi 7 septembre 2009 16:47 À : XMail Users Mailing List Objet : Re: [xmail] ERDNS weirdness On 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 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 ? Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] ERDNS weirdness
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? Thanks, Bill -- From: Davide Libenzi[SMTP:davi...@xmailserver.org] Sent: Thursday, September 03, 2009 3:00 PM To:XMail Users Mailing List Subject: Re: [xmail] ERDNS weirdness On 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@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
[xmail] ERDNS weirdness
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? Here's an excerpt from the smtp log and what I get when I dig the IP address. mx.x.com mx.xx.com 207.162.214.242 2009-08-12 15:20:21 mx.soldoutdisciples.com k...@usd21.org 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 NSns1.lightonthenet.org. 224/27.214.162.207.in-addr.arpa. 37771 IN NSns3.lightonthenet.org. 224/27.214.162.207.in-addr.arpa. 37771 IN NSns2.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@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] ERDNS weirdness
On 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@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail