S:MAIL FROM: <postmaster@example.com>
R:250 2.1.3 postmaster@example.com sender ok
S:RCPT TO: <webmaster@example.com>
-R:250 2.6.4 Address accepted <webmaster@example.com>
+R:250 5.6.6 Address will be processed <webmaster@example.com>
S:RCPT TO: <postmaster@example.com>
-R:250 2.6.4 Address accepted <postmaster@example.com>
+R:250 5.6.6 Address will be processed <postmaster@example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:MAIL FROM: <postmaster@example.com> SIZE=1024
R:250 2.1.3 postmaster@example.com sender ok
S:RCPT TO: <user1@mailref1.example.com>
-R:250 2.6.4 Address accepted <user1@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user1@mailref1.example.com>
S:RCPT TO: <user2@mailref1.example.com>
-R:250 2.6.4 Address accepted <user2@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user2@mailref1.example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:MAIL FROM: <trouble@mailref1.example.com>
R:250 2.1.3 trouble@mailref1.example.com sender ok
S:RCPT TO: <webmaster@example.com>
-R:250 2.6.4 Address accepted <webmaster@example.com>
+R:250 5.6.6 Address will be processed <webmaster@example.com>
S:RCPT TO: <user1@mailref1.example.com>
-R:250 2.6.4 Address accepted <user1@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user1@mailref1.example.com>
S:RCPT TO: <user1@posdb.example.com>
-R:250 2.6.4 Address accepted <user1@posdb.example.com>
+R:250 5.6.6 Address will be processed <user1@posdb.example.com>
S:RCPT TO: <user1@mardb.example.com>
-R:250 2.6.4 Address accepted <user1@mardb.example.com>
+R:250 5.6.6 Address will be processed <user1@mardb.example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:MAIL FROM: <trouble@mailref1.example.com>
R:250 2.1.3 trouble@mailref1.example.com sender ok
S:RCPT TO: <user1@mailref1.example.com>
-R:250 2.6.4 Address accepted <user1@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user1@mailref1.example.com>
S:RCPT TO: <user2@mailref1.example.com>
-R:250 2.6.4 Address accepted <user2@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user2@mailref1.example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:MAIL FROM: <postmaster@mailref1.example.com>
R:250 2.1.3 postmaster@mailref1.example.com sender ok
S:RCPT TO: <user2@mailref1.example.com>
-R:250 2.6.4 Address accepted <user2@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user2@mailref1.example.com>
S:RCPT TO: <user1@mailref1.example.com>
-R:250 2.6.4 Address accepted <user1@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user1@mailref1.example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:MAIL FROM: <postmaster@example.com>
R:250 2.1.3 postmaster@example.com sender ok
S:RCPT TO: <utf8-áö_üñ@example.com>
-R:250 2.6.4 Address accepted <utf8-áö_üñ@example.com>
+R:250 5.6.6 Address will be processed <utf8-áö_üñ@example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:MAIL FROM: <trouble@mailref1.example.com>
R:250 2.1.3 trouble@mailref1.example.com sender ok
S:RCPT TO: <user1@posdb.example.com>
-R:250 2.6.4 Address accepted <user1@posdb.example.com>
+R:250 5.6.6 Address will be processed <user1@posdb.example.com>
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
D:Subject: (feed006) A email to a not existing user after authentication
S:MAIL FROM: <trouble@mailref1.example.com>
R:250 2.1.3 trouble@mailref1.example.com sender ok
S:RCPT TO: <user1@posdb.example.com>
-R:250 2.6.4 Address accepted <user1@posdb.example.com>
+R:250 5.6.6 Address will be processed <user1@posdb.example.com>
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
D:Subject: (feed006) A email to a not existing user after authentication
S:MAIL FROM:<supertool@mxtoolboxsmtpdiag.com>
R:250 2.1.3 supertool@mxtoolboxsmtpdiag.com sender ok
S:RCPT TO: <webmaster@example.com>
-R:250 2.6.4 Address accepted <webmaster@example.com>
+R:250 5.6.6 Address will be processed <webmaster@example.com>
S:RCPT TO:<test@mxtoolboxsmtpdiag.com>
R:555 2.7.0 No MX nor IP for for domain <mxtoolboxsmtpdiag.com>
S:RCPT TO: <user1@posdb.example.com>
S:MAIL FROM:<nobody@gmail.com> SIZE=2958
R:250 2.1.3 nobody@gmail.com sender ok
S:RCPT TO:<user1@mailleur.example.com>
-R:250 2.6.4 Address accepted <user1@mailleur.example.com>
+R:250 5.6.6 Address will be processed <user1@mailleur.example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:RCPT TO: <user1@subdom0.example.com>
R:563 5.6.4 No valid MX found for recipient domain name (domain=subdom0.example.com)
S:RCPT TO: <user1@mailref1.example.com>
-R:250 2.6.4 Address accepted <user1@mailref1.example.com>
+R:250 5.6.6 Address will be processed <user1@mailref1.example.com>
S:QUIT
R:221 2.0.0 Bye, closing connection...
#-------------------------------------------------------------------------
S:RCPT TO: <dom1user3@example.com>
R:551 5.6.5 <dom1user3@example.com> unknown user
S:RCPT TO: <dom1user3@mailref1.example.com>
-R:250 2.6.4 Address accepted <dom1user3@mailref1.example.com>
+R:250 5.6.6 Address will be processed <dom1user3@mailref1.example.com>
S:RCPT TO: <user1@posdb.example.com>
-R:250 2.6.4 Address accepted <user1@posdb.example.com>
+R:250 5.6.6 Address will be processed <user1@posdb.example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
S:MAIL FROM: <postmaster@example.com>
R:250 2.1.3 postmaster@example.com sender ok
S:RCPT TO: <root@example.com>
-R:250 2.6.4 Address accepted <root@example.com>
+R:250 5.6.6 Address will be processed <root@example.com>
S:RCPT TO: <jmp@example.com>
-R:250 2.6.4 Address accepted <jmp@example.com>
+R:250 5.6.6 Address will be processed <jmp@example.com>
#-------------------------------------------------------------------------
#-sending data
C:DATA 354 3.5.0 End data with <CR><LF>.<CR><LF>
/* store status within the database. */
/* */
/************************************************/
-static void bad_rcpt(CONTYP *contact,char *rcpt,int smtpcode,char *fmt,...)
+static void note_rcpt(CONTYP *contact,char *rcpt,int smtpcode,char *fmt,...)
{
-#define OPEP "lvleml.c:bad_rcpt,"
+#define OPEP "lvleml.c:note_rcpt,"
va_list args;
char **resp;
action.sfrom=contact->mailfrom;
action.hfrom="----";
action.hsubject="----";
+if (contact->session->hfrom!=(char *)0)
+ action.hfrom=contact->session->hfrom;
+if (contact->session->hsubject!=(char *)0)
+ action.hsubject=contact->session->hsubject;
action.rcptto=rcpt;
action.resp=resp;
if (sql_mngact(contact->sqlptr,&action)==false)
success=false;
neu=(RCPTYP *)0;
-detail="Address accepted";
+detail="Address will be processed";
report=(char *)0;
proceed=true;
phase=0;
break;
case 1 : //do we have an originator
if ((rcptto==(char *)0)||(strlen(rcptto)==0)) {
- (void) eml_transmit(contact,true,"%d 5.6.1 recipient not specified",
- BADPAR);
+ (void) note_rcpt(contact,rcptto,BADPAR,"5.6.1 recipient not specified");
phase=999; //no need to go further
}
break;
case 2 : //check rcpt format
if ((rcptto[0]!='<')||(rcptto[strlen(rcptto)-1]!='>')) {
- (void) eml_transmit(contact,true,"%d 5.6.2 '%s' bad Format error",
- BADPAR,rcptto);
+ (void) note_rcpt(contact,rcptto,BADPAR,"5.6.2 '%s' bad Format error",rcptto);
phase=999; //no need to go further
}
rcptto[strlen(rcptto)-1]='\000';
case 3 : //checking rcptto format
neu=eml_isemailok(rcptto,&report);
if (neu==(RCPTYP *)0) {
- (void) eml_transmit(contact,true,"%d 5.6.3 %s",NOTEML,report);
+ (void) note_rcpt(contact,rcptto,NOTEML,"5.6.3 %s",report);
report=rou_freestr(report);
phase=999; //no need to go further
}
break;
case 4 : //Do we have a domain MX
if (setlocdom(contact,neu)==false) {
- (void) bad_rcpt(contact,rcptto,MISSMX,"5.6.4 %s (domain=%s)",
+ (void) note_rcpt(contact,rcptto,MISSMX,"5.6.4 %s (domain=%s)",
"No valid MX found for recipient "
"domain name",neu->domain);
phase=999; //no need to go further
}
break;
case 7 : //everything ok
- (void) eml_transmit(contact,true,"%d 2.6.4 %s <%s>",CMDOK,detail,rcptto);
+ (void) note_rcpt(contact,rcptto,CMDOK,"5.6.6 %s <%s>",detail,rcptto);
success=true;
break;
default : //SAFE guard