linux命令 测试连接邮件服务器
telnet命令测试邮件服务器连通性
telnet mailaws.swiretest.com 25
helo mailaws.swiretest.com
mail from:<test@test.com>#发件账户
rcpt to:<test@test.com>#收件账户
data
必须一次输入正确,没有回退机会
每输入一行都应该提示
200 OK
说明服务器和邮件服务器之间网络连通性没问题
…
记录-交流-Web开发知识分享
telnet命令测试邮件服务器连通性
telnet mailaws.swiretest.com 25
helo mailaws.swiretest.com
mail from:<test@test.com>#发件账户
rcpt to:<test@test.com>#收件账户
data
必须一次输入正确,没有回退机会
每输入一行都应该提示
200 OK
说明服务器和邮件服务器之间网络连通性没问题
…
If you have configured Sendmail on your Linux system and are still unable to send emails because of a unqualified hostname
error, we have a few suggestions that you can use to try and remedy the issue.
In this tutorial …
如何在ubuntu中安装配置sendmail,以实现发邮件发送(还可在php中发送,也可发匿名邮件)
sudo apt install sendmail
sudo vim /etc/hosts
修改后如下:
127.0.0.1 localhost.localdomain localhost lenix-Swift-SF314-512
127.0.1.1 lenix-Swift-SF314-512
cd /etc/mail
sudo vim sendmail.mc
找到以下2行:
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
在前面加dnl
代表注释掉这2行,以使能够进行外网访问 .
修改后如下:
dnl DAEMON_OPTIONS(`Family=inet,
…
近期评论