fatal: parameter inet_interfaces: no local interface found for ::1
https://codinfox.github.io/dev/2015/04/08/postfix-cannot-start/
Solution is straightforward:
- open
/etc/postfix/main.cf
- comment out
inet_interfaces: all
- add
inet_protocol: ipv4
[root@test logs]# vim /usr/sbin/postconf
[root@test logs]# vim /etc/postfix/main.cf
[root@test logs]# systemctl status postfix.service
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-08-22 20:00:52 CST; 3min 1s ago
Aug 22 20:00:50 test systemd[1]: Starting Postfix Mail Transport Agent...
Aug 22 20:00:50 test aliasesdb[5051]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Aug 22 20:00:51 test aliasesdb[5051]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Aug 22 20:00:51 test postfix/sendmail[5054]: fatal: parameter inet_interfaces: no local interface found for ::1
Aug 22 20:00:51 test postfix[5059]: fatal: parameter inet_interfaces: no local interface found for ::1
Aug 22 20:00:52 test systemd[1]: postfix.service: control process exited, code=exited status=1
Aug 22 20:00:52 test systemd[1]: Failed to start Postfix Mail Transport Agent.
Aug 22 20:00:52 test systemd[1]: Unit postfix.service entered failed state.
Aug 22 20:00:52 test systemd[1]: postfix.service failed.
[root@test logs]# systemctl stop postfix
[root@test logs]# systemctl start postfix
[root@test logs]# systemctl status postfix.service
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-08-22 20:04:09 CST; 5s ago
Process: 5496 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
Process: 5493 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
Process: 5486 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
Main PID: 5569 (master)
CGroup: /system.slice/postfix.service
├─5569 /usr/libexec/postfix/master -w
├─5570 pickup -l -t unix -u
└─5571 qmgr -l -t unix -u
Aug 22 20:04:08 test systemd[1]: Starting Postfix Mail Transport Agent...
Aug 22 20:04:09 test postfix/postfix-script[5567]: starting the Postfix mail system
Aug 22 20:04:09 test postfix/master[5569]: daemon started -- version 2.10.1, configuration /etc/postfix
Aug 22 20:04:09 test systemd[1]: Started Postfix Mail Transport Agent.
[root@test logs]#
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
2016-08-22 Indexes (also called “keys” in MySQL)