Check if the server is the owner of the email

1 post / 0 new
#1 Tue, 11/19/2019 - 10:56
ArturoRejon

Check if the server is the owner of the email

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, fake@domain.com would be deleted; but another that exists, let's call it real@another.net, would send without issues?

Thanks