源代码安装postfix

 一、下载postfix

download postfix from www.postfix.org

 

二、安装

# tar -xzvf postfix-2.6.5.tar.gz

# cd postfix-2.6.5

# make

出现错误

make -f Makefile.in MAKELEVEL= Makefiles

(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs)

 

>makedefs.tmp

No <db.h> include file found.

Install the appropriate db*-devel package first.

See the RELEASE_NOTES file for more information.

make: *** [Makefiles] Error 1

make: *** [Makefiles] Error 2

 

解决方法:安装 db*-devel

# rpm db4-devel-4.3.29-9.fc6.i386.rpm

 

# make

# make install

 

出现错误

Please specify the group for mail submission and for queue management

commands. Specify a group name with a numerical group ID that is

not shared with other accounts, not even with the Postfix mail_owner

account. You can no longer specify "no" here.

setgid_group: [postdrop]

postfix-install: Error: "postfix" needs an entry in the passwd file.

Remember, "postfix" needs a dedicated user and group id.

make: *** [install] Error 1

 

 

解决方法:

# groupadd -g 12345 postfix

# useradd -u 12345 -g postfix -s /sbin/nologin -d /dev/null postfix

# groupadd -g 54321 postdrop

 

三、简单修改配置文件

# vi  /etc/postfix/main.cf

myhostname = zy.cn

inet_interfaces = all

mynetworks = 10.226.70.0/24, 127.0.0.0/8

 

启动postfix ,即可进行简单的发信操作.

 

 

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页