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.

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:

    root@mydomain.tld

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

2 Answers 2

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 youmailserver.net 25
helo server
mail from:test@test.com
rcpt to:test@yourdomin.com
data
test
.

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

share|improve this answer

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.