Configure a System to Forward All Email to a Central Mail Server - Setup Flashcards Preview

RHCE > Configure a System to Forward All Email to a Central Mail Server - Setup > Flashcards

Flashcards in Configure a System to Forward All Email to a Central Mail Server - Setup Deck (1):
1

Configure a System to Forward All Email to a Central Mail Server

yum install postfix -y

vim /etc/main.cf

myhostname = server.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = loopback-only
mydestination =
relayhost = 192.168.1.1

save

vim sasl_passwd
[smtp.gmail.com]:587 we3kb.we@gmail.com:password

chown root:postfix sasl_passwd
chmod 640 sasl_passwd

systemctl enable postfix && systemctl start postfix