[[PageOutline]]
{{{
#!html
Exim4 設定
}}}
= 【1.設定】 =
* Debian Etch 預設已安裝 exim4,本範例使用 gmail 來作為 mial server
{{{
$ sudo dpkg-reconfig exim4-config
-Choose mail sent by SMARTHOST; received via SMTP or fetchmail
-Type System Mail Name: euca.nchc.org.tw
-Type IP Adresses to listen on for incoming SMTP connections: 127.0.0.1
-Leave Other destinations for which mail is accepted: 空白
-Leave Machines to relay mail for: 空白
-Type Machine handling outgoing mail for this host (smarthost): smtp.gmail.com::587
-Hide local mail name in outgoing mail: No
-Keep number of DNS-queries minimal (Dial-on-Demand): No
-Delivery method for local mail: mbox format in /var/mail/
-Split configuration into small files: No
$ sudo vim /etc/exim4/passwd.client
*.google.com:帳號@gmail.com:密碼
smtp.gmail.com:帳號@gmail.com:密碼
gmail-smtp.l.google.com:帳號@gmail.com:密碼
}}}