I have purchased a dedicated server some days ago and I think I don't have enough knowledge to configure its DNS etc. Well, I'll describe my situation.
I have a dedicated server for virtualization, it is a SolusVM Xen Slave. My SolusVM Master is a simple VPS in another provider. Inside this dedicated server I have some VPS: 1 - A personal VPS, doesn't matter. 2 - A VPS with Plesk 10 installed. 3 - A VPS with cPanel installed. 4 and 5 - Small VPSs that are SolusVM DNS Servers, they are used to manage rDNS to other VPS inside the dedicated.
I also have the domain rafaa.me. This domain is registered with Dynadot and I have a Google Apps account for it. My personal email is firstname.lastname@example.org and I have an email email@example.com which is used for some of my websites. For example, I have a small website that sends some info to registered users every morning. This website used to use Google mail servers to send the emails, but due to the Google policies they suspended firstname.lastname@example.org in my Google Apps account.
According to this I concluded that I would need my own mail server in order to send the emails normally without getting suspended. That is because I installed the Plesk and the cPanel VPSs (among other reasons).
Well, I described my situation. Now I will ask for help and below I will describe what solution I tried, which didn't work.
My question is: how do I proceed in order to send emails correctly FROM email@example.com (which is in Google Apps) THROUGH my Plesk mail server?
Let me describe the solution I tried, which didn't work.
I created the domain rafaa.me in Plesk. Created an email called firstname.lastname@example.org inside this domain in the panel. So far, so good. I ran a test script using SMTP authentication to send emails in another VPS. The script works successfully, I could send emails successfully FROM email@example.com THROUGH the Plesk mail server.
Now the problem.
The problem is: it didn't work when I try to send an email (using the PHP script, of course) FROM firstname.lastname@example.org THROUGH Plesk mail server TO some @rafaa.me email. It gives me:
Failed to add recipient: email@example.com [SMTP: Invalid response code received from server (code: 550, response: 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table)]
What I think the problem is.
Well, the mail server is not dumb. I think he's assuming rafaa.me is in the local server so it doesn't need to look for another server trying to find firstname.lastname@example.org. And I thought that it was happening because Plesk has its own nameserver, and the MX records in this nameserver was pointing to itself.
Trying to solve I disabled the Plesk nameservers and told Plesk to search in Dynadot nameservers. It didn't work too.
I really do not know how to proceed. Would someone explain me how to proceed with this issue?
Any help would be appreciated.
Thank you, Rafael Andreatta