Google
 

« apacheベンチマーク | メイン | postfixadmin2 »

2009年03月06日

●postfixadmin

postfixadmin

wget http://ftp.riken.jp/Linux/centos/5.2/os/SRPMS/postfix-2.3.3-2.src.rpm
mkdir -p /usr/src/redhat/SOURCES
rpm -ihv postfix-2.3.3-2.src.rpm

cd /usr/src/redhat/SOURCES
wget http://vda.sourceforge.net/VDA/postfix-2.3.3-vda.patch.gz
gunzip postfix-2.3.3-vda.patch.gz

cd /usr/src/redhat/SPECS/
cp postfix.spec postfix.spec.org
vi postfix.spec

【変更】
-%define MYSQL 0
+%define MYSQL 1

【追加】
Patch9: postfix-2.2.5-cyrus.patch
+Patch10: postfix-2.3.3-vda.patch

%patch9 -p1 -b .cyrus
+%patch10 -p1 -b .vda

rpmbuild -ba postfix.spec
rpm -Uhv /usr/src/redhat/RPMS/i386/postfix-2.3.3-2.i386.rpm

vi /etc/yum.conf

exclude=kernel* postfix*

alternatives --config mta

SELECT host,user,password FROM mysql.user;
DELETE FROM mysql.user WHERE user="";
SELECT host,user,password FROM mysql.user;
CREATE DATABASE postfix;
CREATE USER 'postfix'@'localhost' IDENTIFIED BY '';
GRANT ALL PRIVILEGES ON `postfix` . * TO 'postfix'@'localhost';

トラックバックURL

このエントリーのトラックバックURL:
http://www.fatcat-hosting.net/mt-tb.cgi/157