Error coming while starting Postfix !

15 views
Skip to first unread message

AVNISH GUPTA

unread,
Feb 2, 2012, 3:34:30 AM2/2/12
to redhathcl...@googlegroups.com, Ruchir Gaur, OmPrakash Kumar, kshithish Krishnan, Jitender Malhan
Hi Friends
 
I installed Postfix on my RHEL 5 VM and configured it. But I am getting error while starting it.

[root@avnish postfix]# service postfix start
Starting postfix:                                          [FAILED]
[root@avnish postfix]# 


[root@avnish postfix]# postfix check
postfix: fatal: chdir(/usr/libexec/postfix mail_owner = root myhostname = avnish.ericsson.com): No such file or directory
[root@avnish postfix]# 


[root@avnish postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix mail_owner = root myhostname = avnish.ericsson.com
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
[root@avnish postfix]# 

The directory - /usr/libexec/postfix exists.

[root@avnish ~]# ls -ld /usr/libexec/postfix
drwxr-xr-x 2 root root 4096 Feb  2 11:50 /usr/libexec/postfix
[root@avnish ~]# 

Here are the logs from /var/log/maillog:

[root@avnish ~]# tail -f /var/log/maillog
Feb  2 11:59:33 avnish postfix[2190]: fatal: chdir(/usr/libexec/postfix mail_owner = root myhostname = avnish.ericsson.com): No such file or directory
Feb  2 12:00:49 avnish postfix[2807]: fatal: chdir(/usr/libexec/postfix mail_owner = root myhostname = avnish.ericsson.com): No such file or directory
Feb  2 12:01:22 avnish postfix[2817]: fatal: chdir(/usr/libexec/postfix mail_owner = root myhostname = avnish.ericsson.com): No such file or directory

Here are the settings on my machine:

[root@avnish ~]# hostname
avnish.ericsson.com
[root@avnish ~]# 
[root@avnish ~]# ifconfig | grep inet
          inet addr:147.128.225.92  Bcast:147.128.225.255  Mask:255.255.254.0
          inet6 addr: fe80::a00:27ff:fe95:794d/64 Scope:Link
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
[root@avnish ~]# 
[root@avnish ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1      avnish.ericsson.com     avnish  localhost.localdomain   localhost
::1     localhost6.localdomain6 localhost6
147.128.225.92  avnish.ericsson.com
#147.128.225.92  virtualhost.com
#147.128.225.92  virtualhost3.com
147.128.225.93  virtualsite1.com
147.128.225.93  virtualsite2.com
147.128.225.93  virtualsite3.com
147.128.225.93  virtualsite4.com
147.128.224.160 avnish.niit.com
[root@avnish ~]# 

This error starts coming after I made changes to configuration file - main.cf. I changed few settings in this file like mail_owner, myhostname,  inet_interfaces.

Please let me know how to get rid of this error and getting Postfix started successfully.

Thanks in advance
Avnish
 


Reply all
Reply to author
Forward
0 new messages