fyiorgnz / alaveteli

OIA/LGOIMA (Freedom of Information) request system: New Zealand fork of mysociety/alaveteli
https://fyi.org.nz/
Other
4 stars 3 forks source link

Display message delivery status #10

Open olineham opened 5 years ago

olineham commented 5 years ago

Email delivery status should be displayed on initial requests and follow-ups so that delivery problems are detected automatically and communicated to users.

olineham commented 5 years ago

Alaveteli has a log file reader (MailServerLog.load_file) in Rails code for Postfix and Exim, called by scripts/load-mail-server-logs intended to be run by cron. This of course assumes that outgoing mail is delivered by our own Postfix (and not through a service like SES) and that everything runs on one giant server (or at least servers sharing NFS mounts).

We could..

  1. Add our own code in Rails to talk to our email service's API (e.g. SES), or
  2. React to delivery events from our service (e.g. SES), generate a temporary file in Postfix-like format for the purposes of feeding it to MailServerLog.load_file.
nigeljonez commented 4 years ago

Will be closed with #1 when we get SES & the SQS Sidekiq task pulling in delivery statuses.