postfix

How to stop SPAM with Postfix RBL

To stop spam using RBL in postfix, edit main.cf vi /etc/postfix/main.cf Add smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_invalid_hostname, reject_unauth_pipelining, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient,…

Postfix enable Maildir

To enable postfix, run postconf -e “home_mailbox = Maildir/” systemctl restart postfix You can do it by editing /etc/postfix/main.cf vi /etc/postfix/main.cf Add…

Postfix email forward

On an Ubuntu Server, i done following to setup email forwarding. Install postfix apt -y install postfix Edit /etc/postfix/main.cf, add following vi…

Postfix disable IPv6

To disable IPv6 on the postfix mail server, edit vi /etc/postfix/main.cf Find inet_protocols = all Replace with inet_protocols = ipv4 Restart postfix…

postconf

postconf allow you to list/change postfix configuration. To list current config, run postconf -n To change a configuration, run postconf -e home_mailbox=Maildir/…