Re-installing broken postfix on CentOS Virtualmin server

1 post / 0 new
#1 Fri, 05/18/2012 - 19:20
yngens

Re-installing broken postfix on CentOS Virtualmin server

Because postfix did not work well with specific task (mail piping to php script) I had to give a try to reinstallation of postfix. Log is below. Unfortunately, now there is no errors in the log and when sending an e-mail to the box it doesn't bounce back with any error notice. Following instructions on http://www.virtualmin.com/node/17748 didn't help this time.

hostname returns my.mydomain.tld cat /etc/hosts returns:

127.0.0.1 localhost
65.49.80.106 my.mydomain.tld my
::1 localhost6.localdomain6 localhost6

Did reinstalling postfix totally brake it? Should I try to also re-install its dependecies, which were removed but apparently never installed back again:

fetchmail x86_64 6.3.6-4.el5 installed 1.3 M mdadm x86_64 2.6.9-3.el5 installed 1.9 M mutt x86_64 5:1.4.2.2-3.0.2.el5 installed 2.9 M redhat-lsb i386 4.0-2.1.4.el5 installed 21 k redhat-lsb x86_64 4.0-2.1.4.el5 installed 22 k

root@my:/root#
yum remove postfix
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.3.3-2.3.el5_6 set to be erased
--> Processing Dependency: /usr/sbin/sendmail for package: redhat-lsb
--> Processing Dependency: /usr/sbin/sendmail for package: redhat-lsb
--> Processing Dependency: smtpdaemon for package: fetchmail
--> Processing Dependency: smtpdaemon for package: mdadm
--> Processing Dependency: smtpdaemon for package: mutt
--> Running transaction check
---> Package fetchmail.x86_64 0:6.3.6-4.el5 set to be erased
---> Package mdadm.x86_64 0:2.6.9-3.el5 set to be erased
---> Package mutt.x86_64 5:1.4.2.2-3.0.2.el5 set to be erased
---> Package redhat-lsb.i386 0:4.0-2.1.4.el5 set to be erased
---> Package redhat-lsb.x86_64 0:4.0-2.1.4.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package          Arch        Version                    Repository      Size
================================================================================
Removing:
postfix          x86_64      2:2.3.3-2.3.el5_6          installed      8.3 M
Removing for dependencies:
fetchmail        x86_64      6.3.6-4.el5                installed      1.3 M
mdadm            x86_64      2.6.9-3.el5                installed      1.9 M
mutt            x86_64      5:1.4.2.2-3.0.2.el5        installed      2.9 M
redhat-lsb      i386        4.0-2.1.4.el5              installed        21 k
redhat-lsb      x86_64      4.0-2.1.4.el5              installed        22 k

Transaction Summary
================================================================================
Remove        6 Package(s)
Reinstall    0 Package(s)
Downgrade    0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : mdadm                                                    1/6

  Erasing        : redhat-lsb                                              2/6

  Erasing        : redhat-lsb                                              3/6

  Erasing        : mutt                                                    4/6

  Erasing        : fetchmail                                                5/6

  Erasing        : postfix                                                  6/6

warning: /usr/lib64/sasl2/smtpd.conf saved as
/usr/lib64/sasl2/smtpd.conf.rpmsave
warning: /etc/postfix/virtual saved as /etc/postfix/virtual.rpmsave
warning: /etc/postfix/master.cf saved as /etc/postfix/master.cf.rpmsave
warning: /etc/postfix/main.cf saved as /etc/postfix/main.cf.rpmsave

Removed:
  postfix.x86_64 2:2.3.3-2.3.el5_6                                           


Dependency Removed:
  fetchmail.x86_64 0:6.3.6-4.el5          mdadm.x86_64 0:2.6.9-3.el5         
  mutt.x86_64 5:1.4.2.2-3.0.2.el5        redhat-lsb.i386 0:4.0-2.1.4.el5     
  redhat-lsb.x86_64 0:4.0-2.1.4.el5     

Complete!


root@my:/root#
yum install postfix
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.sonic.net
* extras: centos.mirror.facebook.net
* updates: centos-distro.cavecreek.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.3.3-2.3.el5_6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package        Arch          Version                      Repository    Size
================================================================================
Installing:
postfix        x86_64        2:2.3.3-2.3.el5_6            base        3.7 M

Transaction Summary
================================================================================
Install      1 Package(s)
Upgrade      0 Package(s)

Total download size: 3.7 M
Is this ok [y/N]: y
Downloading Packages:
postfix-2.3.3-2.3.el5_6.x86_64.rpm                      | 3.7 MB    00:00   

Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing    : postfix                                                  1/1


Installed:
  postfix.x86_64 2:2.3.3-2.3.el5_6                                           


Complete!