ServerA(example.com)ドメイン取得
ServerA(example.com 192.168.120.55)ドメイン取得済みのサーバーからServerB(tekitou.com 192.168.120.56)へメールを自動で転送したい。
ServerBはドメインを取得していないので、適当なドメインを付けました。
ServerBにもドメインを取得すれば簡単に転送出来ますが、あえて、ドメイン無しで転送したいのです。
ServerAのmain.cfのmydestinationを以下のようにし、
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, tekitou.com
内部向け正引きゾーンデータベース
$TTL 86400 @ IN SOA example.com. root.example.com.( 2017032009 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS example.com. IN MX 10 example.com. @ IN A 192.168.120.55 * IN A 192.168.120.55
$TTL 86400 @ IN SOA tekitou.com. root.tekitou.com.( 2017032009 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS tekitou.com. IN MX 10 tekitou.com. @ IN A 192.168.120.56 * IN A 192.168.120.56
内部向け逆引きゾーンデータベース
$TTL 86400 @ IN SOA example.com. root.example.com.( 2017032009 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS example.com. 55 IN PTR example.com. 56 IN PTR tekitou.com.
ServerBのmain.cfのmydestinationを以下のようにし、
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, example.com
内部向け正引きゾーンデータベース
$TTL 86400 @ IN SOA tekitou.com. root.tekitou.com.( 2017050106 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS tekitou.com. IN MX 10 tekitou.com. IN A 192.168.120.56
内部向け逆引きゾーンデータベース
$TTL 86400 @ IN SOA tekitou.com. root.tekitou.com.( 2017050106 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS tekitou.com. 56 IN PTR tekitou.com. 55 IN PTR example.com.
ServerAとServerBとの正引き・逆引きの疎通確認はできています。
しかし、この状態で外部からメールを受信するとServerAが「ホストがみつかりません」というデーモンメールを送り、無限ループに陥ります。
どなたか、解決策をご存知の方がいらっしゃいましたら力を貸してください。
回答2件
あなたの回答
tips
プレビュー