Ubuntu12.04LTS安装qmail邮件服务器
1.清除其他常用邮件服务器
- root@vubuntu32:/home/comodo#apt-get remove postfix* -y
- root@vubuntu32:/home/comodo#apt-get remove exim4* -y
- root@vubuntu32:/home/comodo#apt-get remove sendmail* -y
2.安装ucspi-tcp,po-debconf以及qmail-src
- root@vubuntu32:/home/comodo#apt-get install ucspi-tcp
- root@vubuntu32:/home/comodo#apt-get install po-debconf -y
- root@vubuntu32:/home/comodo#apt-get install qmail-src -y
3.安装qmail
- root@vubuntu32:/home/comodo#build-qmail
- >Enter a directory where you would like to do this [/tmp/qmail] Enter
- >Press ENTER to continue...Enter
- >except qmail_1.03-49.2_i386.deb now? [Yn] y
- >Do you want to install qmail_1.03-49.2_i386.deb now? [Yn] y
- >Do you want to purge qmail-src now? [yN] y
- >
4. 配置邮件系统域名
- root@vubuntu32:/home/comodo# echo "vubuntu32.com">/etc/qmail/me
- root@vubuntu32:/home/comodo# cp /etc/qmail/me /etc/hostname
- root@vubuntu32:/home/comodo# cp /etc/qmail/me /etc/qmail/defaultdomain
- root@vubuntu32:/home/comodo# cp /etc/qmail/me /etc/qmail/locals
5. 测试qmail服务器
- apt-get install mailutils -y
- echo "abc"|mail -s "T1" user@vubuntu32.com
阅读(2254) | 评论(0) | 转发(0) |