I'm looking to set up a webmail server that will be used by a lots of users that will receive and send emails. They will also have the possibility to forward emails they receive.
I'd like to know which steps are recommanded/required to indicate to others Mail services (GMail, Outlook, etc) that my server is not used as a spam sender (disclaimer : IT's NOT ! :p) but a legitimate one.
I know I have to define a SPF TXT records for example, but what others steps would you recommend me to do ?
For example, is there a formula like having a proportional number of servers based on the amount of email sent (for having a different IP address) ? (something like sending a maximum of 1M emails / per IP / per day ?)
Something else I'm missing ?
I tried to search online, but I mostly find how to avoid emails sent with scripts (like PHP) being put in the SPAM folder.
I'm looking for a server/dns configuration side.
Thanks a lot for your help/tips, I appreciate !
Answer
- Ensure your server is not an open relay, meaning that it must not relay to arbitrary destinations for arbitrary senders without authentication.
- Make sure that your SMTP software is configured to send an appropriate FQDN along with its HELO/EHLO statement. Configuration will depend on the SMTP server you are running, but you need to make sure it is identifying itself with a publicly-resolvable fully qualified domain name.
- Make sure you have an A/AAAA record in DNS for the FQDN noted in step 2, with the correct IP mapped to your server.
- Make sure there is a PTR record corresponding to your A/AAAA record.
- Make sure that the SPF record(s) for any domain that will send through your server are configured to allow that server as a sender.
- Potentially set up DKIM, depending on your server software and requirements.
- If you run into trouble, check your server's external IP(s) against various online blacklists.
- MOST IMPORTANTLY: If you can use an external service for SMTP like MailGun, SendGrid, etc, consider doing so. SMTP is one of those things like DNS in that for most people/businesses, running it themselves is really more trouble than it's worth.
Comments
Post a Comment