发送邮件时,报postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by

Linux6.5发送邮件时,异常postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by

报错信息:

sendmail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol

App 12838 stdout: sendmail: warning: inet_protocols: configuring for IPv4 support only

App 12838 stdout: postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol

App 12838 stdout: postdrop: warning: inet_protocols: configuring for IPv4 support only

App 12838 stdout: postdrop: warning: unable to look up public/pickup: No such file or directory

App 12731 stderr:   Rendered mails/mail_successed.html.erb within layouts/mails (0.5ms)

App 12731 stderr:   Rendered common/_top.html.erb (1.5ms)

App 12731 stderr:   Rendered common/_mail_manage.html.erb (0.9ms)

App 12731 stderr:   Rendered common/_footer.html.erb (0.1ms)

解决方法:

(1)修改#  /etc/postfix/main.cf 这个文件

(2)修改内容: 把inet_protocols = all   修改为inet_protocols = ipv4

(3)报存退出 wq!

(4)重新启动# /etc/init.d/postfix restart使修改生效

(5)OK

参考文章:http://blog.hexu.org/archives/1702.shtml

时间: 2024-12-05 23:25:06

发送邮件时,报postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by的相关文章

inux : inet_protocols: IPv6 support is disabled: Address family not supported by protocol

在sendmail,命令发送邮件时提示 inux : inet_protocols: IPv6 support is disabled: Address family not supported by protocol vim /etc/postfix/main.cf inet_protocols = all --改为->inet_protocols = ipv4 service postfix restar 1. Edit the main Postfix configuration : Co

msf 启动报[-] * WARNING: No database support: No database YAML file解决方法

在启动msf是遇到以下问题! [-] * WARNING: No database support: No database YAML file 这是由于postgresql 未进行postgresql 的初始化配置,所以报错没有这个数据库. 解决问题 启动 msf ,初始化数据库配置信息. 利用命令 msfdb init 进行数据初始化配置 [*]也许你会遇到以下错误 如果你是一root运行的msf ,就不会出现这种问题 当你输入msfdb init 不出意外就会出现下图.那么证明你已经成功解

关于报错:Warning: Cannot modify header information - headers already sent by (output started at

8月5日,第一个项目即将完成,测试时,发现登录功能会出现小问题:记住密码的时候会报错 Warning: Cannot modify header information - headers already sent by (output started at 经过再三在百度上查询,终于查到错误的关键原因:[setcookie之前不可以有html标签内容].导致出现这种错误的方式有很多种,但惟独这种解释最让我理解. (因为百度知道的内容不可以复制了,只能贴出地址,有详细解释)地址[http://z

java发送邮件时遇到的坑

之前用163邮箱发邮件时明明是成功的,但是使用中国移动自己的邮箱时,无论如何在linux服务器中都发送不成功,一开始报如下错误: javax.mail.MessagingException: Unknown SMTP host: mail.chinamobilesz.com at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1959) ~ [mail-1.4.7.jar:1.4.7] at com.sun.mail.

windows10下git报错warning: LF will be replaced by CRLF in readme.txt. The file will have its original line endings in your working directory.

window10下使用git时 报错如下: $ git add readme.txtwarning: LF will be replaced by CRLF in readme.txt.The file will have its original line endings in your working directory. 意思大概是:LF(换行,Line Feed)将会被CRLF(回车换行,CarriageReturn)替代. 该文件将在工作目录中具有其原始行尾. 报这个警告时是由于文件夹

使用django发送邮件时的连接超时问题解决

一.报错 研究报错半天,没看出代码有什么毛病,就是发送邮件时连接超时,发送邮件的连接用户名密码都没有错误,于是就网上各种查... 终于皇天不负有心人,找到答案了.. 在服务器上输入telnet smtp.mxhichina.com 25,果然跟上述结果不一样,是这样的:Trying 205.204.101.152..., 于是,网上查找资料,端口号25时禁用的,如果你发的邮件时安全连接就用465端口号,否则80就可以了! 原文地址:https://www.cnblogs.com/zhangnin

.Net使用163smtp发送邮件时错误:邮箱不可用. has no permission解决方法

C#实现简单邮件发送代码如下 public static void SendAsync(string emailTo, string subject, string mailBody) { var msg = new MailMessage(); msg.To.Add(emailTo); // msg.From = new MailAddress(_userNameForEmail, "显示的发件人名称", System.Text.Encoding.UTF8); msg.Subject

命令行连接mysql服务器时 报Can't connect to local MySQL server through socket 'xxx.sock'错误

本来之前用的好好的mysql服务器,突然就报Can't connect to local MySQL server through socket 'xxx.sock'错误了 遇到该问题思路首先是:检查 my.cnf 中 socket 配置的路径及权限. 但是查看完 没发现路劲权限有问题,最后跑去另一台同时配置的服务器上看  发现/data/perconadata有一个/mnt/perconadata/mysql.sock的软连接 于是乎到问题机器上 cd /data/perconadata/ s

oc调用c++接口时 报错 Undefined symbols for architecture i386:

当在oc中调用c++中的方法时,发现说c++中的方法没定义或是找不到 Undefined symbols for architecture i386: "_desTYData", referenced from:-[TuYoo encryptParametersWithDict:] in libtuyoo.a(TuYoo.o)ld: symbol(s) not found fo 记得c++中的方法定义是要这样定义的 extern"C" { const char *d