|
[Ubuntu] 安裝 Dovecot + Sendmail + OpenWebmail
張貼日期 2010/3/23 8:14:24
作者 lutuni
|
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
|
|