CentOS 6 1. 移除sendmail 安裝postfix # /etc/init.d/sendmail stop # yum remove sendmail # yum install postfix cyrus-sasl mailx 2. Gmail username and password Simple Authentication and Security Layer (SASL) # echo “smtp.gmail.com GMAIL_USERNAME:GMAIL_PASSWORD” > /etc/postfix/sasl_passwd # chmod 600 /etc/postfix/sasl_passwd # postmap hash:/etc/postfix/sasl_passwd 3. Postfix 設定 vim /etc/postfix/main.cf myhostname = xxxx.hang321.net mydomain = hang321.net # use Gmail SMTP …
