truemail-go icon indicating copy to clipboard operation
truemail-go copied to clipboard

[QUESTION] Is it possible to do validation after the RCPT TO section in the SMTP session?

Open RichiMaulana opened this issue 9 months ago • 0 comments

New question checklist

Question

When using Truemail as my main engine for validating emails I found that every time I validate Yahoo emails the results are always valid/true. After I try to debug the problems, turn out that Yahoo accepts all email addresses in the RCPT TO section, so even if the email doesn't exist the return from the Yahoo MX server will always be OK (250). After I continued to the DATA section in the SMTP session the Yahoo MX server just returned the mailbox not exist message.

Here is the detail:

$ swaks -s mta5.am0.yahoodns.net:25 -f [email protected] -t [email protected]
=== Trying mta5.am0.yahoodns.net:25...
=== Connected to mta5.am0.yahoodns.net.
<-  220 mtaproxy511.free.mail.bf1.yahoo.com ESMTP ready
 -> EHLO vpndev.aktiva.co.id
<-  250-mtaproxy511.free.mail.bf1.yahoo.com
<-  250-PIPELINING
<-  250-SIZE 41943040
<-  250-8BITMIME
<-  250 STARTTLS
 -> MAIL FROM:<[email protected]>
<-  250 sender <[email protected]> ok
 -> RCPT TO:<[email protected]>
<-  250 recipient <[email protected]> ok
 -> DATA
<-  354 go ahead
 -> Date: Tue, 30 Apr 2024 04:24:03 +0000
 -> To: [email protected]
 -> From: [email protected]
 -> Subject: test Tue, 30 Apr 2024 04:24:03 +0000
 -> Message-Id: <[email protected]>
 -> X-Mailer: swaks v20190914.0 jetmore.org/john/code/swaks/
 ->
 -> This is a test mailing
 ->
 ->
 -> .
<** 552 1 Requested mail action aborted, mailbox not found
 -> QUIT
*** Remote host closed connection unexpectedly.

So is there any workaround for this problem? I tried various validators that are available online and the result is valid.

Is the only way is just to do/continue the SMTP session until the DATA section? If it is, doesn't it will send the message to the target email if the email is valid?

RichiMaulana avatar Apr 30 '24 07:04 RichiMaulana