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

How to install NextCloud in Ubuntu 22.04

What’s NextCloud Nextcloud is an open-source software suite that offers a secure, self-hosted alternative to popular cloud storage and productivity platforms. With a focus...
sysadmin.id
8 min read

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....
sysadmin.id
18 sec read

Free ext4 reserved blocks with tune2fs

Check disk usage df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 95G 82G 7.9G 92% / Check size of Reserved block count...
sysadmin.id
19 sec read