在CentOS5.2安装基于postfix,Extmail的全功能邮件系统(一)

该文档参考 http://www.extmail.org/docs/extmail_solution_linux/ 制作而成。

ExtMail Solution 是一个基于优秀开源软件的电子邮件系统解决方案,核心部件包括了Postfix, Amavisd-new, ClamAV, ExtMail 和ExtMan, Courier系列软件。是一个功能相对比较齐全的免费电子邮件系统。以下是其主要的特性列表:

  • 支持SMTP/POP3/HTTP协议
  • 支持SMTP认证及ESMTP
  • 可支持大容量邮箱(大于1GB)
  • 高速Web界面访问邮箱
  • 完整的Web管理后台
  • 在线服务端病毒过滤
  • 内建内容过滤
  • SMTP行为识别垃圾邮件
  • 支持大量反垃圾邮件技术
  • 图形化邮件日志分析
  • 支持别名/多域/域管理员等
  • 支持网络磁盘/POP3邮件
  • 支持读/写HTML格式邮件
  • 支持定制模板及多语言

软件包

安装方式

Postfix

编译制作RPM

MySQL

系统自带

Maildrop

编译制作RPM

Courier-IMAP

编译制作RPM

ExtMail

源码包

ExtMan

源码包

ClamAV

下载RPM

Spam Locker

源码包

Amavisd-new

源码包

SpamAssassin

系统光盘自带

Cyrus SASL

系统自带

Courier Authlib

编译制作RPM

Apache

系统自带

操作系统安装的组件

EditorsWebServerFTPserverMysqllibdbi-dbd-mysqlmysql-serverperl-DBD-MySQL

如果在安装系统的时候没有安装某些包,在接下来安装邮件系统的时候根据提示安装上就行了。

1 安装配置postfix

1.1 制作RPM安装包

下载最新的源码包,http://ftp.wl0.org/official/2.5/SRPMS/ 目前是postfix-2.5.6-1.src.rpm

rpm -ivh postfix-2.5.6-1.src.rpm

使用该命令就把源代码安装到/usr/src/redhat/SOURCESpostfix.spec安装到了/usr/src/redhat/SPECS

cd /usr/src/redhat/SPECS

vi postfix.spec

找到

%define with_cdb 0

%define with_ldap 1

%define with_mysql 0

%define with_mysql_redhat 0

%define with_pcre 0

%define with_pgsql 0

%define with_sasl 0

%define with_spf 0

%define with_dovecot 0

%define with_tls 1

%define with_tlsfix 2

%define with_vda 0

调整成:

%define with_cdb 0

%define with_ldap 0

%define with_mysql 0

%define with_mysql_redhat 1

%define with_pcre 0

%define with_pgsql 0

%define with_sasl 2

%define with_spf 0

%define with_dovecot 1

%define with_tls 1

%define with_tlsfix 2

%define with_vda 0

rpmbuild -ba postfix.spec

开始编译制作postfixrpm

完成之后,在/usr/src/redhat/RPMS/i386就能看到我们需要的RPM安装包。

1.2 安装postfix

在安装postfix-2.5.6-1.rhel5.i386.rpm之前,需要先把系统自带的senmail卸载掉。

rpm -e –nodeps sendmail

开始安装postfix

rpm -ivh postfix-2.5.6-1.rhel5.i386.rpm

1.3 配置postfix

简化postfix配置:

postconf -n > /etc/postfix/main2.cf

mv /etc/postfix/main.cf /etc/postfix/main.cf.old

mv /etc/postfix/main2.cf /etc/postfix/main.cf

再编辑main.cf

vi /etc/postfix/main.cf
增加如下内容:

# hostname

mynetworks = 127.0.0.1

myhostname = mail.onecheng.com

mydestination = $mynetworks $myhostname

# banner

mail_name = Postfix – by onecheng.com

smtpd_banner = $myhostname ESMTP $mail_name

