SMTP端口选择

2023-11-08

SMTP Port 25, 465, 587 or 2525 – how to choose the right SMTP Port?

原文地址:https://pepipost.com/blog/25-465-587-2525-choose-the-right-smtp-port/

SMTP Port 25, 465, 587, 2525.. Which port should I use?

Choosing an SMTP Port can be tricky. The first question that comes in our mind when we are setting up the Simple Mail Transfer Protocol (SMTP) Server is

Which is the best port for SMTP connectivity?”

There are multiple port options available, but which one should you use? Let me take you through the history of each port. It will give you a clear idea about all the ports and then we’ll discuss which one is best for SMTP connectivity.

History of SMTP Ports

In August 1982, USC/Information Sciences Institute submitted a proposal to the Internet Engineering Task Force (IETF). Request For Comments (RFC) 821 was published, establishing port 25 as the default transmission channel for internet email.

What do you mean by Transmission channel?

The SMTP transmission channel is a TCP connection established between the sender process port U and the receiver process port L. This connection is used as the transmission channel. This protocol is assigned the port 25, that is L=25 as the default transmission channel for communication between mail servers. Even after 3.5 decades, Port 25 is used as the primary means for transmitting emails between two mail servers.

In December of 1998, R. Gellens and J. Klensin submitted RFC 2476. This specifies the Internet standards track protocols for the internet community. SMTP was defined as a message *transfer* protocol, that is, a means to route (if needed) and deliver finished messages. However, SMTP is now also widely used as a message *submission* protocol, that is, a means for message user agents to introduce new messages into the MTA routing network. The RFC proposed a splits message submission from message relay. This will benefit developers and network administrators by making it easy to implement authenticated submission, security policies and guard against unauthorized mail relaying. The RFC defined that Port 587 is reserved for email message submission.

Later on in early 1997, the IANA registered 465 for SMTPS. It was initially planned for the SMTPS encryption and authentication “wrapper” over SMTP. But the end of 1998, this was revoked in favor of STARTTLS over SMTP (RFC 3207). With STARTTLS, this port can be used with or without TLS. Despite that fact, there are many servers that support the deprecated protocol wrapper, primarily to support older clients that implemented SMTPS. Unless you need to support older clients, SMTPS and its use on port 465 should remain nothing more than a historical footnote.

Common SMTP Ports

Port 25

From 1982 till date, Port 25 is used as the default port to communicate email across the Internet using the SMTP. But the trend is changing now. Most SMTP clients are not using Port 25 because of many ISPs and hosting providers block or restrict SMTP connections on port 25. This is done to cut down a number of unsolicited emails that are sent from their networks. Unless you are specifically managing a mail server, you should have no traffic traversing this port on your server.

//Type the following command to see if Port 25 is blocked on your network.

telnet pepipost.com 25

//If Port 25 is not blocked, you will get a successful 220 response (text may vary).

Trying 202.162.247.93...

Connected to pepipost.com.

Escape character is '^]'.

220 pepipost.com ESMTP Postfix

//If Port 25 is blocked, you will get a connection error or no response at all.

Trying 202.162.247.93...

telnet: connect to address 202.162.247.93: Connection refused
telnet: Unable to connect to remote host

Port 465

Almost every ESP does not accept connections on port 465. This port was initially used for the SMTPS encryption and authentication “wrapper” over SMTP. By the end of 1998, IANA has reassigned this port number for a new service. But, still many services continue to offer the deprecated SMTPS interface on port 465. Service providers that maintain port 465 do so because older Microsoft applications do not support STARTTLS.

Don’t use port 465, because this port is no longer an accepted standard for SMTP.

Port 587

You should use port 587 as default SMTP port. Almost all mail servers support this port. In fact, Port 587 is the one recommended for mail submissions instead of port 25 as per RFC 2476. But even if the mail server supports it, it may or may not be open for mail submissions. For that, you need to check with your administrator or with your hosting service provider. Because all larger hosting services do not support port 587. You can use the same technique like port 25 to check if Port 587 is blocked or not. Just use the following command:

telnet example.com 587

This port, coupled with TLS encryption, will ensure that email is submitted securely and following the guidelines set out by the IETF.

Pepipost supports TLS connections, which you can verify by connecting and issuing an EHLO command from the command line interface. The resultant “250 STARTTLS” confirms the endpoint accepts TLS connection requests.

