發表文章

目前顯示的是有「postfix」標籤的文章

Automatic forwarding email on Linux/Unix

 1. login your account  from ssh connection with mail server $ touch ~/.forward $ echo 'account@forwarding.mail' >> ~/.forward $ chmod 644 ~/.forward   2. Other account at the same server $ su -    # change to root $ echo 'fromaccount: otheraccount' >> /etc/alias $ newaliases References https://unix.stackexchange.com/questions/301310/how-can-i-automatically-forward-system-mail  https://kb.iu.edu/d/aeur  

Firewalld reject IPs on CentOS 7/8

圖片
Use rich-rule $ firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='10.0.10.0/24' reject" or add port $ firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='10.0.10.0/24' port port='110' protocol='tcp' reject" $firewall-cmd --reload @reject dovecot postfix from external IP and accept internal IP firewall-cmd --permanent --add-rich-rule='rule family=ipv4 port port="25" protocol="tcp" reject' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 port port="110" protocol="tcp" reject' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 port port="143" protocol="tcp" reject' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address='192.168.0.0/16' accept' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address='127...