Install sendmailanalyzer to analyze postfix logs

1. Get the source file
2. build it on CentOS to an RPM file
3. fail! why?
4. resolve it via:

echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

5. continue build it:

cd rpmbuild/SPECS/
rpmbuild -bb sendmailxxx.spec
yum localinstall --nogpgcheck sendmailxxx.rpm

Refer: https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

#centos #postfix #rpm

Advertisements