Ubuntu 下安裝 Dovecot + Sendmail + OpenWebmail

Dovecot 套件提供 pop3 / pop3s / imap / imaps 服务。

Sendmail 收信寄信服务

sasl2-bin 提供认证服务

环境: Ubuntu 7.04 Server

1.安装 dovecot 套件

sudo apt-get install dovecot-common dovecot-pop3d

2.设定 /etc/dovecot/dovecot.conf

protocols = pop3

disable_plaintext_auth = no

ssl_disable = yes

3.启动 dovecot

/etc/init.d/dovecot start

4.测试

telnet pop3_server 110

auth

user user_name

pass user_password

若出现 OK 表示成功。

1.安装 Sendmail 服务

sudo apt-get install sendmail

2.设定 Relay IP

/etc/mail/access

192.168.1.1 RELAY

允许 192.168.1.1 IP 透过 Sendmail 发信

3.设定收信 Domain

/etc/mail/local-host-names

ssh.tw

mail.ssh.tw

将收 ssh.tw / mail.ssh.tw 网域的信件

4.设定 Sendmail listen address

/etc/mail/sendmail.cf

O DaemonPortOptions=Port=smtp,Addr=0.0.0.0, Name=MTA

5.启动 Sendmail 服务

/etc/init.d/sendmail start

若中间有改过 /etc/mail 内的值,可以执行 make 更新资料。

1.下载 OpenWebmail

2.解压 openwebmail.tar.gz

tar xvzf openwebmail.tar.gz -C /var/www

3.修改 openwebmail.conf

domainnames ssh.tw

mailspooldir /var/mail

ow_cgidir /var/www/cgi-bin/openwebmail

ow_cgiurl /cgi-bin/openwebmail

ow_htmldir /var/www/data/openwebmail

ow_htmlurl /openwebmail

default_iconset Cool3D.Chinese.Traditional

4.修改 etc/auth_unix.conf

passwdfile_encrypted /etc/shadow

passwdmkdb none

5.执行初始安装

openwebmail-tool.pl –init

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wypdds.html