CONTENTS
Lastmodified 2024-01-16 (火) 11:24:55
【参考URL】https://wp.kncn.net/277
https://qiita.com/Chun3/items/4c15ee889b052df67bbd
portinstall mail/opendkim
unbound-1.16.1 も依存関係でインストールされるが、ダウンロード途中で Login: PW:を求められ、いずれも空白でOKだった。
/etc/rc.conf
milteropendkim_enable="YES"
/usr/local/etc/mail/opendkim.conf
Canonicalization simple/simple Domain smb.net KeyFile /var/db/dkim/smb.net.private LogWhy yes Mode sv ReportAddress "DKIM Error Postmaster" <postmaster@smb.net> Selector smb.net SendReports yes Socket local:/var/run/milteropendkim/socket SubDomains yes Syslog Yes SyslogSuccess yes UMask 002
/etc/group
mailnull:*:26:postfix <-- postfix 追加
# mkdir /var/db/dkim # chmod 700 /var/db/dkim # opendkim-genkey -D /var/db/dkim -d smb.net -s smb.net # chown -R mailnull:mailnull /var/db/dkim
/usr/local/etc/namedb/smb.net.zone
_domainkey IN TXT "t=y; o=~" smb.net._domainkey IN TXT "v=DKIM1; k=rsa; p=hogehoge" _adsp._domainkey IN TXT "dkim=unknown"
2行目は /var/db/dkim/kncn.net.txt の内容を設定。こんなかんじか?
_domainkey IN TXT "t=y; o=~" smb.net._domainkey IN TXT "v=DKIM1; k=rsa; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWTSD8w....WwIDAQAB" ) ; ----- DKIM key smb.net for smb.net _adsp._domainkey IN TXT "dkim=unknown"
/usr/local/etc/postfix/main.cf
# mail filter smtpd_milters = unix:/var/run/milteropendkim/socket non_smtpd_milters = $smtpd_milters milter_default_action = accept
Total access 895:本日 3:昨日 0