New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to blacklist mails using Centos Web Panel / Centos ?

Started by crazytechin, December 27, 2017, 07:21:13 AM

Previous topic - Next topic

crazytechin

I would like to know how can we blacklist mails so that they do not come into our mail box in Centos 7 or using Centos Web Panel.

Thanks in advance.

Jae

in /etc/postfix/main.cf

smtpd_relay_restrictions = check_sender_access hash:/etc/postfix/sender_blacklist

In /etc/postfix/sender_blacklist

   email1@yahoo.com            REJECT
   email2@gmail.com            REJECT
   email3@outlook.com            REJECT
   email4@domain.tld            REJECT

postmap hash:/etc/postfix/sender_blacklist
service postfix reload

crazytechin

Jae,

Thanks for responding.

There is no /etc/postfix/sender_blacklist file, Do I need to create it ?

Is there no way to add blacklist in Centos web panel or via webmail ?