Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server running Debian. I installed iRedMail, but now I want to access the mailserver externally (receive and send mails). I have to set up DNS records for that, but I can't seem to figure it out correctly.

Can anyone help?


Currently using iRedMail which installs an SMTP and IMAP server. I created a few e-mail addresses. They can send e-mails internally without any problems. Now I want to take it all externally. All the e-mail addresses on this server should be able to receive e-mails from external addresses (hotmail, gmail etc) but also should be able to send out e-mails to external addresses. I ran the default installation, that's it.

Current records:        A              A       XXX.XX.XXX.XX          A       XXX.XX.XXX.XX          A       XXX.XX.XXX.XX              TXT         "v=spf1 a mx ip4:XXX.XX.XXX.XX ~all"              MX 10   XXX.XX.XXX.XX
share|improve this question

migrated from Jan 13 '12 at 16:16

This question came from our site for professional and enthusiast programmers.

please clarify, you need DNS to connect easily, or DNS for external mail delivery? – Tim Jan 13 '12 at 16:24
I'm sorry. I am trying to reach the mailserver externally. The server is in a datacenter. I would like to send out and receive e-mails from my computer at home. – Roel Jan 13 '12 at 16:32
Can you provide information in your question about what you've attempted, and how the records are configured currently? – Shane Madden Jan 13 '12 at 16:35
Added to the question. – Roel Jan 13 '12 at 17:26
Is a firewall running? Is public DNS able to see your updated dns records? – becomingwisest Jan 13 '12 at 19:19
up vote 1 down vote accepted

Assuming both the IMAP and SMTP server reside on the same IP address, you can create an "A" record to point a name to the IP address, or use a "CNAME" record to create an alias to an existing record.

Assuming the public IP address is an "A" record would look like: A

And a "CNAME" record would look like:    A    CNAME
share|improve this answer

Your Answer


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.