| 1 | [[PageOutline]] |
| 2 | {{{ |
| 3 | #!html |
| 4 | <h1 style="text-align: center; color: blue">Exim4 設定</h1> |
| 5 | }}} |
| 6 | = 【1.設定】 = |
| 7 | * Debian Etch 預設已安裝 exim4,本範例使用 gmail 來作為 mial server |
| 8 | {{{ |
| 9 | $ sudo dpkg-reconfig exim4-config |
| 10 | -Choose mail sent by SMARTHOST; received via SMTP or fetchmail |
| 11 | -Type System Mail Name: euca.nchc.org.tw |
| 12 | -Type IP Adresses to listen on for incoming SMTP connections: 127.0.0.1 |
| 13 | -Leave Other destinations for which mail is accepted: 空白 |
| 14 | -Leave Machines to relay mail for: 空白 |
| 15 | -Type Machine handling outgoing mail for this host (smarthost): smtp.gmail.com::587 |
| 16 | -Hide local mail name in outgoing mail: No |
| 17 | -Keep number of DNS-queries minimal (Dial-on-Demand): No |
| 18 | -Delivery method for local mail: mbox format in /var/mail/ |
| 19 | -Split configuration into small files: No |
| 20 | |
| 21 | $ sudo vim /etc/exim4/passwd.client |
| 22 | *.google.com:帳號@gmail.com:密碼 |
| 23 | smtp.gmail.com:帳號@gmail.com:密碼 |
| 24 | gmail-smtp.l.google.com:帳號@gmail.com:密碼 |
| 25 | }}} |