Hi guys.
A while ago a client asked me to configure his domain's MX to use Google for domains. No problem there. I did it and it's working fine.
The thing is that a couple of days ago my client discovered that his website's contact form had stopped working and he was not receiving any message in his google account.
After doing some debugging we cheked that all php, the mail server and his script were working fine. After a while I realized that the problem was that when he send an email using PHP, Exim realized that the account was local and delivered it without it ever leaving the local server.
So what I saw there was that the [email protected] was an existing account on /etc/virtual/domain.com/passwd. I asked my client to remove all his accounts from DA, since he will be working with Google. After he did so, the /etc/virtual/domain.com/passwd file was empty. But the problem persists. The log changed a little, but the base problem seems to be the same.
I also told him to remove any aliases that he could have, and it's still the same. The /etc/virtual/domain.com/aliases file has this:
(where "user" is the actual username which I changed for privacy).
How can I tell Exim not to assume any account @domain.com is local? I think I could remove the whole /etc/virtual/domain.com directory, but I think it wouldn't be a nice thing to do.
A while ago a client asked me to configure his domain's MX to use Google for domains. No problem there. I did it and it's working fine.
The thing is that a couple of days ago my client discovered that his website's contact form had stopped working and he was not receiving any message in his google account.
After doing some debugging we cheked that all php, the mail server and his script were working fine. After a while I realized that the problem was that when he send an email using PHP, Exim realized that the account was local and delivered it without it ever leaving the local server.
Code:
2009-05-04 19:06:34 1M1A3G-0004k6-C3 <= [email protected] U=apache P=local S=781 T="[Contacto] fsdfsd" from <[email protected]> for [email protected]
2009-05-04 19:06:34 1M1A3G-0004k6-C3 => webmaster <[email protected]> F=<[email protected]> R=virtual_user T=virtual_localdelivery S=907
So what I saw there was that the [email protected] was an existing account on /etc/virtual/domain.com/passwd. I asked my client to remove all his accounts from DA, since he will be working with Google. After he did so, the /etc/virtual/domain.com/passwd file was empty. But the problem persists. The log changed a little, but the base problem seems to be the same.
Code:
2009-05-04 20:23:31 1M1BFi-0005K1-GZ <= [email protected] U=apache P=local S=782 T="[Contacto] fsdfsd" from <[email protected]> for [email protected]
2009-05-04 20:23:31 1M1BFi-0005K1-GZ ** [email protected] F=<[email protected]> R=virtual_aliases:
2009-05-04 20:23:33 1M1BFi-0005K1-GZ Completed
I also told him to remove any aliases that he could have, and it's still the same. The /etc/virtual/domain.com/aliases file has this:
Code:
user:user
*: :fail:
(where "user" is the actual username which I changed for privacy).
How can I tell Exim not to assume any account @domain.com is local? I think I could remove the whole /etc/virtual/domain.com directory, but I think it wouldn't be a nice thing to do.