본문 바로가기
CentOS

postfix 실행 에러

by freesunny 2018. 4. 13.

postfix 실행이 되지 않아서 systemctl 을 통해 확인을 해보았다.


상태 확인


[root@server ~]# systemctl start postfix.service

Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.


[root@server ~]# 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 Fri 2018-04-13 14:39:14 KST; 10s ago

  Process: 12901 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)

  Process: 12898 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)

  Process: 12893 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)


Apr 13 14:39:12 server systemd[1]: Starting Postfix Mail Transport Agent...

Apr 13 14:39:12 server aliasesdb[12893]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1

Apr 13 14:39:13 server aliasesdb[12893]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1

Apr 13 14:39:13 server postfix[12901]: fatal: parameter inet_interfaces: no local interface found for ::1

Apr 13 14:39:14 server systemd[1]: postfix.service: control process exited, code=exited status=1

Apr 13 14:39:14 server systemd[1]: Failed to start Postfix Mail Transport Agent.

Apr 13 14:39:14 server systemd[1]: Unit postfix.service entered failed state.

Apr 13 14:39:14 server systemd[1]: postfix.service failed.



설정파일에 문제가 없는지 확인


[root@office_zabbix postfix]# postfix check

postfix: fatal: parameter inet_interfaces: no local interface found for ::1


::1은 IPv6에서 사용하는 loopback 인터페이스 주소로 IPv4에서는 127.0.0.1을 사용하며, 서버에서 IPv6를 사용하지 않으므로 hosts 파일의 해당부분을 주석처리를 하였습니다.


[root@server ~]# vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


설정에 문제가 없는지 확인

[root@server ~]# postfix check
[root@server ~]#


서비스 시작

[root@server ~]# systemctl start postfix.service
[root@server ~]#


서비스 상태 확인

[root@server ~]# 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 Fri 2018-04-13 15:13:19 KST; 9s ago
  Process: 5233 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 5261 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 5258 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 5255 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
 Main PID: 5333 (master)
   CGroup: /system.slice/postfix.service
           ├─5333 /usr/libexec/postfix/master -w
           ├─5334 pickup -l -t unix -u
           └─5335 qmgr -l -t unix -u

Apr 13 15:13:18 server systemd[1]: Starting Postfix Mail Transport Agent...
Apr 13 15:13:19 server postfix/postfix-script[5331]: starting the Postfix mail system
Apr 13 15:13:19 server postfix/master[5333]: daemon started -- version 2.10.1, configuration /etc/postfix
Apr 13 15:13:19 server systemd[1]: Started Postfix Mail Transport Agent.
[root@server ~]#


'CentOS' 카테고리의 다른 글

NFS 서버 설치  (0) 2018.04.16
NIC UUID 확인  (0) 2018.04.05
채널 본딩  (0) 2018.04.04