#Please update /etc/hosts with with following
#start of /etc/host addon
#----------------------------------------------------
-#Definition to validate mailleur daemon (emlrcvr) server
+#Definition to validate mailleur daemon (mailleur) server
#The test serveur itself
127.127.10.25 mailleur.example.com mailleur
#The example.com email feeder
#====================================================
C:COMMENT STOP
T:(feed00) Sending a very Simple Email with ONE local delivery
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
#R:250-mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.127.0.2/feed2.example.com]
#====================================================
T:(feed01) Sending a a simple mail to remote server
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
#R:250-mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.127.0.2/feed2.example.com]
T:(feed02) Sending a very Simple Email to 2 domains
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
R:250 mailleur.example.com, link (cleartext) ready,...
T:(feed03) Sending two email within the same session
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#=========================================================================
S:HELO example.com
R:250 mailleur.example.com, link (cleartext) ready,...
#very simple test to feed SMTP server
#====================================================
T:(feed10) Testing if MX is found
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
R:250 mailleur.example.com, link (cleartext) ready,...
#====================================================
T:(feed11) Sending an mail to an non exitsing user
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
R:250 mailleur.example.com, link (cleartext) ready,...
#====================================================
T:(feed12) Trying to send Email while the domain is without MX
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
R:250 mailleur.example.com, link (cleartext) ready,...
#====================================================
T:(feed12) Trying to send Email while the recipient unknown
-R:220 mailleur.example.com, ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com, ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
R:250 mailleur.example.com, link (cleartext) ready,...
C:COMMENT STOP
#====================================================
T:Sending a very Simple Email
-R:220 mailleur.example.com ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com ESMTP (cleartext) mailleur...
#====================================================
S:HELO example.com
#R:250-mailleur.example.com, link (cleartext) ready, your IP/FQDN=[127.127.0.2/feed2.example.com]
C:WAIT 1
#-restarting link
C:RESTART
-R:220 mailleur.example.com ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com ESMTP (cleartext) mailleur...
S:MAIL FROM: <webmaster@example.com>
R:250 2.1.3 webmaster@example.com.. sender ok
S:RCPT TO: <dom1user1@subdom1.example.com>
C:WAIT 1
#-restarting link
C:RESTART
-R:220 mailleur.example.com ESMTP (cleartext) emlrcvr...
+R:220 mailleur.example.com ESMTP (cleartext) mailleur...
S:MAIL FROM: <noreply@example.com>
R:250 2.1.3 noreply@example.com.. sender ok
S:RCPT TO: <dom1user1@subdom1.example.com>
*/
/********************************************************/
/* */
+/* Procedure to free a add domain reference from a */
+/* list of reference. */
+/* */
+/********************************************************/
+static REFTYP *freeref(REFTYP *reflist)
+
+{
+if (reflist!=(REFTYP *)0) {
+ (void) free(reflist->todo);
+ (void) free(reflist);
+ reflist=(REFTYP *)0;
+ }
+return reflist;
+}
+/*
+\f
+*/
+/********************************************************/
+/* */
/* Procedure to add a add domain reference to a */
/* list of reference. */
/* */
}
phase++;
}
- (void) free(*ptr);
+ *ptr=freeref(*ptr);
ptr++;
iter++;
}
(void) snprintf(signon,sizeof(signon),FMT,
SIGNON,contact->locname,
mode,
- appname,
+ APPNAME,
rou_getversion(),
rou_ascsysstamp(time((time_t *)0)));
(void) transmit(contact,"%s",signon);