# response immediately

smtpd_error_sleep_time = 0s

unknown_local_recipient_reject_code = 450

# extmail config here

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf

virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf

virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

virtual_transport = maildrop:

编辑mysql_virtual_alias_maps.cf

vi /etc/postfix/mysql_virtual_alias_maps.cf
内容如下:

user = extmail

password = extmail

hosts = localhost

dbname = extmail

table = alias

select_field = goto

where_field = address

编辑mysql_virtual_domains_maps.cf

vi /etc/postfix/mysql_virtual_domains_maps.cf

内容如下:

user = extmail

password = extmail

hosts = localhost

dbname = extmail

table = domain

select_field = description

where_field = domain

#additional_conditions = and backupmx =’0′ and active =’1′

编辑mysql_virtual_mailbox_maps.cf

vi /etc/postfix/mysql_virtual_mailbox_maps.cf

内容如下:

user = extmail

password = extmail

hosts = localhost

dbname = extmail

table = mailbox

select_field = maildir

where_field = username

#additional_conditions = and active = ‘1′

启动postfix

service postfix start

2 安装配置Courier-Authlib

2.1 制作RPM安装包

下载最新的源码包,http://www.courier-mta.org/download.php 目前是courier-authlib-0.62.2.tar.bz2

解压

tar jxvf courier-authlib-0.62.2.tar.bz2

cd courier-authlib-0.62.2

会看到有个courier-authlib.spec文件,把这个文件复制到/usr/src/redhat/SPECS/

cp courier-authlib.spec /usr/src/redhat/SPECS/

然后再把源码包复制到/usr/src/redhat/SOURCES/

cd ..

cp courier-authlib-0.62.2.tar.bz2 /usr/src/redhat/SOURCES/

cd /usr/src/redhat/SPECS/

vi courier-authlib.spec

找到

BuildRequires: openldap-devel

BuildRequires: postgresql-devel

由于不需要openldappostgresql的支持,把这两项注释掉。

开始编译

rpmbuild -ba courier-authlib.spec

如果提示说缺少某个包,安装上就行了。

完成之后,在/usr/src/redhat/RPMS/i386会看到几个courier-authlibRPM包,我们只需要安装其中的三个。

2.2 安装courier-authlib

rpm -ivh courier-authlib-0.62.2-1.i386.rpm

rpm -ivh courier-authlib-devel-0.62.2-1.i386.rpm

rpm -ivh courier-authlib-mysql-0.62.2-1.i386.rpm

2.3 配置courier-authlib

首先把配置文件做个备份

cp /etc/authlib/authmysqlrc /etc/authlib/authmysqlrc.bak

vi /etc/authlib/authmysqlrc

清空其中的内容并添加以下内容

MYSQL_SERVER localhost

MYSQL_USERNAME extmail

MYSQL_PASSWORD extmail

MYSQL_SOCKET /var/lib/mysql/mysql.sock

MYSQL_PORT 3306

MYSQL_OPT 0

MYSQL_DATABASE extmail

MYSQL_USER_TABLE mailbox

MYSQL_CRYPT_PWFIELD password

MYSQL_UID_FIELD uidnumber

MYSQL_GID_FIELD gidnumber

MYSQL_LOGIN_FIELD username

MYSQL_HOME_FIELD homedir

MYSQL_NAME_FIELD name

MYSQL_MAILDIR_FIELD maildir

MYSQL_QUOTA_FIELD quota

MYSQL_SELECT_CLAUSE SELECT username,password,"",uidnumber,gidnumber,\

CONCAT(‘/home/domains/’,homedir), \

CONCAT(‘/home/domains/’,maildir), \

quota, \

name \

FROM mailbox \

WHERE username = ‘$(local_part)@$(domain)’

存盘退出后启动courier-authlib

service courier-authlib start

如一切正常,命令行将返回如下信息:

Starting Courier authentication services: authdaemond

