]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Why a remote domain is accepted for relaying
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 19 Jul 2025 11:59:01 +0000 (07:59 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sat, 19 Jul 2025 11:59:01 +0000 (07:59 -0400)
data-feed/feed08.tst [new file with mode: 0644]
lib/lvleml.c

diff --git a/data-feed/feed08.tst b/data-feed/feed08.tst
new file mode 100644 (file)
index 0000000..6d29e5c
--- /dev/null
@@ -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:<supertool@mxtoolboxsmtpdiag.com>
+R:250 2.1.3 supertool@mxtoolboxsmtpdiag.com.. sender ok
+S:RCPT TO:<test@mxtoolboxsmtpdiag.com>
+R:250 2.6.4 SOULD Be rejected
+S:QUIT
+R:221 2.0.0 Bye, closing connection...
index 20708e87e5750f20c468196d6893556f7a879fbf..5ba099b2c93e879dee46ba379fcf46f87aff2436 100644 (file)
@@ -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) {