Postfix fighting spam with PostGrey and RBL

24 sec read

How to setup Postfix to fighting spam with PostGrey and RBL in Ubuntu Linux
+ Installing PostGrey

apt-get install postgrey

+ Setup Postfix with PostGrey

vim /etc/postfix/main.cf

Add rules some like these:

smtpd_recipient_restrictions = 
  permit_mynetworks, 
  permit_sasl_authenticated,
  reject_non_fqdn_hostname, 
  reject_invalid_hostname, 
  reject_non_fqdn_sender, 
  reject_unknown_sender_domain, 
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_rbl_client uribl.abuse.ro, 
  reject_rbl_client zen.spamhaus.org,
  reject_rbl_client bl.spamcop.net,
  reject_rbl_client cbl.abuseat.org,
  check_policy_service inet:127.0.0.1:10023,
  permit

+ Restarting PostGrey and Postfix

/etc/init.d/postgrey restart
/etc/init.d/postfix restart

Reset root password on CentOS 7

Edit boot menu on-the-go 0. reboot the CentOS 7 and press ESC when GRUB menu show up on the screen and press “e”1. find...
Sysadmin.ID
18 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *