
Ubuntu 20.04 VPS에서
sudo apt install opendkim opendkim-tools
예상대로 진행을 통해 opendkim을 설치하면 다음과 같습니다.여기에 제공된 단계.
그러나 테스트 시 실제로 전자 메일은 매우 낮은 스팸 점수(3.9)로 대상 사서함으로 전송되어 스팸 파일링 외부로 여과되는 반면,
sudo opendkim-testkey -d domain.tld -s default -vvv
예상치 못한 다소 모순된 결론을 반환합니다.
opendkim-testkey: key not secure
opendkim-testkey: key OK
키는 정상이지만 안전하지 않습니다. 이로 인해 'OK' 비트가 의심됩니다. 키를 안전하게 보호하려면 어떻게 해야 합니까?
업데이트
의견의 제안에 따라 내용은 다음과 opendkin.conf
같습니다.
Syslog yes
Logwhy yes
UMask 007
Canonicalization relaxed/simple
Mode sv
SubDomains no
AutoRestart yes
AutoRestartRate 10/1M
Background yes
DNSTimeout 5
SignatureAlgorithm rsa-sha256
Socket local:/run/opendkim/opendkim.sock
PidFile /run/opendkim/opendkim.pid
OversignHeaders From
TrustAnchorFile /usr/share/dns/root.key
include
UserID opendkim
KeyTable refile:/etc/opendkim/key.table
SigningTable refile:/etc/opendkim/signing.table
ExternalIgnoreList /etc/opendkim/trusted.hosts
InternalHosts /etc/opendkim/trusted.hosts