#:ipnum::: -> smtp:ipnum:25:2
#::,smtps::465:2 -> smtp:0.0.0.0:25:2 + smtps::465:2
#:: -> smtp:0.0.0.0:25:2
-SMTPPORTS="::1025"
+#SMTPPORTS="::1025"
#SMTPPORTS=":127.127.10.25:1025:,smtps:127.127.10.25:1026:1"
#SMTPPORTS=":127.127.10.25:1025:"
#SMTPPORTS="smtps:127.127.10.25:1065:1"
{
#define OPEP "moderec.c:prepbinding"
+#define DIP "0.0.0.0"
*bindings=(SOCPTR **)0;
for (int i=0;i<argc;i++) {
ptr=config;
iteration=1;
proto=pro_smtp;
- ipnum=DFLTIP;
+ ipnum=DIP;
port=SMTPORT;
(void) rou_alert(0,"JMPDBG argv[%d]=<%s>",i,argv[i]);
for (int j=0;j<3;j++) {
}
break;
case 1 :
- ipnum=ptr;
+ if (strlen(ptr)>0)
+ ipnum=ptr;
break;
case 2 :
if (strlen(ptr)>0)
}
return rou_nbrlist(*bindings);
+#undef DIP
#undef OPEP
}
/*
#define RELAX 5 //Relax time between process checking
pid_t *childs;
+char *locargv[2];
int nbrbind;
_Bool allbusy;
SOCPTR **bindings;
_Bool proceed;
childs=(pid_t)0;
+(void) memset(locargv,'\000',sizeof(locargv));
+locargv[0]=getenv("SMTPPORTS");
+if (locargv[0]==(char *)0)
+ locargv[0]="smtp:0.0.0.0:1025:2"; //default configuration
+if (argc==0) {
+ argc=1;
+ argv=locargv;
+ }
nbrbind=0;
allbusy=false;
bindings=(SOCPTR **)0;