Sendmail SMART_HOST - BBS
By Rosalind
at 2011-06-19T11:09
at 2011-06-19T11:09
Table of Contents
我在Freebsd 8.1上
想用sendmail試試SMART_HOST的功能
A──┐
╞C
B──┘
Mail server A B要送信出去都透過C來送
C就是smart host
收信是沒問題,透過更改DNS將A B的mx指到C
並在C的/etc/mail/mailertable設定
現在問題是,當我要從B寄信到如Gmail去
都不會先送到C,而是直接送往Google
B的設定:
在/etc/mail/freebsd.mc
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
define(`SMART_HOST', `[C的IP]')dnl
在/etc/mail/freebsd.submit.mc中加入
define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl
#m4 freebsd.submit.mc > freebsd.submit.cf
#m4 freebsd.mc > freebsd.cf
#/etc/rc.d/sendmail restart
不知道有漏了什麼??
--
想用sendmail試試SMART_HOST的功能
A──┐
╞C
B──┘
Mail server A B要送信出去都透過C來送
C就是smart host
收信是沒問題,透過更改DNS將A B的mx指到C
並在C的/etc/mail/mailertable設定
現在問題是,當我要從B寄信到如Gmail去
都不會先送到C,而是直接送往Google
B的設定:
在/etc/mail/freebsd.mc
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
define(`SMART_HOST', `[C的IP]')dnl
在/etc/mail/freebsd.submit.mc中加入
define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl
#m4 freebsd.submit.mc > freebsd.submit.cf
#m4 freebsd.mc > freebsd.cf
#/etc/rc.d/sendmail restart
不知道有漏了什麼??
--
Tags:
BBS
All Comments
Related Posts
set 設定變數空格消失
By Todd Johnson
at 2011-06-05T17:13
at 2011-06-05T17:13
請教sed指令使用
By Olivia
at 2011-06-02T17:31
at 2011-06-02T17:31
請教sed指令使用
By Gary
at 2011-06-02T16:54
at 2011-06-02T16:54
freebsd可以以不用驅動直接支援讀卡機?
By Mason
at 2011-05-27T23:10
at 2011-05-27T23:10
無法解析名稱
By Noah
at 2011-05-24T21:57
at 2011-05-24T21:57