#!/bin/sh kill -KILL `cat /var/run/sendmail.pid` sh Build cd cf/cf/ cp generic-bsd4.4.mc config.mc sh Build config.cf cd ../../ sh Build install targetdir='obj.'`uname -s`'.'`uname -r`'.'`uname -p`'/mail.local' cd $targetdir make force-install chown root /usr/libexec/mail.local chmod u+s /usr/libexec/mail.local cd ../../cf/m4 m4 cf.m4 ../cf/config.mc > /etc/mail/sendmail.cf |
|
local-host-names為sendmail Mail Server 別名的設定檔。例如:admin@mail.dnes.mlc.edu.tw的信箱欲簡寫成admin@dnes.mlc.edu.tw時,只要在該檔案中寫入一行:dnes.mlc.edu.tw即可。 另外,很多人在原本的系統中就設有sendmail.cw檔,其作用是相同的。請參考sendmail.cf檔中的原始設定內容: Cwlocalhost # file containing names of hosts for which we receive email Fw/etc/mail/local-host-names 可以將上述第三行改成: Fw/etc/mail/sendmail.cw 如果DNS系統中設有MX,這時sendmail.cw檔要配合MX值來設定,否則收不到信。 POP3/SMTP伺服器的設定上不可以使用簡寫,這個功用只能使用在發送電子郵件時應用在收件人的郵件地址上。 |
----- The following addresses had permanent fatal errors -----
spring@mail.fushsinges.mlc.edu.tw.REDIRECT
(expanded from: <sspring@dnes.mlc.edu.tw>)
----- Transcript of session follows -----
551 5.1.1 User has moved; please try <spring@mail.fushsinges.mlc.edu.tw>
|
tim peter@ms24.hinet.net \admin |
MAILDIR=/var/mail VERBOSE=off PATH=/bin:/sbin:/usr/bin:/usr/sbin/:/usr/local/bin:/usr/local/sbin LOGFILE=/var/log/procmail.log :0 B * ^Hi\! How are you(\.|=3F) * ^I send you this file in order to have your advice * ^See you later(\.|=2E) Thanks /dev/null :0 B * ^Hi\! How are you\? * ^=20 * ^I send you this file in order to have your advice * ^=20 * ^See you later\. Thanks /dev/null :0 B * ^Content-Type:.*application.* * name="readme.exe" /dev/null :0 B * ^Content-Type:.*audio/x-wav.* * name="readme.exe" /dev/null在/etc/mail/sendmail.cf最底下加入下列這一行: