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've got a domain ( registered with Google Apps, and have their mailservers registered as the MX record for my domain. I also have a site with a central mailserver (Exim4 on Ubuntu), and a number of other servers. Each server is set to use this mailserver as a smarthost for outgoing mail.

The issue I have is that when a server sends mail to an address of the format (e.g. when a cronjob fails), the mailserver doesn't know what to do with it. It tries to make an SMTP connection directly to, which fails.

How would I configure exim so that it knows to deliver @* to the MX record for

share|improve this question

In DNS for your zone, create an MX record for, pointed to the same hostname that MX is pointed to.

Or configure your various servers to send mail from * instead of *

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.