*Mail Serverの作成
- hostnameの設定。(privateDNS上のhostnameをほっとくとmail Serverにメールが届かない)
- echo <domain name> > /etc/hostname
- hostname -F /etc/hostname
- service sendmail restart
- sendmailの外部からの受信を可能に設定する。
- cd /etc/mail
- vi sendmail.mc
before
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl⬇
after(comment out)
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl- m4 sendmail.mc > sendmail.cf
- service sendmail restart
Leave a Reply