postfix
https://www.server-world.info/en/note?os=CentOS_7&p=mail

#virtual_alias_domains = hensler.net
virtual_alias_maps = hash:/etc/postfix/virtual

ADD forwarder addresses
vi /etc/postfix/virtual
postmap /etc/postfix/virtual
service postfix restart

dovecot
https://www.server-world.info/en/note?os=CentOS_7&p=mail&f=2

DNS
hensler.net. A xxx.xxx.xxx.xxx
hensler.net. MX 10 mail.hensler.net
mail.hensler.net. CNAME hensler.net
wordpress.hensler.net. A xxx.xxx.xxx.xxx

ROUTER
25,110,143,80,443

FIREWALL
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7

systemctl stop firewalld.service
 firewall-cmd --zone=public --permanent --add-service=http
 firewall-cmd --zone=public --permanent --add-service=https
 firewall-cmd --add-service=smtp --permanent
 firewall-cmd --add-port={110/tcp,143/tcp} --permanent
 firewall-cmd --reload
 firewall-cmd --zone=public --list-services
 nmap -sT -O localhost (show open ports)

LOG
tail -f /var/log/maillog

Leave a Reply

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