I have 2 domains (let's say a.com and s.com) on the same dedicated server. a.com still uses the email service of the server. s.com uses google apps email services and it works normally when somebody emailed from out of the server. But when I emailed from test@a.com to test@s.com it gives an error like
test@s.com exists in gmail but it doesn't on my server. As you know when I email from test@a.com email client connects to Postfix by smtp. Postfix checks that s.com is on the same server and tries to send the email locally. When it sees that test@s.com does not exist it gives that error.
Can't you configure plesk that when a domain uses different MX deletes it from Postfix list?
An error occurred while sending mail. The mail server responded: 5.1.1 <test@s.com>: Recipient address rejected: User unknown in virtual mailbox table. Please check the message recipient test@s.com and try again.
test@s.com exists in gmail but it doesn't on my server. As you know when I email from test@a.com email client connects to Postfix by smtp. Postfix checks that s.com is on the same server and tries to send the email locally. When it sees that test@s.com does not exist it gives that error.
Can't you configure plesk that when a domain uses different MX deletes it from Postfix list?