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 am trying to set up and configure a mail server in which I can receive email however I am not having any luck with Postfix or Exim4. I currently have Exim4 configured and it sends mail fine, however it can't receive. When trying to send mail from my other account (gmail) to an account on my server, I get this reply:

Delivery to the following recipient failed permanently:


Technical details of permanent failure: 
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 Unrouteable address (state 14).

How can I fix this? Is it an MX record problem or Exim4 configuration error?

share|improve this question
up vote 2 down vote accepted

Normally you can get your Exim4 on a workable state just using the automatic configuration:

# dpk-reconfigure exim4-config

The most important answers are the ones where you set the type of delivery you want (you want the first one, messages delivered/received directly) and the domain configuration. The domain configuration is a series of questions that asks what domains the server will consider for local delivery and etc. Answering correctly those questions will get your server working.

share|improve this answer
Got it to work by having the mail go to /var/mail/<user> instead! Thanks! – wlawl Apr 3 '11 at 5:10

You can test weather it's a DNS error or exim issue by telnetting directly to the mail server. Then type the SMTP commands manually

telnet 25
helo server

The above is not strictly valid SMTP but should be enough for you to test with.

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.