Swimminginthought

A place for all things technical and my mind..

Menu
  • About Me / Hire Me
Menu

Updating Postfix on CentOS 5

Posted on August 25, 2008 by Percy Kwong

Well, I decided today would be a good day to update the mailserver so I decided to do a yum -y all.  Needless to say, it went well.. but dumbass me didn’t bother to check the mailserver.

So.. needless to say, all day, I had my mailserver down due to the fact that the postfix update doesn’t include the mysql option enabled..

So.. to get it all working again, I did the following…

1) Download the source RPM from a CentOS 5 mirror
2) rpm -i postfix-2.3.3-2.src.rpm # Install the Source RPM
3) cd /usr/src/redhat/SPECS
4) Edit postfix.spec and change “%define MYSQL 0″ to %define MYSQL 1”
5) yum install pcre-devel mysql-devel # If you do not have these already
6) rpmbuild -ba postfix.spec # Ignore warnings
7) cd /usr/src/redhat/RPMS
8) If you have the regular postfix rpm installed, uninstall it via rpm -e postfix
8) rpm -i postfix-2.3.3-2.i386.rpm

now.. don’t forget to rename the .rpmsave files back to their original and do a postfix reload afterwards.  Otherwise, you’ll be feeling the pain like i did.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs
  • Resurrection of the Blog
  • Encryption type Matters with Deep Packet Inspection – solved
  • Completely off topic.. Just a personal note.
©2023 Swimminginthought | Built using WordPress and Responsive Blogily theme by Superb