邮件发送中的"server does not support secure connection."

 最近在修改公司的邮件发送系统。不熟悉C#,浏览代码以后,增加了通过SSL方式,GMAIL的smtp服务器需要SSL安全连接。

测试通过,可以发送邮件。

但是部署在备用机房服务器以后(windows server 2003),在发送的时候,报错,"server does not support secure connection."

通过telent直接访问smtp.gmail.com,显示220 *************,而不是正常的220 mx.google.com ESMTP 信息,

输入EHLO等命令,均报错, unrecognized command,无法识别的命令。感觉此时应该与防火墙相关,被阻止了。

google以后,发现有相关的内容。

http://www.5dmail.net/bbs/thread-4953-1-1.html

其中描述了相关的问题,有些防火墙(如CISCO PIX系列)缺省会禁止SMTP扩展命令(如:EHLO 和AUTH)通过。

赶紧联系相关人员,将防火墙中的设置进行了修改,测试邮件发送,没有问题了。

 

折腾了差不多2天。

 

2025-03-06T02:25:46.280842Z 0 [System] [MY-015015] [Server] MySQL Server - start. 2025-03-06T02:25:46.642135Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2025-03-06T02:25:46.642229Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 9.2.0) starting as process 1 2025-03-06T02:25:46.653470Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2025-03-06T02:25:48.847791Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2025-03-06T02:25:49.832026Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2025-03-06T02:25:49.832132Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2025-03-06T02:25:49.837389Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory. 2025-03-06T02:25:49.845372Z 0 [ERROR] [MY-000068] [Server] unknown option '--skip-character-set-client-handshake'. 2025-03-06T02:25:49.846357Z 0 [ERROR] [MY-010119] [Server] Aborting 2025-03-06T02:25:51.418607Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 9.2.0) MySQL Community Server - GPL. 2025-03-06T02:25:51.418687Z 0 [System] [MY-015016] [Server] MySQL Server - end. 这个是为什么?你看看我得配置文件对不对: [client] default-character-set=utf8mb4 [mysql] default-character-set=utf8mb4 [mysqld] # 设置东八区时区 default-time_zone = '+8:00' # 设置密码验证规则,default_authentication_plugin参数已被废弃 # 改为authentication_policy #default_authentication_plugin=mysql_native_password authentication_policy=mysql_native_password # 限制导入和导出的数据目录 # 为空,不限制导入到处的数据目录; # 指定目录,必须从该目录导入到处,且MySQL不会自动创建该目录; # 为NULL,禁止导入与导出功能 #secure_file_priv=/var/lib/mysql secure_file_priv= init_connect='SET collation_connection = utf8mb4_0900_ai_ci' init_connect='SET NAMES utf8mb4' character-set-server=utf8mb4 collation-server=utf8mb4_0900_ai_ci skip-character-set-client-handshake skip-name-resolve
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值