Faruque Ahmed : MCP, MCSA, MCSE, MCTS, MCIT, CCNA, OCA, OCP, GCP
---------
# postmap /etc/postfix/main.cf && postfix reload
# yum -y install postfix*
postconf -A
postfix check
postconf -v
postconf -h
postconf -n
Run the following command and you will see pcre is now supported.
postconf -m
systemctl enable postfix
systemctl restart postfix
# openssl passwd -crypt AAAAAKa1234
dHaka 2020# GUKSs55uL24bY
dhaka 2020BD AVGvQgGut5CAM
ExL -sheet Formula
=TEXTJOIN(",",false,A1:A115) - No space
=TEXTJOIN(", ",false,A1:A115) - Space
# cd /etc/postfix
touch body_checks
touch recipient_bcc
touch sender_bcc
touch block_attachments
touch allowed-users
touch restricted-mail-groups
touch local_domains
touch restricted_senders
cp /etc/aliases /etc/postfix/aliases
cp main.cf main.cf.ORG
cp master.cf master.cf.ORG
cp aliases aliases.ORG
cp access access.ORG
Block # LINE main.cf
116 #inet_interfaces = localhost
119 # inet_protocols = all
inet_protocols = ipv4
164 #mydestination = $myhostname, localhost.$mydomain, localhost
386 #alias_maps = hash:/etc/aliases
397 #alias_database = hash:/etc/aliases
inet_protocols = ipv4
# vi /etc/postfix/header_checks
/^Subject:/ WARN
/^User-Agent:/ IGNORE
/^From:.*<#.*@.*>/ REJECT
/^Return-Path:.*<#.*@.*>/ REJECT
/Payment status/ REDIRECT junk.mail@worldcm.net
# vi /etc/postfix/body_checks
### allow pflogsumm reports through postfix (body_checks file) ###
/^ {6,11}[[:digit:]]{1,6}[ km]/ OK
~^[[:alnum:]+/]{60,}$~ OK
/^[A-Za-z0-9+\/=]{4,76}$/ OK
--------