Amazon SES:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第5行: | 第5行: | ||
=== 安裝 === | === 安裝 === | ||
官方文件有提到,但大家常常都會忘記,所以有可能會遇到套件沒有裝: | 官方文件有提到 要先裝這些套件<ref name="doc-ses-postfix">{{Cite web |url=https://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html | title=Integrating Amazon SES with Postfix |accessdate=2018-12-16}}</ref> ,但大家常常都會忘記,所以有可能會遇到套件沒有裝: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
第11行: | 第11行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
參考官方文件提供的<code>/etc/postfix/main.cf</code>設定<ref | 參考官方文件提供的<code>/etc/postfix/main.cf</code>設定<ref name"doc-ses-postfix"/>,這邊假定是使用<code>us-east-1</code>的SES服務: | ||
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> |
2018年12月26日 (三) 06:06的版本
Amazon SES是AWS的邮件服务。
让Postfix使用SES
安装
官方文件有提到要先装这些套件[1],但大家常常都会忘记,所以有可能会遇到套件没有装:
sudo apt install -y libsasl2-modules
参考官方文件提供的/etc/postfix/main.cf
设定引用错误:打开的<ref>
标签格式有误,或拥有一个错误的名称,这边假定是使用us-east-1
的SES服务:
relayhost = [email-smtp.us-east-1.amazonaws.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = encrypt
smtp_use_tls = yes
以及/etc/postfix/sasl_passwd
:
[email-smtp.us-east-1.amazonaws.com]:587 AKxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
并且产生对应的档案:
sudo postmap hash:/etc/postfix/sasl_passwd
参考文献
- ↑ Integrating Amazon SES with Postfix. [2018-12-16].