2008年9月24日 星期三

設定Mail Server

1.安裝postfix套件
#cd /etc/postfix
#vi main.cf
myhostname = xxx.org
mydestination = mail.xxx.org, debian.xxx.org, localhost.xxx.org, localhost

mynetworks = 127.0.0.0/8,140.134.210.144,192.168.20.0/24
mailbox_size_limit = 0 設定信箱容量

2.加入不同網域的mail-server
設定vi /etc/hosts
140.134.210.199 mail.xxx.xxx.xxx

3.測試寄信
#mail username@xxx.xxx.xxx
Subject: 123 --->主旨123
happy end. --->信的內容
. --> . 表示結束
Cc: ---->副件收件者

沒有留言: