dポイントプレゼントキャンペーン実施中!

差出人をroot@...にする方法を教えてください。

A 回答 (1件)

とりあえず


postfix のバージョン
エンベロープなのか、ヘッダなのか
送信なのか、受信なのか
程度は書いた方がいいかと。

よくわからないので関係ありそうな設定を書いておきます。
(/^.*@/ root@ の置換は出来るか知りません。)

/etc/postfix/main.cf
---
canonical_classes = envelope_sender, envelope_recipient, header_sender, header_recipient
canonical_maps = regexp:/etc/postfix/canonical
# sender_canonical_maps = regexp:/etc/postfix/sender_canonical
# recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical
---

/etc/postfix/canonical
---
/^aaa/ bbb
/^.*@/ root@
---

この回答への補足

canonical_classesは必要ですか?
sender_canonical_mapsは先ほど試しましたがだめでしたので今からcanonical_mapsで試してみます。

補足日時:2009/11/30 11:33
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!