ubuntu:dns:use_reverse_dns_for_mail_delivery
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:dns:use_reverse_dns_for_mail_delivery [2020/07/15 09:30] – external edit 127.0.0.1 | ubuntu:dns:use_reverse_dns_for_mail_delivery [2021/01/10 21:16] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Ubuntu - DNS - Use Reverse DNS for Mail Delivery ===== | ||
- | |||
- | For proper mail delivery, the following anti-spam methos are very important to make sure the email is delivered to users inbox. | ||
- | |||
- | - Setup Reverse IP for your mail server with PTR in DNS (needs Dedicated IP) | ||
- | - Setup SPF Record in your DNS | ||
- | - Setup Domain Keys | ||
- | |||
- | If you use a shared hosting plan, most emails do land up in spam/bulk folder in the users inbox. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Set up reverse IPs for Mailserver IPs ===== | ||
- | |||
- | In order to setup reverse IP, first you will need to place a request to your hosting provider (since they own IP address) and ask them to setup a reverse IP to your mail server. | ||
- | |||
- | To test reverse IP lookup: | ||
- | |||
- | <code bash> | ||
- | host < | ||
- | </ | ||
- | |||
- | will show the output of reverse dns. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Set up SPF record ===== | ||
- | |||
- | SPF record is setup using **TXT** record in your dns zone file. It looks like what is shown below. | ||
- | |||
- | <code bash> | ||
- | domain.com. IN TXT " | ||
- | </ | ||
- | |||
- | To query SPF record using dig: | ||
- | |||
- | <code bash> | ||
- | dig domain.com TXT | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Domain Keys ===== | ||
- | |||
- | It basically contains 2 records (with and without selector) placed under TXT using underscore along with generated public key. | ||
- | |||
- | The ’sel’ is a selector and can be selector name. | ||
ubuntu/dns/use_reverse_dns_for_mail_delivery.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1