From 849df27c71e715c9584e2f38f5ad7cd2ef3a7c38 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Sat, 19 Jul 2025 07:59:01 -0400 Subject: [PATCH] Why a remote domain is accepted for relaying --- data-feed/feed08.tst | 20 ++++++++++++++++++++ lib/lvleml.c | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 data-feed/feed08.tst diff --git a/data-feed/feed08.tst b/data-feed/feed08.tst new file mode 100644 index 0000000..6d29e5c --- /dev/null +++ b/data-feed/feed08.tst @@ -0,0 +1,20 @@ +T:(feed05) Email testing remote server good credential Without authentication +#this email should be REJECT as relaying intended +C:CONNECT +#==================================================== +R:220 mailleur.example.com, ESMTP (cleartext) mailleur... +C:ORGN: 18.209.86.113 +R:220 mailleur.example.com, ESMTP (cleartext) mailleur... +S:EHLO keeper-us-east-1d.mxtoolbox.com +R:250-mailleur.example.com, link (cleartext) ready, your IP/FQDN=[18.209.86.113/keeper-us-east-1d.mxtoolbox.com] +R:250-STARTTLS +R:250-AUTH DIGEST-MD5 +R:250-SIZE 52428800 +R:250-8BITMIME +R:250 ENHANCEDSTATUSCODES +S:MAIL FROM: +R:250 2.1.3 supertool@mxtoolboxsmtpdiag.com.. sender ok +S:RCPT TO: +R:250 2.6.4 SOULD Be rejected +S:QUIT +R:221 2.0.0 Bye, closing connection... diff --git a/lib/lvleml.c b/lib/lvleml.c index 20708e8..5ba099b 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -2484,7 +2484,7 @@ while (proceed==true) { (void) log_fprintlog(contact->logptr,true,"Start CNT=%s",contact->mainsesid); (void) log_fprintlog(contact->logptr,false,"(Contact open from [%s] to " "[%s:%s])", - contact->peername, + contact->peerip, contact->locip, contact->locserv); if (soc_iscrypted(contact->socptr)==true) { -- 2.47.3