send-mail: fatal: parameter inet_interfaces: no local interface found for ::1
2016-02-22 17:07
771 查看
发送邮件:
[root@iZ23whn33jnZ log]# echo '这是邮件标题' | mail -s "这是邮件内容" 9379963xx@qq.com
出现异常:
[root@iZ23whn33jnZ log]# send-mail: fatal: parameter inet_interfaces: no local interface found for ::1
查看centos中的postfix日志
more /var/log/maillog
postfix: fatal: parameter inet_interfaces: no local interface found for ::1
vi /etc/postfix/main.cf
发现配置为:
inet_interfaces = localhost
inet_protocols = all
改成:
inet_interfaces = all
inet_protocols = all
重新启动
service postfix start
OK!
[root@iZ23whn33jnZ log]# echo '这是邮件标题' | mail -s "这是邮件内容" 9379963xx@qq.com
出现异常:
[root@iZ23whn33jnZ log]# send-mail: fatal: parameter inet_interfaces: no local interface found for ::1
查看centos中的postfix日志
more /var/log/maillog
postfix: fatal: parameter inet_interfaces: no local interface found for ::1
vi /etc/postfix/main.cf
发现配置为:
inet_interfaces = localhost
inet_protocols = all
改成:
inet_interfaces = all
inet_protocols = all
重新启动
service postfix start
OK!
相关文章推荐
- lumen配置日志daily模式
- Play with Chain hdu 3487(伸展树翻转+删子树添子树)
- Factorial Trailing Zeroes
- Cairo教程
- 【SPOJ-ALIEN2】Aliens at the train, again!【DP】
- Smail学习笔录
- crontab任务运行报错:Crontab FailureEmails - /bin/sh: 1 : ambiguous redirect
- ORA-00054: 资源正忙, 但指定以 NOWAIT 方式获取资源, 或者超时失效
- Fastdfs 关于file: shared_func.c, line: 994, malloc 1 bytes fail问题的解决
- linker command failed with exit code 1 (use -v to see invocation)
- 【SPOJ-BALLSAG】Ball Stacking Again【DP】
- 关于 hot code replace fail 问题 .
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
- 进程同步,条件变量,pthread_cond_wait,pthread_cond_init,PTHREAD_COND_INITIALIZER
- 邮件中继成畅邮标配 U-Mail为何领先
- CodeForces615B-Longtail Hedgehog-dp/图
- 小紫书 4-4 UVA 253 Cube painting
- l 4000 inux下命令行 mail 发邮件方法
- AIDL的全称是什么?如何工作?
- [NSBundle mainBundle] 详解