These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Check if the server is the owner of the email on the new forum.
This is a question for a very tricky case
This is the background:
Let's say that there is a virtual server domain.com and that the emails for that domain are in GSuite, so, the virtualmin for that server has emails disabled and the MX records are set to google
The postfix began to grow a lot the queue because domain.com was sending emails, a lot of fake emails were sent from there
Is there a configuration or some code to force the virtualmin to check if he is the owner, or if he has that email that is sending, so if yes, send, and if no delete it?
So, in this case, email@example.com would be deleted; but another that exists, let's call it firstname.lastname@example.org, would send without issues?