外寄郵件功能

  • You do not have permissions to view this page - please try logging in.

使用 postfix 做 SMTP client

使用 seednet SMTP

移除 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
使用 Godaddy SMTP

編輯 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

使用 ssmtp 做 SMTP Client

以 Hinet 的 SMTP Server 為例
參閱 Install and Setting ssmtp for FreePBX

標籤 (Edit tags)
  • No tags
您必須 登入 才能發佈評論。
Powered by MindTouch Core