opendkimを設定する

/etc/opendkim/keys/にキー作成

# opendkim-genkey -D /etc/opendkim/keys/

/etc/opendkim.confを編集

確認・変更箇所は以下

Mode  s
LogWhy        no
Domain *
Selector        default
KeyFile /etc/opendkim/keys/default.private
InternalHosts refile:/etc/opendkim/TrustedHosts

当該サーバをメール送信サーバとして他の機器から使う場合、 /etc/opendkim/TrustedHosts に内部ネットワークを記述する。

例)

192.168.100.0/24
192.168.101.0/24

opendkimを再起動

/etc/rc.d/init.d/opendkim restart

DNSに反映

/etc/opendkim/keys/default.txt の内容をdnsサーバに登録する

以上

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です