修改authdaemon socket目录权限
如果该目录权限不正确修改,maildroppostfix等将无法正确获取用户的信息及密码认证:

chmod 755 /var/spool/authdaemon/

2.4 配置authlibdaemon

cd /etc/authlib/

mv authdaemonrc authdaemonrc.bak

vim authdaemonrc

输入下面的内容:

authmodulelist="authmysql"

authmodulelistorig="authmysql"

daemons=10

authdaemonvar=/var/spool/authdaemon

DEBUG_LOGIN=2

DEFAULTOPTIONS="wbnodsn=1"

LOGGEROPTS=""

3 安装配置maildrop

3.1 制作RPM安装包

下载最新的源码包,http://www.courier-mta.org/download.php 目前是maildrop-2.0.4.tar.bz2

解压

tar jxvf maildrop-2.0.4.tar.bz2

cd maildrop-2.0.4

cp maildrop.spec /usr/src/redhat/SPECS/

cd ..

cp maildrop-2.0.4.tar.bz2 /usr/src/redhat/SOURCES/

cd /usr/src/redhat/SPECS/

vi maildrop.spec

找到BuildRequires: /usr/include/fam.h gdbm-devel pcre-devel

调整为:BuildRequires: gdbm-devel pcre-devel

找到

%configure –with-devel –enable-userdb –enable-maildirquota –enable-syslog=1 –enable-trusted-users=’root mail daemon postmaster qmaild mmdf’ –enable-restrict-trusted=0 –enable-sendmail=/usr/sbin/sendmail

改成:

%configure –with-devel –enable-userdb –enable-maildirquota –enable-syslog=1 –enable-trusted-users=’root mail daemon postmaster qmaild mmdf’ –enable-restrict-trusted=0 –enable-sendmail=/usr/sbin/sendmail –enable-authlib

开始编译

rpmbuild -ba maildrop.spec

如果报错说没有安装pcre-devel,需要先使用该命令把pcre-devel安装上yum install pcre-devel

安装上之后再开始编译

3.2 开始安装

完成之后在/usr/src/redhat/RPMS/i386会看到有几个maildroprpm包,我们只安装其中的三个

rpm -ivh maildrop-2.0.4-1.i386.rpm

rpm -ivh maildrop-devel-2.0.4-1.i386.rpm

rpm -ivh maildrop-man-2.0.4-1.i386.rpm

3.3 配置

为了使Postfix支持Maildrop,必须修改/etc/postfix/master.cf文件,注释掉原来的maildrop的配置内容,并改为:

maildrop unix - n n - - pipe

flags=DRhu user=vuser argv=maildrop -w 90 -d ${user}@${nexthop} ${recipient} ${user} ${extension} {nexthop}

配置main.cf

由于maildrop不支持一次接收多个收件人,因此必须在main.cf里增加如下参数:

vi /etc/postfix/main.cf

maildrop_destination_recipient_limit = 1

修改好之后需要重新启动postfix才能生效

添加用户和用户组

groupadd -g 1000 vgroup

useradd -g vgroup -u 1000 -M -s /sbin/nologin vuser

4 配置Apache

编辑httpd.conf

vi /etc/httpd/conf/httpd.conf

屏蔽掉AddDefaultCharsetDocumentRoot

#AddDefaultCharset UTF-8

#DocumentRoot "/var/www/html"

使apache开机默认启动:

chkconfig httpd on

4.1 虚拟主机设置

编辑/etc/httpd/conf/httpd.conf文件,在最后一行加上:

NameVirtualHost *:80

Include conf/vhost_*.conf

编辑/etc/httpd/conf/vhost_extmail.conf,里面定义虚拟主机的相关内容,包括主目录,以及ExtMailExtMan的相关配置,Suexec的设置等。

# VirtualHost for ExtMail Solution

<VirtualHost *:80>

ServerName mail.onecheng.com

DocumentRoot /var/www/extsuite/extmail/html/

