nerdexam
Red_Hat

EX300(23Q) · Question #7

Configure the SMTP mail service on serverX and desktopX which relay the mail only from local system through station.network0.example.com, all outgoing mail have their sender domain as example.com…

yum install postfix systemctl enable postfix systemctl start postfix vim /etc/postfix/main.cf inet_interfaces = loopback-only mydestination = myorigin = example.com mynetworks = 127.0.0.0/8, [::1]/128 relayhost = [station.network0.example.com] local_transport = error: local…

Configure Email Services

Question

Configure the SMTP mail service on serverX and desktopX which relay the mail only from local system through station.network0.example.com, all outgoing mail have their sender domain as example.com.
  • Ensure that mail should not store locally.
  • Verify the mail server is working by sending mail to a natasha user.
  • Check the mail on both serverX and desktopX with the below URL

Explanation

yum install postfix systemctl enable postfix systemctl start postfix

vim /etc/postfix/main.cf

inet_interfaces = loopback-only mydestination = myorigin = example.com mynetworks = 127.0.0.0/8, [::1]/128

relayhost = [station.network0.example.com] local_transport = error: local delivery disabled

systemctl restart postfix

Topics

#Postfix null client#SMTP relay#mail routing#sender domain rewrite

Community Discussion

No community discussion yet for this question.

Full EX300(23Q) Practice