Ubuntu系统搭建sendmail openwebmail邮件服务器
思韵闪耀
2013-03-19
0

1.安装sendmail

apt-get install sendmail

配置saslauthd改为开机自动启动

vi /etc/default/saslauthd

START=yes

更改接收域名

vi /etc/mail/local-host-names

xdty.org

mail.xdty.org

ourbits.us

mail.ourbits.us

更改允许发送的地址

vi /etc/mail/sendmail.mc

DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=0.0.0.0')dnl

DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=0.0.0.0')dnl

生成配置

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

重启服务

service sendmail restart

2.安装pop3服务

apt-get install dovecot-common dovecot-pop3d

编辑配置文件

vi /etc/dovecot/dovecot.conf

protocols = pop3

disable_plaintext_auth = no

ssl = no

mail_location = mbox:~/mail:INBOX=/var/mail/%u

重启服务

service dovecot restart

3.安装openwebmail,通过web管理邮件系统

进入/var/www目录下载文件并解压

cd /var/www

wget http://openwebmail.org/openwebmail/download/release/openwebmail-2.53.tar.gz

tar xf openwebmail-2.53.tar.gz

安装perl支持

apt-get install perl-suid libapache2-mod-perl2

编辑apache2配置

vi /etc/apache2/sites-available/default

        ScriptAlias /cgi-bin/ /var/www/cgi-bin/

        <Directory "/var/www/cgi-bin">

配置openwebmail

编辑auth_unix.conf文件

cp /var/www/cgi-bin/openwebmail/etc/defaults/auth_unix.conf /var/www/cgi-bin/openwebmail/etc/

vi /var/www/cgi-bin/openwebmail/etc/auth_unix.conf

passwdmkdb              none

passwdfile_encrypted    /etc/shadow

配置dbm.conf文件

cp /var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf /var/www/cgi-bin/openwebmail/etc

vi /var/www/cgi-bin/openwebmail/etc/dbm.conf

dbm_ext                 .pag

配置openwebmail.conf文件

vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

ow_cgidir               /var/www/cgi-bin/openwebmail

ow_htmldir              /var/www/data/openwebmail

ow_htmlurl              /data/openwebmail

default_iconset         Cool3D.Chinese.Simplified

default_language        zh_CN.GB2312

使配置文件生效

/var/www/cgi-bin/openwebmail/openwebmail-tool.pl –init

生成软连接

mkdir /var/www/openwebmail

cd /var/www/openwebmail

ln -s /var/www/data/openwebmail/redirect.html index.html

打开http://url/openwebmail登录,测试邮件系统是否配置成功。


【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

相关内容

网页保护、网页图片保护
1、禁止另存网页,把如下代码加入到网页body/body中 程序代...
2025-05-30
docker-compos...
1.Compose介绍 DockerCompose是一个用来定义和...
2024-04-26
firewall-cmd ...
firewalld的简要说明:firewalld 、firewal...
2024-03-15
DNF error: Er...
U盘引导最小化安装anolis oa 8.8 ga出现以下错误DN...
2023-10-27
列出服务单元: syste...
列出服务单元: systemctl list-units --ty...
2022-11-26
Import or ins...
若要为一个或多个Exchange服务启用加密,Exchange服务...
2022-09-16

热门资讯

Discus X论坛配置sen... Discuz x2.5 后台邮件设置方法其实和X2/x1.5基本一样,但很多同学都不注意一些细节,比...
redhat Linux系统配... 1 .检查Send Mail 的安装包 [root@sql root]# rpm -qa | gre...
使用Sendmail的反垃圾邮... 在最近几年,无处不在的垃圾邮件已使得所有邮件箱不堪重负,不断地需要工具以抗击这一无穷尽的垃圾邮件流。...