ScriptAlias /extmail/cgi/ /var/www/extsuite/extmail/cgi/

Alias /extmail/ /var/www/extsuite/extmail/html/

ScriptAlias /extman/cgi/ /var/www/extsuite/extman/cgi/

Alias /extman/ /var/www/extsuite/extman/html/

# Suexec config

SuexecUserGroup vuser vgroup

</VirtualHost>

重新启动apache:

service httpd restart

注意:此时重新启动apache会产生以下警告信息,可不必理会

Starting httpd: Warning: DocumentRoot [/var/www/extsuite/extmail/html/] does not exist

5 安装ExtMail

5.1 安装

下载最新的ExtMail的源码包,http://www.extmail.org/cgi-bin/download.cgi 目前是extmail-1.0.5.tar.gz

解压

tar zxvf extmail-1.0.5.tar.gz

mkdir /var/www/extsuite

cp -r extmail-1.0.5 /var/www/extsuite/extmail

cd /var/www/extsuite/extmail

cp webmail.cf.default webmail.cf

5.2 安装需要的RPM

ExtMail需要perl-Unix-Syslog的支持,需要在网上下载

rpm -ivh perl-Unix-Syslog-1.1-1.el5.pp.i386.rpm

5.3 配置

编辑webmail.cf

修改/var/www/extsuite/extmail/webmail.cf里的其他参数,主要变动的内容见下:

SYS_USER_LANG = zh_CN

SYS_USER_CHARSET = gb2312

SYS_MFILTER_ON = 1

SYS_NETDISK_ON = 1

SYS_SHOW_SIGNUP = 1

SYS_MYSQL_USER = extmail

SYS_MYSQL_PASS = extmail

SYS_MYSQL_DB = extmail

SYS_G_ABOOK_TYPE = file

SYS_G_ABOOK_FILE_CHARSET = gb2312

其中SYS_MFILTER_ONSYS_NETDISK_ON 设置为1是为了打开网络磁盘和过滤器;SYS_SHOW_SIGNUP控制首页是否显示免费注册邮箱按钮;全局地址本默认为ldap格式,现在也改为文本格式,并将地址本的转换编码改为GB2312

更新cgi目录权限

由于SuEXEC的需要,必须将extmailcgi目录修改成vuser:vgroup权限:

chown -R vuser:vgroup /var/www/extsuite/extmail/cgi/

6 安装配置ExtMan – web后台

6.1 安装

下载最新的Extman最新源码,http://www.extmail.org/cgi-bin/download.cgi 目前是extman-0.2.5.tar.gz

解压

tar zxvf extman-0.2.5.tar.gz

cp -r extman-0.2.5 /var/www/extsuite/extman

6.2 配置

配置webman.cf

修改/var/www/extsuite/extman/webman.cfSYS_CHARSETSYS_LANG参数为:

SYS_CAPTCHA_ON = 1

# SYS_CAPTCHA_ON参数控制首页是否采用校验码登陆

SYS_LANG = zh_CN

其他参数基本上可以使用默认值。

更新cgi目录权限

由于SuEXEC的需要,必须将extmancgi目录修改成vuser:vgroup权限:

chown -R vuser:vgroup /var/www/extsuite/extman/cgi/

6.3 安装需要的RPM

Extman需要perl-GD软件包,需要在网上下载。

rpm -ivh perl-GD-2.41-2.el5.rf.i386.rpm

6.4 初始化Mysql数据库

启动Mysql

service mysqld start

修改mysqlroot密码

/usr/bin/mysqladmin -u root password 密码

根据自己的需要修改初始化数据

vi /var/www/extsuite/extman/docs/init.sql

导入初始化数据

mysql -u root -p < /var/www/extsuite/extman/docs/extmail.sql

mysql -u root -p < /var/www/extsuite/extman/docs/init.sql

导入的时候输入前面设置的密码就可以了。

