回首頁
修改
Mail
FTP

中




2008年4月20日 星期日

[MAIL]安裝Postfix For Ubuntu 7.10

首先安裝以Debian的APT來安裝


apt-get install postfix
安過程會出現一個訊息
General type of configuration?
No configuration
Internet Site
Internet with smarthost
satellite system
Local only


如果選第一個No configuration就要照下面步驟做
cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
/etc/init.d/postfix restart

就算只把Postfix 用於區域網路傳遞也是選擇Internet Site唷~(在這邊我們選這個)


這樣安裝好就有一個/etc/postfix/main.cf 的組態檔了


root@ubuntu:~#less /etc/postfix/main.cf
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = radius_os
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localdomain, localhost, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

接下來要您的組態來設定

觀看是否有啟動
netstat -tulpn
tcp 0 0 *:smtp *:* LISTEN 7675/master


介紹一些相關套件
WebMail:
squirrelmail
Mail指令傳送:
Mailx ,mailutils


未完成...

0 回應: