1、为避免依赖问题,建议采用yum的方式安装;
2、hostname设置为你要使用的域名,如:mail.mygod.com;
3、本安装不涉及web mail客户界面;
4、使用管理iwebadmin,需要有qmail,qmailadmin,vpopmail的相关命令行基础,以及配置信息等。

[root@server opt]# wget http://download.opensuse.org/repositories/home:/indimail/CentOS_5/home:indimail.repo
–2011-01-27 19:05:30– http://download.opensuse.org/repositories/home:/indimail/CentOS_5/home:indimail.repo
正在解析主机 download.opensuse.org… 195.135.221.134
Connecting to download.opensuse.org|195.135.221.134|:80… 已连接。
已发出 HTTP 请求,正在等待回应… 200 OK
长度:273
Saving to: `home:indimail.repo’

100%[=============================================================================================================================>] 273 –.-K/s in 0s

2011-01-27 19:05:32 (11.8 MB/s) – `home:indimail.repo’ saved [273/273]

[root@server opt]# ls
home:indimail.repo
[root@server opt]# mv home\:indimail.repo indimail.repo

[root@server opt]# mv indimail.repo /etc/yum.repos.d/
1、安装indimail,会自动匹配数据库,并安装;
yum install indimail
yum install indimail-devel
yum install indimail-shared
yum install iwebadmin
yum install procmail

2、根据提示操作,开启随机启动

/var/indimail/sbin/initsvc -on
/sbin/init q
/var/indimail/sbin/svctool –postmaster=postmaster@mygod.com –config=cert
cat /etc/inittab
查看进程和端口
ps -ef
netstat -nlpt

查看默认邮箱域名
cat /var/indimail/control/defaultdomain

3、检查indimail安装;
service mysqld start
[root@mail control]# pwd
/var/indimail/control
[root@mail control]# cat host.mysql
localhost:indimail:ssh-1.5-:/tmp/mysql.sock
上面是indimail连接数据库的默认账户和密码,需要在数据库中手动添加

[root@mail control]# rpm -V indimail

4、为了使用web界面的qmail管理
yum install httpd
service httpd start
cd /var/indimail/bin
./vadddomain mygod.com
./vdominfo mygod.com

5、浏览器登录http://ip/cgi-bin/iwebadmin 添加账户,测试;
查看日志信息
tail -f /var/log/indimail/pop3d.110/current
tail -f /var/log/indimail/smtpd.25/current

[root@mail etc]# /etc/init.d/indimail stop
Stopping /service/clamd: [ OK ]
Stopping /service/fetchmail: [ OK ]
Stopping /service/freshclam: [ OK ]
Stopping /service/greylist.1999: [ OK ]
Stopping /service/indisrvr.4000: [ OK ]
Stopping /service/inlookup.infifo: [ OK ]
Stopping /service/mysql.3306: [ OK ]
Stopping /service/proxy-imapd.4143: [ OK ]
Stopping /service/proxy-imapd-ssl.9143: [ OK ]
Stopping /service/proxy-pop3d.4110: [ OK ]
Stopping /service/proxy-pop3d-ssl.9110: [ OK ]
Stopping /service/pwdlookup: [ OK ]
Stopping /service/qmail-imapd.143: [ OK ]
Stopping /service/qmail-imapd-ssl.993: [ OK ]
Stopping /service/qmail-pop3d.110: [ OK ]
Stopping /service/qmail-pop3d-ssl.995: [ OK ]
Stopping /service/qmail-poppass.106: [ OK ]
Stopping /service/qmail-qmqpd.628: [ OK ]
Stopping /service/qmail-qmtpd.209: [ OK ]
Stopping /service/qmail-send.25: [ OK ]
Stopping /service/qmail-smtpd.25: [ OK ]
Stopping /service/qmail-smtpd.366: [ OK ]
Stopping /service/qmail-smtpd.465: [ OK ]
Stopping /service/qmail-smtpd.587: [ OK ]
Stopping /service/qmail-spamlog: [ OK ]
Stopping /service/qscanq: [ OK ]
Stopping svscan: [ OK ]
[root@mail etc]# /etc/init.d/indimail start
Starting svscan: [ OK ]

发表评论

电子邮件地址不会被公开。 必填项已用*标注