建立临时文件夹:

mkdir /tmp/extman

chown -R vuser:vgroup /tmp/extman

建立刚才导入mysqlpostmaster@onecheng.com帐户的Maildir(这里要根据你调整的初始化数据而定)

cd /var/www/extsuite/extman/tools

./maildirmake.pl /home/domains/onecheng.com/postmaster/Maildir

chown -R vuser:vgroup /home/domains

由于RedHat发行版中包含了一个叫tmpwatch的工具,该工具会定期扫描/tmp/下的文件,如果这些文件很久都没被使用,将被删除,因此 如果后台长期不使用,/tmp/extman目录有可能被tmpwatch删除,所以要么定期登陆后台,要么修改 webman.cf将临时目录修改到另一个地方。此处暂以/tmp/extman默认值为例。

上述导入初始化SQL时,默认的uidnumber/gidnumber都是1000,这和vuser:vgroup uid/gid一致,是因为maildrop投递时会从数据库里取uidnumber/gidnumber,而在master.cf里已经定义好了投递 时的运行身份(vuser:vgroup),所以这两个字段的内容必须为1000,否则将出现投递错误,例如报0×06等错误。

6.5 测试authlib

在命令行下执行:

/usr/sbin/authtest -s login postmaster@onecheng.com extmail

Authentication succeeded.

Authenticated: postmaster@onecheng.com (uid 1000, gid 1000)

Home Directory: /home/domains/onecheng.com/postmaster

Maildir: /home/domains/onecheng.com/postmaster/Maildir/

Quota: 104857600S

Encrypted Password: $1$phz1mRrj$3ok6BjeaoJYWDBsEPZb5C0

Cleartext Password: extmail

Options: (none)

这样表明ExtMan的正确安装,数据库也正确导入,courier-authlib能正确连接到mysql数据库


6.6 配置Mailgraph_ext


ExtMan 0.14-pre2 开始,系统集成了Mailgraph_ext插件,该插件使extman具备图形化显示邮件日志的能力。mailgraph_ext融合了 mailgraphqueuegraph两个软件包,除增加了更多的日志分析及图形显示能力外,还重写了web模块,集成到ExtMan后台里,这样邮 件日志将只能给经过授权的用户查看,提高了安全性。

mailgraph_extExtman都需要安装rrdtool工具

            6.6.1 安装依赖包/RRDtool

rpm -ivh rrdtool-1.3.6-1.el5.pp.i386.rpm

rpm -ivh perl-rrdtool-1.3.6-1.el5.pp.i386.rpm

rpm -ivh perl-File-Tail-0.99.3-1.2.el5.rf.noarch.rpm

执行以下命令:

cp -r /var/www/extsuite/extman/addon/mailgraph_ext/ /usr/local/mailgraph_ext/

6.6.2 注意事项:

本文使用qmonitor来搜集队列数据,而不是使用crontab来定时提取,这与官方网站上的文档有差异。使用qmonitor的好处是它实时的监视队列目录的变化,显示的结果更加精确。

6.6.3 启动进程

启动mailgraph_extqmonitor

/usr/local/mailgraph_ext/mailgraph-init start

/usr/local/mailgraph_ext/qmonitor-init start

加入自启动

为了一开机就能自动执行上述进程,将上述命令加到rc.local 里面:

echo "/usr/local/mailgraph_ext/mailgraph-init start" >> /etc/rc.d/rc.local

echo "/usr/local/mailgraph_ext/qmonitor-init start" >> /etc/rc.d/rc.local

6.6.4 使用方法

等待大约15分钟左右,如果邮件系统有一定的流量,即可登陆到extman里,点图形日志即可看到图形化的日志。具体每天,周,月,年的则点击相应的图片进入即可。

6.7 过滤器配置

vi /etc/maildroprc

添加以下内容

# Decoder for high quality key word filtering, include new technology

# to advoid mail looping, eg: forwarding or autoreply

