Sending mail from sendmail to google apps account

djmicron

New member
Joined
Sep 28, 2009
Messages
3
Hello,
i 'm on a vps using directadmin where all email accounts are managed on google apps and everything is working fine, but sending mail to [email protected](where mydomain.com is a domain hosted on the vps) from on line form over php sendmail fails and i receive the mail inside the "catch all email box" of the related domain on my vps.

The problem is not related to spam, because sendmail works fine if the mail is sent to [email protected], or [email protected].
Then i have tried to use the google apps temporary address which is something as [email protected] and it worked out.

So i think the problem is that mail sent from my vps to a domain which is hosted on my vps, but uses an external mail server is sent as if mx records are pointing to the default local values, so i receive it locally.
I have tried a search before posting, but i have not found a solution, so any suggestion is welcome.
Thank You
Sal
 
Hello,
after some check i have found the solution:

under directadmin control panel go to email management/mx records

uncheck "Use this server to handle my emails."

i did this before of posting here, but it did not worked unless i have restarted the server.


Cheers

Sal
 
The server should not have to be restarted for this to work. You should check to see if the cron daemon is running on your server.

Jeff
 
hello,
i know the server should not be restarted, but i have done it after restarting every related service without obtaining the expected result.
Cron is running on my server and i don't know how directadmin apply such settings as disabling internal mail system.
Is it done by executing a cron job?
I'm new to directadmin, so a pinned guide on how to setup direct admin to use google apps avoiding conflicts with sendmail would be very useful for the growing number of google apps users.
Thank You

Sal
 
Thinking about it more now, I don't believe that DirectAdmin needs to run a cronjob. You should, however, check to make sure the taskq process is running on your server. If that's not the fix, then I don't know what is.

Jeff
 
Hello,

Regarding the use of external email servers:
http://help.directadmin.com/item.php?id=8

None of the email system need to be restarted in order for this option to work.

The only thing I can think of, if a reboot was needed, would be if named wasn't restarted after changing the MX records to the new values.
If that's the case where named isn't being restarted, as Jeff mentioned, you'd need to ensure the task.queue is being processed, as named should be restarted automatically:
http://help.directadmin.com/item.php?id=107

John
 
Hello,
after some check i have found the solution:

under directadmin control panel go to email management/mx records

uncheck "Use this server to handle my emails."

i did this before of posting here, but it did not worked unless i have restarted the server.


Cheers

Sal


Just wanted to add to this, I had this same problem, but my User Accounts didn't show up with the MX Record option (which is why I never noticed this before). Under your Hosting Plans you have to enable 'DNS Control' for each plan for the MX Record icon to show up. I was doing all the MX entries through the admin user / DNS Administration, but under that there is no option in DNS Administration to uncheck 'use this server for email'
 
Back
Top