在Linux上验证电子邮件地址 [英] verify email address on Linux

查看:151
本文介绍了在Linux上验证电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用像 sendmail -bv example@othesite.com 这样的命令来验证一些电子邮件地址,以确认地址是否有效,然后发送实际的电子邮件给人。
它适用于我测试的大多数网站。但是有时候,我正在使用一些网站的sendmail
,无论我在同一个网站上的地址名称为
,我都会通过。

I am using command like sendmail -bv example@othesite.com to verify some email address to confirm the address is valid or not before sending actual email to people. it works for most sites I tested. But sometimes, I am using the sendmail for some website that will give me all pass no matter what the address name I put for the same site.

例如:

sendmail -bv yyyyyy@othersite.com

其中 yyyyyy 可以是任何传递命令的东西,并始终报告 yyyyyy@othersite.com 已验证。这似乎是正确的,但我认为这应该是错误的。为什么?

where yyyyyy can be anything that also passes the command and always reported out "yyyyyy@othersite.com verified". It seems correct but I think that should be something wrong behind. Why ?

其他命令检查linux上的邮件地址将是可靠和可用的,如何和什么命令这样做?

Other command checking mail address on linux will be reliable and available, how and what command does this?

推荐答案

以下命令和链接解决了这个问题。

The following command and link have solved the issue.

-nslookup命令可帮助找到exampleite的邮件服务器地址。 com

-nslookup command help to find out mail server address for examplesite.com

nslookup -type = mx examplesite.com;

nslookup -type=mx examplesite.com;

- https://superuser.com/questions/224015/how-to-check-if-email-address-does -exist

链接中的答案说明有助于完全验证电子邮件地址

The answer instruction in the link help to verfiy the email address completely

这篇关于在Linux上验证电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