# Author: hzqbbc <hzqbbc@hzqbbc.com> – ExtMail Dev Team

DECODER="/var/www/extsuite/extmail/tools/decode"

if ((/^(From|Sender|Return-Path):.*MAILER\-DAEMON/))

{

BADSENDER=1

}

最后访问http://mail.onecheng.com/extmail/,如无意外,将看到webmail的登陆页,不过此时还没有加正式的用户,所以不能登陆,包括postmaster@onecheng.com也不行。必须要登陆到http://mail.onecheng.com/extman/ 里增加一个新帐户才能登陆。

ExtMan的默认超级管理员帐户:root@onecheng.com,初始密码:extmail*123*,登陆成功后,建议将密码修改,以确保安全。

21 comments to 在CentOS5.2安装基于postfix,Extmail的全功能邮件系统(一)

  • tech_bugs

    安装完以后不能使用自动回复,请作者再测试下

  • zyhui

    测试没问题,你再检查一下。

  • liwangjiang

    你好,感谢你的资料 。我在 测试authlib时
    /usr/sbin/authtest -s login postmaster@extmail.org extmail

    提示 :Authentication FAILED: Input/output error
    大概是那里的原因啊 ?

    init.sql里的 INSERT INTO `mailbox` VALUES (‘postmaster@extmail.org’,'postmaster’,'$1$phz1mRrj$3ok6BjeaoJYWDBsEPZb5C0′,”,’PostMaster’,”,’extmail.org/postmaster/Maildir/’,'extmail.org/postmaster’,'104857600S’,'52428800S’,'extmail.org’,1000,1000,’2007-02-14 15:10:04′,’2010-11-08′,1,0,0,0,0,0,0,0,’my question’,'my answer’);
    其中$1$phz1mRrj$3ok6BjeaoJYWDBsEPZb5C0是明码还是加密后的啊 ?出了都使用最新版本外都是按照上边步骤走的,
    俺是个新手 ,QQ 394212982 希望你能不吝赐教。很渴望能够给你经常沟通。

  • zyhui

    你可以检查一下
    /etc/authlib/authmysqlrc
    这个文件,注意格式,标点什么的,把不必要的空行,空格去掉

  • hover_sky

    博主:

    您好。您的这篇文章写的真好,谢谢了!
    发现提供postfix-2.5.6-1.src.rpm的网址“http://ftp.wl0.org/official/2.5/SRPMS/”,现在已经打不开。
    您方便把这个src包发到我的邮箱吗?谢谢了!

  • 太阳雨

    你好,我看了你的教程后,进行这个系统的配置,但在编译postfix包的时候出错,能帮忙解决一下吗

    [root@mail SPECS]# rpmbuild -ba postfix.spec
    error: Failed build dependencies:
    /usr/bin/cc is needed by postfix-2.5.6-1.rhel5.i386
    谢谢

  • zyhui

    看样子是gcc编译器的问题
    用rpm -qa | grep gcc检查一下gcc编译器有没有安装

  • lyb

    楼主,我也碰到这个问题。 /usr/sbin/authtest -s login postmaster@mytest.com extmail
    请问是哪里的问题,请明示,谢谢!!!

  • lyb

    不好意思,没写全, /usr/sbin/authtest -s login postmaster@mytest.com extmail
    Authentication FAILED: Input/output error

  • cynthia

    按照您上面写的步骤,在
    [root@bogon SPECS]# rpmbuild -ba courier-authlib.spec
    error: Failed build dependencies:
    /usr/include/ltdl.h is needed by courier-authlib-0.62.4-1.i386
    这是什么原因阿?

  • ferrari

    你好,安装过程都没有什么问题!!
    在安装maildrop的时候,安装是正常的,但是如果添加了vuser用户和vgroup组之后
    groupadd -g 1000 vgroup

    useradd -g vgroup -u 1000 -M -s /sbin/nologin vuser

    发现postfix无法stop了
    当我执行service postfix restart的时候,会是下面的情况:
    Shutting down postfix: [失败]
    Starting postfix: [确定]

    这是怎么回事啊???????

  • ferrari

    按照您上面写的步骤,在
    [root@bogon SPECS]# rpmbuild -ba courier-authlib.spec
    error: Failed build dependencies:
    /usr/include/ltdl.h is needed by courier-authlib-0.62.4-1.i386
    这是什么原因阿?

    需要安装libtool-ltdl-devel,这个在系统安装光盘里面有!!!!

  • ferrari

    /usr/sbin/authtest -s login postmaster@mytest.com extmail
    Authentication FAILED: Input/output error

    出现这样的问题可能是/etc/authlib/authmysqlrc里面的内容有问题,请检查里面的内容,确保没有多余的空格,最好所有的符号(包括’ ,等等)都重新输入一遍!!!

  • ferrari

    你好,我看了你的教程后,进行这个系统的配置,但在编译postfix包的时候出错,能帮忙解决一下吗

    [root@mail SPECS]# rpmbuild -ba postfix.spec
    error: Failed build dependencies:
    /usr/bin/cc is needed by postfix-2.5.6-1.rhel5.i386
    谢谢

    我也碰到这个问题,是gcc编辑器的问题,运行yum groupinstall ‘Development Tools’即可!!

  • jcao

    楼主, 我发现装好了信件无法发出,地址簿也看不到内容。 看看/var/log/maillog 里面提示 can’t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock’(13)
    可是mySQL是起来的,我既然能够登录web界面说明web server 可以联系到mysql服务器啊。
    看来是postfix配置的问题,可是会是哪里的问题呢?

  • ferrari

    我在前面有个问题:
    你好,安装过程都没有什么问题!!
    在安装maildrop的时候,安装是正常的,但是如果添加了vuser用户和vgroup组之后
    groupadd -g 1000 vgroup

    useradd -g vgroup -u 1000 -M -s /sbin/nologin vuser

    发现postfix无法stop了
    当我执行service postfix restart的时候,会是下面的情况:
    Shutting down postfix: [失败]
    Starting postfix: [确定]

    这是怎么回事啊???????

    后来发现不是因为用户的问题
    而是安装maildrop的过程中修改 master.cf
    maildrop unix – n n – - pipe

    flags=DRhu user=vuser argv=maildrop -w 90 -d ${user}@${nexthop} ${recipient} ${user} ${extension} {nexthop}

    就出现
    Shutting down postfix: [失败]
    Starting postfix: [确定]

    一旦注释掉添加的内容就正常了,是不是修改的内容有点问题啊?!!????

  • ferrari

    经过不断的测试,现在已经没有出现Shutting down postfix: [失败]的问题

    我是先建立vuser和vgroup之后再编辑master.cf,目前没有再出现那个问题了!!!

  • jcao

    邮件系统安装好了,可是发现没法用pop3的客户端收信,服务器上也没有打开pop3 imap的端口。
    楼主能不能再补充一下怎么安装配置pop3和imap组件?

  • Brucesun

    你好,写的真是不错的,尤其是一些细节问题,因在创建maildrop用户时候,网上大部分都是抄写,根本没有加/sbin/nologin!精华,然后请问下兄台:是否可以增加和DSPAM结合的文章呢?这样就很完美了,希望多多交流!
    MSN:mara-007@live.cn
    QQ:276196273

  • rainbow

    error: Failed build dependencies:
    mysql-devel is needed by postfix-2.6.5-1.rhel5.x86_64

    这个是什么问题呢?要装postfix-2.6.5-1.rhel5.x86_64?还是MysQL?我已经装了mysql了啊!

  • julit

    error: Failed dependencies:
    libssl.so.0.9.8 is needed by postfix-2.5.6-1.rhel5.i386

    这是什么问题呢,openssl已经安装了。

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>