移除 sendmail 套件以及安裝 postfix
yum remove sendmail 或者 rpm -e sendmail sendmail-cf yum install postfix
編輯 /etc/postfix/main.cf
... myhostname = homepbx.osslab.tw ... myorigin = $myhostname inet_interfaces = all ... # for seednet SMTP server relayhost = [tcts.seed.net.tw]:25 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd_seednet
建立連線密碼檔
新增 /etc/postfix/saslpasswd_seednet
tcts.seed.net.tw yourid@seed.net.tw:yourpassword
建立加密檔
# postmap hash:/etc/postfix/saslpasswd_seednet
# chmod 600 /etc/postfix/saslpasswd_seednet /etc/postfix/saslpasswd_seednet.db
重啟服務
service postfix restart
編輯 main.cf:
# for Godaddy SMTP relayhost = [smtpout.secureserver.net]:3535 smtp_sasl_auth_enable=yes smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd_godaddy smtp_sasl_type = cyrus #smtp_sasl_mechanishm_filter=digest-md5 #smtp_use_tls = yes smtp_sasl_security_options = noanonymous
建立密碼檔 saslpasswd_godaddy
smtpout.secureserver.net your@domain.name:thisispass
以 Hinet 的 SMTP Server 為例
參閱 Install and Setting ssmtp for FreePBX
Images 0 | ||
---|---|---|
No images to display in the gallery. |