telnet smtp.pepipost.com 587

Trying 202.162.242.95...

Connected to smtp.pepipost.com.

Escape character is '^]'.

220 pepipost.com

ehlo pepipost.com

250-smta2.pepipost.com

250-PIPELINING

250-SIZE 20783082

250-VRFY

250-ETRN

250-STARTTLS

 

Port 2525

Almost every ESP supports the use of Port 2525, even though this is not an official SMTP port and not endorsed by neither the IETF nor IANA. Port 2525 is used as an alternative to port 587 for SMTP, you can use this port if all the above ports are blocked. Let’s suppose, your services hosted on Google Compute Engine and you are experiencing connectivity issues on Port 587. In that case, you can try Port 2525. This port also supports TLS encryption.

Summary

To summarize,
– SMTP port 587 is one of the best choices for nearly every use case for connecting to Pepipost

– Port 25 is the default port used for relaying

– Port 465 should no longer be used at all

– Port 2525 used when all other port is blocked

I hope this information was helpful to make the right decision on the SMTP port.

Want to configure Pepipost for your SMTP relay and email delivery? We have some good news. Apart from the best delivery and clean infrastructure, we also offer the best pricing that goes unmatched.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

SMTP端口选择 的相关文章

  • 公开数据集下载地址

    这里写目录标题 一 目标检测 分割数据集 1 COCO 数据集 COCO2014 COCO2017 2 PASCAL VOC数据集 voc2007数据集 voc 2012数据集 二 自动驾驶数据集 1 BDD100K 数据集 2 Nusce
  • STM32单片机示例:多个定时器同步触发启动

    文章目录 前言 基础说明 关键配置与代码 其它补充 示例链接 前言 多个定时器同步触发启动是一种比较实用的功能 这里将对此做个示例说明 基础说明 该示例演示通过一个TIM使能时同步触发使能另一个TIM 本例中使用TIM1作为主机 使用TIM
  • Linux主机测评

    安全计算环境 一 身份鉴别 a 应对登录的用户进行身份标识和身份鉴别 身份标识具有唯一性 身份鉴别信息具有复杂度要求并定期更换 此项部分符合 在root权限下查看有关用户的配置文件 1 通过etc password检查身份标识 看是否有没有
  • qq windows版客户端0day复现——远程代码执行(七夕小礼物)

    ps 本文章仅用来分享 请勿将文章内的相关技术用于非法目的 请勿将文章内的相关技术用于非法目的 请勿将文章内的相关技术用于非法目的 如有非法行为与本文章作者无任何关系 一切行为以遵守 中华人民共和国网络安全法 为前提 今天hw貌似爆了挺多劲
  • R语言 集成算法(Bagging算法和Adaboot算法)

    关注微信公共号 小程在线 关注CSDN博客 程志伟的博客 R版本 3 6 1 adaboost包 提供Bagging函数和Adaboot函数 gt setwd G R语言 大三下半年 数据挖掘 R语言实战 gt data read csv
  • 实现登录功能之拦截器和导航守卫的使用

    需求 本次主要通过SpringSecurity jwt vue实现简易的登录Demo 实现的功能 主要写Demo过程中记录关于拦截器和导航守卫的使用 环境 nodejs v14 16 1 vue 2 9 6 npm 6 14 12 webp
  • 【求助】ERROR: No matching distribution found for python-gssapi==0.6.4怎么解决

    Collecting python gssapi 0 6 4 Using cached https pypi tuna tsinghua edu cn packages a4 9e 648b4e85235097edcee561c986f70
  • 数据结构-时间复杂度

    一 常数操作 常见固定时间的操作 1 常见算术运算 2 位运算 gt gt gt gt gt lt lt 等 3 赋值 比较 自增 自减 4 数组寻址 可以通过计算偏移量直接获取第N位置的内容 对比链表寻址 是没有办法直接计算得到第N位置的
  • c# 进程的创建与撤销

    1 创建进程 using System using System Diagnostics using System ComponentModel namespace MyProcessSample class MyProcess publi
  • C++(11):线程局部变量thread_local

    多线程中 每个线程都拥有自己的栈空间 但是对于全局变量 静态变量以及堆上空间 是共享于多个线程间的 这可以有效的在多个线程间共享数据 但也是多线程竞争的主要来源 include
  • 浅谈人工智能与伦理道德

    人工智能技术简介 人 工 智 能 技 术 简 称 AI ArtificialIntelligence AI作为一门学科 于1956 年问世 是由 人工智能之父 麦卡锡 McCartney 及一批数学家 信息学家 心理学家 神经生理学家 计算
  • Android 调试桥(adb)安装、配置、使用

    一 安装 1 官网 https developer android com studio command line adb 2 下载 3 解压 二 配置环境 在安装完成之后 将android的adb工具所在目录加入环境变量里面 1 在终端中
  • neo4j--Cypher索引、约束、统计

    Cypher索引 约束 统计 1 索引 1 1创建索引 使用CREATE INDEX ON可以在拥有某个标签的所有节点的某个属性上创建索引 注意 索引是在后台创建 并不能立刻就生效 CREATE INDEX ON Person name 本
  • 已知路由器R1的路由表如表4-12所示。试画出各网络和必要的路由器的连接拓扑,标注出必要的IP地址和接口。对不能确定的情况应当指明。

    姐 注意点 1 下一跳地址即代表路由器
  • 对xml内数据的操作(xml生成、增删改查)

    接口 package com baozupo gzl severce import org dom4j Document import com baozupo gzl bean Froms public interface XMLUtils
  • 服务器架设了网站还能架设游戏吗,可以在云服务器里架设游戏吗

    可以在云服务器里架设游戏吗 内容精选 换一换 标签是弹性云服务器的标识 为弹性云服务器添加标签 可以方便用户识别和管理拥有的弹性云服务器资源 您可以在创建弹性云服务器时添加标签 也可以在弹性云服务器创建完成后 在云服务器的详情页添加标签 您
  • No.14新一代信息技术

    新一代信息技术产业包括 加快建设宽带 泛在 融合 安全的信息忘了基础设施 推动新一代移动通信 下一代互联网核心设备和智能终端的研发及产业化 加快推进三网融合 促进物联网 云计算的研发和示范应用 大数据 云计算 互联网 物联网 智慧城市等是新
  • Android 数据库增删改查

    文章目录 一 案例演示 二 实现步骤 1 activity main xml 2 MainActivity java 3 UserDao java 4 User java 5 SQLiteOpenHelper java 一 案例演示 二 实
  • 关于laravel开发实战的一些小技巧

    在目前的 web开发中 主流的框架有很多 例如 Spring Boot Spring Cloud MyBatis Golang Ruby on Rails等 这些框架都各有其特点 但也都存在一些共同的问题 比如稳定性差 开发效率低等 在我看

