nerdexam
Red_Hat

RH302 · Question #108

Your Local Domain is example.com. Configure the send mail server for your local LAN by following these conditions. i. Relay the mail from 192.168.0.0/24 Network ii. If any mail coming from…

1. vi /etc/mail/local-host-names example.com 2. vi /etc/mail/sendmail.mc dnl # DEAMON_OPTIONS('Port=smtp,Addr=127.0.0.1,Name=MTA')dnl 3. m4 /etc/mail/sendmail.mc >/etc/mail/sendmail.cf 4. vi /etc/mail/access 192.168.0 RELAY @cracker.org REJECT 5. service sendmail start |…

Service management

Question

Your Local Domain is example.com. Configure the send mail server for your local LAN by following these conditions. i. Relay the mail from 192.168.0.0/24 Network ii. If any mail coming from cracker.org domain block all mails. iii. user5's mail should be get by user2.

Explanation

  1. vi /etc/mail/local-host-names example.com
  2. vi /etc/mail/sendmail.mc dnl # DEAMON_OPTIONS('Port=smtp,Addr=127.0.0.1,Name=MTA')dnl
  3. m4 /etc/mail/sendmail.mc >/etc/mail/sendmail.cf
  4. vi /etc/mail/access 192.168.0 RELAY @cracker.org REJECT
  5. service sendmail start | restart
  6. chkconfig dovecot on
  7. vi /etc/dovecot.conf protocols = pop3 pop3s imap imaps
  8. service dovecot start | restart
  9. chkconfig dovecot on
  10. vi /etc/aliases user5: user2
  11. newaliases

Topics

#sendmail#mail relay#access control#mail aliases

Community Discussion

No community discussion yet for this question.

Full RH302 Practice