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 dedicated hosting account with I've pointed my domain's email to work with Google apps.

The server has qmail running and it forwards email to all domains just fine except for MY domain ( - it says

 550 User xxx not found in 

I believe it thinks I've hosted email on the server itself (not gmail) and it's trying to validate if exists on my server (which is not the case since it's all handled by google apps).

How do I make it forward mail to all domains?

Thank you :)

EDIT: I would only need it forwarding emails if the connection originates from - which I believe is the default way it's configured. So to clarify: I just need a purely forwarded configuration so my PHP scripts have the ability to send email.

share|improve this question
Sounds like you don't want an MTA at all... Why not just bag the qmail server and point your PHP scripts directly to gmail for outgoing email? – Scott Lundberg Oct 22 '09 at 13:29
problem with that is what happens when you can't connect to gmail (for whatever reason)? I prefer to have some sort of queue for sending mail very close close to the web scripts... whether that's a generic mqueue or a local smtp relay is up to the implementation, but i don't want my page bombing because of some random connectivity issue between me & google – jerm Apr 12 '12 at 13:10

Probably too late for the original poster, but maybe helpful if someone else comes around.

It sounds like is in /var/qmail/control/me and/or /var/qmail/control/locals. Change me to something like "" or some other hostname you control (maybe and use the same in locals.

You want to make sure that a bare "" doesn't appear in any of the files in /var/qmail/control, lest qmail think it's responsible for delivering the mail locally.

share|improve this answer

Have you configured all your MX records to point to Google? I believe Google has 5 addresses you need to map for MX records. Also, make sure you don't have any MX records pointing at GoDaddy's servers.

I'm not familiar with GoDaddy's hosting for qmail. How much control do you have over qmail's configuration? I you can edit the rcpthosts and locals, please provide the contents of those files.

share|improve this answer

Sections 3.3 through 3.5 of the Life with Qmail would be very helpful:

tomlogic already mentioned similar ideas

share|improve this answer

The problem is that on the one hand you are telling QMail that it handles the email locally and on the other you don't have the corresponding email accounts locally on your system

What you could do is use the smtproutes directive to tell QMail to redirect all emails for a particular domain to another host (in your case Google)

Edit the file (create it if it does not exist) /var/qmail/control/smtproutes and add a line

where can either be the IP Address of the server that is handling you email or you can substitute it with its FQDN. I have no idea what this is for Google Apps but it should be easy enough to find out.

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.