Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 1.55 KB

30-opendmarc.md

File metadata and controls

79 lines (55 loc) · 1.55 KB

OpenDMARC

  1. DNS 설정

    Name Type Data
    _dmarc.ryuar.in TXT v=DMARC1; p=reject; sp=reject;
  2. ignore.hosts 생성 및 권한 설정

    # vim /etc/opendmarc/ignore.hosts
    127.0.0.0/8
    ::1/128
    localhost
    chown opendmarc:postfix /etc/opendmarc/ignore.hosts
    chmod 640 /etc/opendmarc/ignore.hosts
  3. /etc/opendmarc/opendmarc.conf 파일 수정

    (...)
    
    # AuthservID name
    AuthservID ryuar.in
    
    (...)
    
    # AutoRestart false
    AutoRestart true
    
    (...)
    
    # IgnoreHosts /etc/opendmarc/ignore.hosts
    IgnoreHosts /etc/opendmarc/ignore.hosts
    
    (...)
    
    #Socket unix:/var/spool/opendmarc/opendmarc.sock
    Socket unix:/run/opendmarc/opendmarc.sock
    
  4. 디렉토리 생성 및 권한 설정

    chown opendmarc:postfix -R /etc/opendmarc/
    
    mkdir /run/opendmarc
    chown opendmarc:postfix /run/opendmarc
  5. 부팅 시 디렉토리 생성 및 권한 설정하도록 설정

    echo "D /run/opendmarc 0750 opendmarc postfix" > /etc/tmpfiles.d/opendmarc.conf
  6. opendmarc 데몬 설정 변경

    # systemctl edit opendmarc
    [Service]
    Group=
    Group=postfix
  7. 데몬 활성화 및 시작

    systemctl daemon-reload
    systemctl enable opendmarc
    systemctl start opendmarc