zoukankan      html  css  js  c++  java
  • fatal: parameter inet_interfaces: no local interface found for ::1

    https://codinfox.github.io/dev/2015/04/08/postfix-cannot-start/

    Solution is straightforward:

    1. open /etc/postfix/main.cf
    2. comment out inet_interfaces: all
    3. 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]#

  • 相关阅读:
    如何利用InstallShield for Delphi7打包Oracle9i客户端制作C/S数据库应用程序?
    delphi 保存 和 打开 TREE VIEW的节点已经展开的状态
    在Delphi中的TreeView中保存多个数据
    FastReport经验
    农码一生博文索引
    再讲IQueryable<T>,揭开表达式树的神秘面纱
    你知道C#中的Lambda表达式的演化过程吗?
    先说IEnumerable,我们每天用的foreach你真的懂它吗?
    Linq表达式、Lambda表达式你更喜欢哪个?
    你必须知道的EF知识和经验
  • 原文地址:https://www.cnblogs.com/rsapaper/p/9520076.html
Copyright © 2011-2022 走看看