]> SAFE projects GIT repository - jmp/mailleur/commitdiff
MX Local detection seems working
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 21 Jun 2025 23:55:36 +0000 (19:55 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 21 Jun 2025 23:55:36 +0000 (19:55 -0400)
lib/modrec.c
lib/unidns.c

index fc3ffaeba32fc6bff385f27f1cc53a6204f1695f..2aed7afd1bd5b345733c60eff01deda7887f6d94 100644 (file)
@@ -62,7 +62,7 @@ for (int i=0;i<argc;i++) {
   proto=pro_smtp; 
   ipnum=DIP;
   port=DPORT;
-  (void) rou_alert(0,"%s JMPDBG argv[%d]=<%s>",OPEP,i,argv[i]);
+  //(void) rou_alert(0,"%s JMPDBG argv[%d]=<%s>",OPEP,i,argv[i]);
   for (int j=0;j<3;j++) {
     char *sofar;
 
@@ -81,7 +81,7 @@ for (int i=0;i<argc;i++) {
       case 1    :
         if (strlen(ptr)>0)
           ipnum=ptr;
-        (void) rou_alert(0,"%s JMPDBG ipnum[%s]",OPEP,ipnum);
+        //(void) rou_alert(0,"%s JMPDBG ipnum=[%s]",OPEP,ipnum);
         break;
       case 2    :
         if (strlen(ptr)>0) 
@@ -332,7 +332,6 @@ _Bool proceed;
 childs=(pid_t)0;
 (void) memset(locargv,'\000',sizeof(locargv));
 locargv[0]=getenv("SMTPPORTS");
-(void) rou_alert(0,"%s SMTPPORT=<%s>",OPEP,getenv("SMTPPORTS"));
 if (locargv[0]==(char *)0) 
   locargv[0]="smtp:0.0.0.0:25:2"; //default configuration
 if (argc==0) {
index a4439eb9306fce34281a00547ea62a37a7c19da5..3296dd8adbdbc31b1de18caf44b599f5d4b8811d 100644 (file)
@@ -489,9 +489,8 @@ status=dns_nomx;
 dns=(MXTYP **)0;
 phase=0;
 proceed=true;
-(void) rou_alert(0,"%s Starting afns='%p'",OPEP,afns);
 while (proceed==true) {
-  (void) rou_alert(0,"%s JMPDBG phase='%d'",OPEP,phase);
+  //(void) rou_alert(0,"%s JMPDBG phase='%d'",OPEP,phase);
   switch (phase) {
     case 0      :       //Do we have a domain
       if ((domain==(char *)0)||(strlen(domain)==0))
@@ -511,8 +510,6 @@ while (proceed==true) {
         _Bool ismx;
 
         ismx=dns_matchiprec((*dns)->mxname,*afns,32);
-        (void) rou_alert(0,"%s mxname=<%s> anfn=[%s] ismx='%d'",
-                            OPEP,(*dns)->mxname,(*afns)->strnumip,ismx);
         if (ismx==true) {
           status=dns_local;
           break;
@@ -527,7 +524,6 @@ while (proceed==true) {
     }
   phase++;
   }
-(void) rou_alert(0,"%s Ending status='%d'",OPEP,status);
 return status;
 
 #undef  OPEP