先日、OpenDMARCをインストールしてレポート機能を設定しました。
DBを作成してopendmarc-send-reports.shを設定したのですが、相手に正常に送信できてる?
どんな内容のメールが相手に送信されてるの?
確認方法が無いか探していました。
DMARC Postfix Setup
https://www.cyberpunk.rs/dmarc-postfix-setup
なるほどPostfixのsender_bcc_maps =
を設定して転送すればいいのか。
- /etc/postfix/main.cfの編集
- /etc/postfix/bcc_mapの作成
- Postfix再起動
1 2 3 |
[root@centos7 ~]# vi /etc/postfix/main.cf [root@centos7 ~]# grep sender_bcc_maps /etc/postfix/main.cf sender_bcc_maps = hash:/etc/postfix/bcc_map |
送信元:dmarc@rootlinks.netのメールはBccでhogehoge@rootlinks.netにも送信する設定です。
1 2 3 4 |
[root@centos7 ~]# vi /etc/postfix/bcc_map [root@centos7 ~]# cat /etc/postfix/bcc_map dmarc@rootlinks.net hogehoge@rootlinks.net [root@centos7 ~]# postmap /etc/postfix/bcc_map |
1 |
[root@centos7 ~]# systemctl restart postfix |
そして本日、いくつかのサイトにDMARC Reportを送信しているのが確認できました。
添付のzipファイルを解凍してxmlを解析できたので正常にDMARC Report機能が動作しているようです。