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
- vi /etc/mail/local-host-names example.com
- vi /etc/mail/sendmail.mc dnl # DEAMON_OPTIONS('Port=smtp,Addr=127.0.0.1,Name=MTA')dnl
- m4 /etc/mail/sendmail.mc >/etc/mail/sendmail.cf
- vi /etc/mail/access 192.168.0 RELAY @cracker.org REJECT
- service sendmail start | restart
- chkconfig dovecot on
- vi /etc/dovecot.conf protocols = pop3 pop3s imap imaps
- service dovecot start | restart
- chkconfig dovecot on
- vi /etc/aliases user5: user2
- newaliases
Topics
#sendmail#mail relay#access control#mail aliases
Community Discussion
No community discussion yet for this question.