How to detect the existence of mailbox in Linux
This article is about how to check the existence of mailboxes in Linux. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
For example, we need to verify whether laiconglin3@126.com really exists.
Nslookup-type=MX 126.com looks up the MX address of 126.com
Test@test:~$ nslookup-type=MX 126.comServer: 127.0.1.1Address: 127.0.1.1#53Non-authoritative answer:126.com mail exchanger = 10 126mx02.mxmail.netease.com.126.com mail exchanger = 10 126mx03.mxmail.netease.com.126.com mail exchanger = 10 126mx01.mxmail.netease.com.126.com mail exchanger = 50 126mx00.mxmail.netease.com.Authoritative answers can be found from:test@test:~$
Telnet 126mx02.mxmail.netease.com 25
Test@test:~$ telnet 126mx02.mxmail.netease.com 25Trying 220.181.15.202...Connected to 126mx02.mxmail.netease.com.Escape character is'^] '.220 126.com Anti-spam GT for Coremail System (126com [20140526])
Helo laiconglin3 sends helo commands to the smtp server. Laiconglin3 is just a name.
Helo laiconglin3250 OK
Mail from: indicate the sender, as long as it is a legal name
Mail from:250 Mail OK
Rcpt to: send a rcpt to command to verify that the mailbox exists
Rcpt to:250 Mail OK above is how to detect the existence of mailboxes in Linux. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.