• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question POSTFIX - Is there a way to check Recipient email before it is sent ?

alexk345

Basic Pleskian
Scenario

1. Site may be hacked and someone using some form to keep sending email with your email account.
2. Also someone act as email client or hack webmail password and send it .

Most of the cases it will be send from your domain email.

We cant fool proof that.

But i am thinking of dictionary of emails only be recipient. Who ever hacks our system may not know recipient emails

I initially thought virtualbox_alias and Virtualbox_domains are for that. I think they are for incoming emails.

I need something to filter and quarantine any email send from Postfix server.

I am going though all the configuration...i cant figure out. Who can help?

I saw Hook stuff in master.cf. I was able to capture sender and recipient email with regex. Then i have no idea how to make it quarantine and pass.
 
The first thing that you should to is set proper outgoing sending limits. That way if an email account is compromised then you can limit the damage that the email account can do before you are alerted:

 
That is throttling. I solved it by going deep into Postfix. Basically now even someone hack my site and found out password of existing users , he cant spam to outside world. It will be rejected at posfix level. even if someone send from outside to our non existant email , it will be rejected and will be taken care of by fail2ban after 3 attempt.

Still few more issue i need to take care off. Basically catch all. NO MORE SPAM from my server.
 
Back
Top