Fw: 有問題請教您
-----原始郵件-----
寄件者: netman <netman@forfree.at>
收件者: 小州 <kenduest@presol.com>
日期: 星期一, 27 九月 1999 AM 02:18
主旨: Re: 有問題請教您
>嗨小州兄您好﹗
>
>很多謝您的指教﹗
>如過沒有您寄來到sendmail.cf樣本﹐我還真不知道居然問題是出現在一個“#”上面
呢
>﹗
>原來我執行m4 /etc/sendmail.mc > /etc/sendmail.cf之後﹐產生的
>DSsmtp.gig.com.au是沒有帶 “#”的﹐看到您的樣本﹐將“#”加上就OK了。
>但還是不明白為何如此﹖我把sendmalil.mc附上﹐希望您有空診斷一下。
>對了﹐關于exim的header轉換還沒成功﹐不過﹐在sendmail上面卻做到了。現在我正
在
>test一下fetchmail的功能﹐看看能不能讓一個沒有註冊的domain成功的達成內部和外
>部同時傳遞郵件。如果有問題還會向您請教。
>
>現在的問題是﹕
>
>在發送出去的時候﹕
>sendmail卻可以將header改寫﹐所以回復的信就全部可以寄到ISP的單一信箱去﹔但使
>用exim卻不能夠做到這點。
>
>在接收郵件的時候﹕
>用exim和fetchmail可以將一個isp戶口來接下來的好幾個使用者的郵件﹐分發到各自
的
>本地信箱裡面去﹔不過﹐用sendmail加fetchmail則暫時做不到。
>
>暫時的解決方法﹕
>用sendmail來做smtp伺服器﹔用exim來做pop伺服器。
>
>設想﹕
>用一台主機搞定。
>
>設定例子﹕
>=====
>smtp:
>=====
>1), 參考所附的sendmail.mc制成senmail.cf﹐並用“#”加在DSsmtp.gig.com.au(修
改
>成您的smart_host)前面。
>2), 將主機名稱加進 /etc/mail/genericsdomain裡面去。
>3), 設定好使用者的郵件地址轉換﹐請修改/etc/mail/genericstable﹐其內容類似如
>下(請參照自己的實際情形修改)﹕
>------------------------------------------------------------
>netman netman@tig.com.au
>kent netman@tig.com.au
>user1 netman@tig.com.au
>------------------------------------------------------------
>3), 產生genericstable.db﹐請執行﹕makemap -r hash
/etc/mail/genericstable.db
>< /etc/mail/genericstable
>
>====
>pop:
>====
>1), 用fetchmailconf來設定﹐或直接修改.fetchmailrc檔案(在執行下載任務之使用
者
>家目錄之下) ﹐其內容如下﹕
>------------------------------------------------------------
># Configuration created Mon Sep 27 00:37:13 1999 by fetchmailconf
>set postmaster "postmaster"
>poll pop.ihug.com.au with proto POP3
> user "netman" there with
password "hBg7-rE10" is netman here options
>fetchall warnings 3600
>------------------------------------------------------------
>2), 在netman(或是在fetchmailrc指定的本地接收者)的家目錄裡面修改.forward檔
>案﹐讓其內容如下﹕
>------------------------------------------------------------
>#Exim filter
>if $header_to: contans netman then deliver netman endif
>if $header_to: contans kent then deliver kent endif
>if $header_to: contans usr1 then deliver user1 endif
>#主意﹕使用sendmail的話則會出現錯誤。
>------------------------------------------------------------
>
>希望兄能抽空一試﹐更盼給予正確意見﹐以可以達成在同一主機下面完成各項功能。
>
>謝謝﹗
>
>網中人
>