Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In a few tutorials ive read on how to make a mail server say i need a FQDN for postfix and an exact external address to my mail server for DNS records. I am hosting 4 domain names and have one server behind a router with a static external ip. I usually just forwarded ports to my server but how can i get the server.domain.com to match my setup or should i just use my external IP for the server?

share|improve this question
add comment

1 Answer

Correct reverse DNS setup is only important for outgoing mail, not incoming mail. You can use as many hostnames pointing at your single static IP for users to use when submitting mail (e.g. smtp.example.com, smtp.example.net, smtp.example.org).

For sending outgoing mail you need to pick a single hostname as the canonical hostname for your mail server (this hostname doesn't have to match the domains which the server is sending mail for), for example mail.example.com. Set this hostname as the PTR record for your static IP, ensure that it has an A record pointing to your static IP, and configure Postfix to use this as its HELO hostname.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.