Set up outgoing mail on EC2 instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Android Infrastructure |
Fix Released
|
High
|
Paul Sokolovsky | ||
Linaro CI |
Fix Released
|
Critical
|
Paul Sokolovsky |
Bug Description
From Loic's mail:
On Tue, Feb 14, 2012, Loïc Minier wrote:
> * using some SMTP relay account; I've created a dedicated
> <email address hidden> gmail account for this purpose and we could
> use it on multiple instances as long as we know people wont report
> its output as spam and as long as traffic remains "reasonnable"
> (can't host a 1000 users service behind it I guess)
I've set this up now; I had to:
* create a 600 /etc/postfix/
[smtp.
* postmap /etc/postfix/
* remove these lines from /etc/postfix/
relayhost =
default_
relay_transport = error
(I guess the later two were added to avoid writing too many emails)
* added these lines to /etc/postfix/
=======
# next-hop destination of non-local mail
relayhost = [smtp.gmail.
# enable SASL authentication in the Postfix SMTP client
smtp_sasl_
# optional SMTP client lookup tables with one SASL username:password entry per
# remote hostname or domain, or sender address when sender-dependent
# authentication is enabled
smtp_sasl_
# Postfix SMTP client SASL security options; drop noplaintext as to allow
# plaintext methods
smtp_sasl_
# directory with PEM format certificate authority certificates that the Postfix
# SMTP client uses to verify a remote SMTP server certificate
smtp_tls_CApath = /etc/ssl/certs
# enable additional Postfix SMTP client logging of TLS activity; log TLS
# handshake and certificate information
smtp_tls_loglevel = 1
# default SMTP TLS security level for the Postfix SMTP client; opportunistic
# TLS
smtp_tls_
# name of the file containing the optional Postfix SMTP client TLS session
# cache
smtp_tls_
=======
* reload postfix
* send a test email with echo coin | sendmail <email address hidden>
-- arrived fine
What remains to be done is setting up forwarding; I recommend:
* add a root: ubuntu to /etc/aliases
* add a ~ubuntu/.forward file with email addresses (one by line) which
should receive the traffic
* deal with emails which ended up in /var/mail/root and /ubuntu (mutt
-f /var/mail/ubuntu, then "b" to bounce them and "d" to delete them)
Changed in linaro-android-infrastructure: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in linaro-android-infrastructure: | |
assignee: | nobody → Paul Sokolovsky (pfalcon) |
status: | Triaged → In Progress |
Changed in linaro-android-infrastructure: | |
status: | Fix Committed → Fix Released |
Changed in linaro-ci: | |
status: | Fix Committed → Fix Released |
apt-get install postfix (default choices for interactive config)