Qmail does not forward mail to a specific domain

email

I have a dedicated hosting account with GoDaddy.com. 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 (mydomain.com) – it says

 550 User xxx not found in mydomain.com 

I believe it thinks I've hosted email on the server itself (not gmail) and it's trying to validate if xxx@mydomain.com 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 127.0.0.1 – 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.

Best Answer

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

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

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

Related Topic