CentOS5.3安装postfix+extmail邮件系统

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

CentOS5.3安装postfix+extmail邮件系统
作者:哈密瓜
bbs:
Blog:
系统所有环境都是采用yum安装
改变系统语言
关闭selinux
vi/etc/selinux/config
去除IPV6
修改网关
vi/etc/sysconfig/network
设IP
vi/etc/sysconfig/network-scripts/ifcfg-eth0
定义yum的非官方库
关闭不需要的服务
chkconfig mcstrans off
chkconfig restorecond off
chkconfig ip6tables off
chkconfig iptables off
chkconfig netfs off
安装必需软件
yum-y install ntsysv ntp telnet wget rsync vixie-cron logwatch perl-Unix-Syslog perl-Net-Daemon perl-PlRPC perl-DBI perl-DBD-MySQL freetype-demos freetype-devel libart_lgpl-devel libpng libpng-devel perl-Time-HiRes perl-Time-HiRes-Value perl-File-Tail perl-libwww-perl perl-HTML-Parser perl-HTML-Tagset perl-IO-stringy perl-IO-Multiplex perl-MailTools perl-TimeDate perl-Convert-ASN1perl-Convert-BinHex perl-MIME-tools perl-FCGI perl-GD rrdtool rrdtool-perl apr-devel apr-docs apr-util-devel apr-util-docs giflib libgdiplus mono-core dbus-sharp dbus-sharp-devel dbus-glib-devel dbh dbh-devel pcre pcre-devel httpd httpd-devel httpd-manual mysql mysql-devel mysql-server cyrus-sasl cyrus-sasl-plain bind bind-chroot amavisd-new clamd clamav clamav-db spamassassin bison bzip2-devel expect fam-devel flex freetype-devel gcc gcc-c++gdbm-devel libc-client-devel libjpeg-devel libmcrypt libmcrypt-devel libpng-devel libxslt-devel make rpm-build mod_ssl php php-gd php-mysql php-mbstring php-mcrypt phpmyadmin perl-Mon perl-Authen-PAM perl-Filter perl-Net_SSLeay.pm perl-Convert-BER perl-URI perl-XML-SAX perl-Crypt-Blowfish perl-Crypt-CBC perl-Date-Calc ncurses-devel net-snmp-devel libtool openssl openssl-devel openssl-perl pam-devel pkgconfig postgresql-devel zlib-devel
启动mysql和apahce
chkconfig httpd on
chkconfig mysqld on
升级包
yum-y update
重启系统
reboot
重新生成rpm包安装postfix
cd/usr/local/src
wget /centos/5/os/SRPMS/postfix-2.3.3-2.src.rpm
rpm-ivh postfix-2.3.3-2.src.rpm
cd/usr/src/redhat/SPECS
rpm-Uvh/usr/src/redhat/RPMS/i386/postfix-2.3.*
新建邮件用户、组
/usr/sbin/groupadd-g1000vgroup
/usr/sbin/useradd-g1000-u1000-M-s/bin/false vuser
安装courier-authlib
cd/usr/local/src
wget /courier/courier-authlib-0.61.0.tar.bz2
tar jxvf courier-authlib-0.61.0.tar.bz2
ldconfig
ldconfig-v
cp courier-authlib.sysvinit/etc/rc.d/init.d/courier-authlib
chmod755/etc/rc.d/init.d/courier-authlib
chkconfig--add courier-authlib
chkconfig courier-authlib on
chmod755/usr/local/courier-authlib/var/spool/authdaemon
mv/usr/local/courier-authlib/etc/authlib/authmysqlrc/usr/local/courier-authlib/etc/authlib/authmysqlrc.bak
设置smtpd
service courier-authlib start
ln-s/usr/local/courier-authlib/bin/courierauthconfig/usr/bin/courierauthconfig 安装maildorp
cd/usr/local/src
wget /courier/maildrop-2.0.4.tar.bz2
tar jvxf maildrop-2.0.4.tar.bz2
安装courier-imap
cd/usr/local/src
wget /courier/courier-imap-4.4.1.tar.bz2
tar jvxf courier-imap-4.4.1.tar.bz2
cp/usr/local/courier-imap/etc/imapd.dist/usr/local/courier-imap/etc/imapd
cp/usr/local/courier-imap/etc/imapd-ssl.dist/usr/local/courier-imap/etc/imapd-ssl cp/usr/local/courier-imap/etc/pop3d.dist/usr/local/courier-imap/etc/pop3d
cp/usr/local/courier-imap/etc/pop3d-ssl.dist/usr/local/courier-imap/etc/pop3d-ssl cp courier-imap.sysvinit/etc/rc.d/init.d/courier-imapd
chmod755/etc/rc.d/init.d/courier-imapd
chkconfig--add courier-imapd
配置pop
将extmail,extman,slock安装包上传
安装extmail
cd/usr/local/src
mkdir/var/www/extsuite
tar-zxvf extmail-1.0.5.tar.gz
cp-r extmail-1.0.5/var/www/extsuite/extmail
cd/var/www/extsuite/extmail
cp webmail.cf.default webmail.cf
chown-R vuser:vgroup/var/www/extsuite/extmail/cgi/
安装extman
cd/usr/local/src
tar-zxvf extman-0.2.5.tar.gz
cp-r extman-0.2.5/var/www/extsuite/extman/
chown-R vuser:vgroup/var/www/extsuite/extman/cgi/
mkdir/var/www/extsuite/extman/tmp
chown-R vuser:vgroup/var/www/extsuite/extman/tmp
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
生成extmail系统管理员的用户目录
cd/var/www/extsuite/extman/tools
./maildirmake.pl/home/domains//postmaster/Maildir
chown-R vuser:vgroup/home/domains
cp-r/var/www/extsuite/extman/addon/mailgraph_ext//usr/local/mailgraph_ext/ 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
安装slockd
cd/usr/local/src
tar-zxvf slockd-0.2.tar.gz
cp-r slockd-0.2/usr/local/slockd
echo"/usr/local/slockd/slockd-init start">>/etc/rc.d/rc.local
配置apache
安装fastcgi模块
cd/usr/local/src
wget /dist/mod_fastcgi-2.4.6.tar.gz
tar xfz mod_fastcgi-2.4.6.tar.gz
cd mod_fastcgi-2.4.6
ln-s../../usr/lib/httpd/build/etc/httpd/build
cp Makefile.AP2Makefile
make top_dir=/etc/httpd install
echo"/var/www/extsuite/extmail/dispatch-init start">>/etc/rc.d/rc.local
/var/www/extsuite/extmail/dispatch-init start
配置phpmyadmin
ln-s/usr/share/phpmyadmin/var/www/extsuite/phpmyadmin
注:初始安装账户extmail,extman密码可能有点问题登陆不进去,这个可以用phpmyadmin来设置密码,默认phpmyadmin root密码为空
$1$ITIH4eKD$s9C2wHpLQXOLkzY5U1jYL.=extmail
而后再从extman后台去修改密码就可以了。

usermod-G amavis clamav
touch/etc/postfix/recipient_bcc
touch/etc/postfix/sender_bcc
postmap/etc/postfix/transport
postmap/etc/postfix/recipient_bcc
postmap/etc/postfix/sender_bcc
以后升级命令:
yum update--exclude postfix--exclude postfix-pflogsumm
参考:
论坛wjkhubei写得centos5.3+extmail1.0.8+extman+spamassassin 效果图:
extmail
Extman。

相关文档
最新文档