Configure a System to Forward All Email to a Central Mail Server - Setup Flashcards
1
Q
Configure a System to Forward All Email to a Central Mail Server
A
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