随机推荐

  • 1.人工智能算法初探——感知机全解(原始形式and对偶形式)

    感知机 perceptron 是1957年由Rosenblatt提出 是神经网络与支持向量机的基础 感知机是二分类的线性可分类模型 其输入为实例的特征向量 输出为实例的类别 取 1和 1两个值 感知机只能应用到线性可分的数据集当中 对于线性
  • 私有镜像仓库harbor搭建

    一 安装docker https blog csdn net weixin 63634809 article details 124560933 目前 Docker 只能支持 64 位系统 bin bash 1 关闭防火墙 systemct
  • react,父组件如何获取子组件的值

    class Son extends React Component render return
  • 云开发初探 —— 更简便的小程序开发模式

    欢迎大家前往腾讯云 社区 获取更多腾讯海量技术实践干货哦 本文由李成熙heyli发表于云 社区专栏 李成熙 腾讯云高级工程师 2014年度毕业加入腾讯AlloyTeam 先后负责过QQ群 花样直播 腾讯文档等项目 2018年加入腾讯云云开发
  • latex图片只插半栏(插入双栏中的半栏/只在左半边或者右半边)(亲测有效)

    在利用latex写论文的时候 发现无法只插入半栏 插入双栏中的半栏 只在左半边或者右半边 后来查找了很久的资料 终于找到了解决办法如下 1 图片占半栏 begin figure H centering includegraphics wid
  • 非结构化数据管理解决方案白皮书 附下载地址

    企业的持续经营必将产生大量数据 无论在企业的战略层面还是 执行层面 数据管理对于企业决策都具有举足轻重的作用 一方面在战略层面 基于数据管理能够有效梳理企业数据资源 支撑企业优化 战略决策 把握业务拓展机遇 抢占竞争先机 另一方面 在执行层
  • 圆柱体的投影特点_常用的地理信息系统地图投影详解

    今天想和大家分享下更加具体的几种地图投影知识 言归正传 直接进入正题 1 高斯 克吕格投影 1 基本概念 高斯 克吕格投影是等角横切椭圆柱投影 详细来讲就是有一椭圆柱面横套在地球椭球体外面 并与某一条子午线相切 椭圆柱的中心轴通过椭球体中心
  • python类对象内存分析_python 对象内存分析

    python对象内存分析 一 python内建对象 python内建对象占用内存的情况又分为定长对象与非定长对象 变长 1 1 定长对象 对象在内存中所占大小不会变化的对象 包括int float long bool complex和dic
  • kettle调用存储过程_Kettle(PDI)客户端工具Spoon详解

    概述 PDI 客户端 Spoon 是一个您安装在工作台上的桌面应用程序 使您能够构建转换和作业或安排作业何时运行 启动PDI客户端 Pentaho目录启动PDI客户端 启动Pentaho服务器 导航到安装PDI的文件夹 例如 pentaho
  • [Java]远程下载文件并读取实例方法

    简单的文件下载后读取显示 该方法可返回内容的结果集 一般适用于文本文档的下载 以供学习交流 远程下载文件并读取返回p param filePath 文件网络地址 如http www baidu com 1 txt return String
  • linux花生壳

    动态域名解析 花生壳 ddns dns dhcp 配置dhcp服务 在服务端 yum install dhcp y cp usr share doc dhcp 4 2 5 dhcpd conf example etc dhcp dhcpd
  • 【Unity编程】欧拉角与万向节死锁(图文版)

    Unity编程 欧拉角与万向节死锁 图文版 标签 unity万向节死锁欧拉角欧拉旋转 2017 03 11 17 08 5361人阅读 评论 4 收藏 举报 分类 Unity标准编程导引 13 版权声明 本文为博主原创文章 欢迎转载 请保留
  • 联宝盒子算法迁移

    直接把这个盒子的算法包 迁移到另一个新盒子 第一步 将算法库的第三方库 放置到该路径下 2 第二步运行 但是报错了 找不到库 如下图 但是文件夹该路径下有这个库 直接运行代码 报错如下 ImportError libopenblas so
  • 日期格式转换工具类(线程安全)

    import java text ParseException import java time import java time format DateTimeFormatter import java time temporal Chr
  • 国网DLT698.45协议——采集系统、数据交换(一)

    国网DLT698 45协议 采集系统 数据交换 面向对象协议 对于国网698协议 是一种面向对象的通信协议 用于远程监控和控制电力系统中的设备 面向对象使得对协议的思考更趋向于正常思维 使计算机中描述的抽象世界于现实世界中能够更好的对应起来
  • VirtualBox虚拟机安装64位Linux系统(Ubuntu)

    如果在VirtualBox中安装64位的Linux操作系统时提示如下错误 This kernel needs a x86 64 CPU but only detects an i386 CPU 解决方法如下 第一步 重启计算机 进入Bios
  • 基于ABB工业机器人工作站的设计———毕业设计

    基于ABB工业机器人搬运工作站的设计 通过RobotStudio软件来 模拟机器人灌装液体 混合液体并封装的过程 去年的毕业设计和毕业论文 还一些不了解的老师没见过 还说感觉很高级 感觉这个题目 目前还算是比较新 可以直接拿来用 还有一些关
  • 手机号码的正则表达式

    手机号码的正则表达式可以是这样的 13 0 9 14 5 7 15 0 3 5 9 17 0 3 5 8 18 0 9 166 198 199 147 d 8 这个正则表达式可以匹配大多数中国大陆的手机号码 包括 13 14 15 17 1
  • java.net.SocketException: Software caused connection abort: recv failed 异常分析

    关键字 recv failed java net SocketException Software caused connection abort recv failed at java net SocketInputStream sock
  • SMTP端口选择

    SMTP Port 25 465 587 or 2525 how to choose the right SMTP Port 原文地址 https pepipost com blog 25 465 587 2525 choose the r