指南

직접 호스팅하는 메일 서버로 실제로 받은편지함에 도달하기

고급45분 읽기업데이트됨 2026년 6월 4일
간단한 답변

메일 서버 설치는 쉽지만, 수신자에게 신뢰를 얻는 것은 어렵습니다. 아웃바운드 포트 25, 배너 호스트 이름과 일치하는 PTR 레코드, 올바르게 게시된 SPF, DKIM, DMARC, 스팸 기록이 없는 IP 주소 공간, 그리고 점진적인 볼륨 증가가 필요합니다. 하나라도 놓치면 메일이 스팸으로 분류됩니다.

01 먼저 호스트 이름과 역방향 DNS를 설정하세요

Do this before installing anything. The PTR must resolve to the hostname the server announces, and that hostname must have a forward record pointing back to the same address.

hostnamectl set-hostname mail.example.com
# then set the PTR to mail.example.com in the OnionVPS panel

02 스택 설치

Mailcow gives you a complete Docker-based stack. Stalwart is a single Rust binary if you prefer fewer moving parts.

git clone https://github.com/mailcow/mailcow-dockerized /opt/mailcow
cd /opt/mailcow && ./generate_config.sh
docker compose up -d

03 SPF, DKIM 및 DMARC 게시

All three are DNS records. DKIM keys are generated by the mail stack; copy the public key from its admin interface.

example.com.            TXT  "v=spf1 mx -all"
dkim._domainkey        TXT  "v=DKIM1; k=rsa; p=MIGfMA0..."
_dmarc                 TXT  "v=DMARC1; p=none; rua=mailto:[email protected]"

04 IP 주소 준비

A few dozen messages a day for the first week, then roughly double weekly. A volume spike from a new IP is indistinguishable from a compromised host, and receivers treat it accordingly.

05 보고서가 깨끗해지면 DMARC를 강화하세요

Read aggregate reports for a fortnight at p=none, fix whatever is failing, then move to p=quarantine and eventually p=reject. Going straight to reject reliably breaks systems you forgot were sending mail.

자주 묻는 질문

메일이 스팸으로 가는 이유는 무엇인가요?

가능성 순서: 누락되거나 일치하지 않는 PTR, 누락된 DKIM, 너무 많은 양을 너무 빨리 보내는 새 IP, 또는 이전에 악용 이력이 있는 IP 주소 공간입니다. 처음 세 가지는 직접 해결할 수 있고, 네 번째는 제공업체의 몫입니다.

고정 IP가 필요한가요?

네, 그리고 역방향 DNS를 설정할 수 있는 IP가 필요합니다. 둘 다 모든 OnionVPS 인스턴스에서 표준입니다.