From: Jean-Marc Pigeon (Delson) Date: Thu, 19 Jun 2025 23:01:37 +0000 (-0400) Subject: Added an ehlo after TLS when sending email X-Git-Tag: tag-0.9~77 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=6909ff02ea5cea7ca24c90570f6a8162b67d151e;p=jmp%2Fmailleur Added an ehlo after TLS when sending email --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 3ac0e7d..a283d87 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -281,8 +281,11 @@ while (proceed==true) { phase=999; //no parameter break; case 1 : //seems to be a good fqdn - contact->fqdn=rou_freestr(contact->fqdn); + char *ptr; + + ptr=contact->fqdn; //parameter could be the SAME! contact->fqdn=strdup(parameter); + ptr=rou_freestr(ptr); done=true; break; default : //SAFE guard @@ -823,7 +826,24 @@ return true; */ /********************************************************/ /* */ -/* Procedure to to send ehlo (or helo) to remote */ +/* Procedure to send a confirmation ehlo on the */ +/* crypted link. */ +/* */ +/********************************************************/ +_Bool sendehlo(RMTTYP *rmt) + +{ +_Bool done; + +done=false; +return done; +} +/* +^L +*/ +/********************************************************/ +/* */ +/* Procedure to send ehlo (or helo) to remote */ /* MX server. */ /* Return true if succesfull */ /* */ @@ -866,6 +886,15 @@ while (proceed==true) { switch (done) { case true : (void) log_fprintlog(rmt->logptr,false,"crypted link is now set"); + rspcode=simple_smtp_command(rmt,"EHLO %s",rmt->orgdomain); + switch (rspcode) { + case CMDOK : + break; + default : + (void) log_fprintlog(rmt->logptr,false,"No server confirmation"); + done=false; + break; + } break; case false : (void) log_fprintlog(rmt->logptr,false,"Unable to set crypted link");