RHCE6 Preperation (9) – SMTP,MTA, shell script, ftp

1, Configure SMTP mail service according to the following requiremnets:— Your mail server should accept mail from remote hosts and localhost— harry must be able to receive mail from remote hosts — Mail delivered to mary should spool into the default mail spool for mary /var/spool/mail/mary install the postfix, yum install -y postfix start the postfix and make it auto on when booting, service postfix start chkconfig postfix on modify the main.cf vim /etc/postfix/main.cf the original inet_interfaces is localhost, if needs to receive the internal and external mails, needs to switch on inet_interfaces = all, and comments off localhost, as following, inet_interfaces = all #inet_interfaces = $myhostname #inet_interfaces = $myhostname, localhost #inet_interfaces = localhost harry is local user, so he can receive the external mail, mary should spool into the default mail spool for mary /var/spool/mail/mary, this one also no need to do anything.