गाइड

एक सेल्फ-होस्टेड मेल सर्वर जो वास्तव में इनबॉक्स तक पहुंचता है

उन्नत45 मिनट पढ़ेंअपडेट किया गया 4 जून 2026
संक्षिप्त उत्तर

मेल सर्वर इंस्टॉल करना आसान है; प्राप्तकर्ताओं द्वारा विश्वसनीय होना नहीं है। आपको आउटबाउंड पोर्ट 25, आपके बैनर होस्टनाम से मेल खाता PTR रिकॉर्ड, सही ढंग से प्रकाशित SPF, DKIM और DMARC, बिना स्पैम इतिहास वाला एड्रेस स्पेस, और धीरे-धीरे वॉल्यूम बढ़ाना आवश्यक है। किसी एक को भी चूकें, और मेल स्पैम में चला जाता है।

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 एड्रेस को गर्म करें

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 की आवश्यकता है?

हाँ, और एक जिस पर आप रिवर्स DNS सेट कर सकते हैं। ये दोनों हर OnionVPS इंस्टेंस पर मानक हैं।