READ Free Dumps For RedHat- RH302
Question ID 17486 | Configure the send mail server for your local LAN. As well as the mail of user john |
Option A | Answer : Here your Local LAN means your domain named example.com. 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.0RELAY 5.service sendmail start | restart 6.chkconfig sendmail on /etc/mail/local-host-names file contains the aliases to hostname. Mail server program reads the /etc/mail/sendmail.cf. To change the configuration on mail server, we should edit the /etc/mail/sendmail.mc file and should generate the sendmail.cf using m4 command. By default sendmail server allows to connect to local host only. So we should edit the /etc/mail/sendmail.mc file to allow connect to other hosts. By default sendmail server will not forward mail. we should specify on /etc/mail/access to relay or to block mail coming from domain or network or individual email address. 7.vi /etc/aliases jane 8.newaliases We can redirect the mail of one user to another user using /etc/aliases file. In example all mail of john goes to jane user. |
Correct Answer | A |
Question ID 17487 | Configure to deny the pop and imap connection from outside local LAN as well as |
Option A | Answer : 1.vi /etc/hosts.deny ALL EXCEPT .example.com EXCEPT station20.example.com We can secure the services using tcp_wrappers. There are main two files, /etc/hosts.allow and /etc/hosts.deny. There will be three stage access checking -Is access explicitly permitted? Means permitted from /etc/hosts.allow? - Otherwise, Is access explicitly denied? Means denied from /etc/hosts.deny? - Otherwise, by default permit access if neither condition matched. To deny the services we can configure /etc/hosts.deny file using ALL and EXCEPT options In Client list can be either domain name or IP address. |
Correct Answer | A |