Closed graphiclunarkid closed 10 years ago
I've put the bare minimum sender config into postfix on the API server. This at least changed the origin domain to blocked.org.uk instead of the system assigned hostname.
We could try https://uk.mailjet.com/. It's £5/month for 30k messages/month, has both a RESTful and an event-driven API, and would handle #52 for us too. The company is French.
I don't know if we need a separate email service or not: maybe @gwire can say what he thinks. We're using our own servers for staff email SMTP, and also the mailman lists.
@gwire has said we should be fine to use ORG's existing SMTP server for this. I think we should do so, at least initially, as we don't have much time and regular SMTP from PHP sounds like a solved problem.
If whoever is working on this wants to email me I will share my login credentials so that we can get cracking. Hopefully the server will let us send as (blocked at) even though we're authenticating as me!
Hiya -
I can get local postfix on the API server to authenticate and relay through the ORG SMTP server, which keeps things nice and straightforward in PHP land.
I'm working on some of the foundation data handling for the email reports at the moment.
Is the preferred sender address "blocked@blocked.org.uk" or is there another option? I'll be putting it in config anyway, so if it gets changed later it's no big deal.
Daniel.
Per the discussion in #2 I think we are using (blocked at openrightsgroup dot org).
Forwarding through our local SMTP server to ORG's would make it easier to change provider later if necessary. Good idea!
Cool. If you can send me the SMTP auth details, I'll get them plumbed in.
Postfix set up with authenticated outbound relay. Canonical address mapping set up for the chosen email address. All tested from the command line and working fine. There isn't any enhanced mail queueing at the moment (as @mkillock mentions, AOL and Yahoo are very funny about accepting mail).
I can tell you what I've learnt doing this for work.
There might be other things, but that's the main ones. I can provide postfix config details
Sorry if teaching ORG to suck eggs!
Not at all - It's been a while since I'd delved into the unpleasant realities of commercial email delivery.
I think since we're relaying through ORG's mail server, a lot of the IP characteristic and rate-related issues are best dealt with there. I think we can call this issue closed, and monitor for delivery problems downstream.
We need to set up either an SMTP server of our own, or a third-party service, to send out emails to report subscribers. Below is some discussion from an earlier issue, copied for reference:
@dantheta: By the way - do we have a preferred way of sending email to subscribers? Something like mailchimp API or another service like that, or is it cool to use a PHP mailer class and the local postfix install on the webserver? @JimKillock: That's one for @gwire to answer @graphiclunarkid: MailChimp is hosted in the US, and although that doesn't technically contravene ORG's privacy policy, we're not exactly brimming with confidence in the sanctity of the Safe Harbour provisions either ;-) An alternative might be the German company Clever Reach - I hear they have a good API and I happen to have test keys in hand (for another ORG-related project). Otherwise, ORG uses Engaging Networks' e-Activist for its supporter communications, but I understand integration options are limited (perhaps non-existent). @dantheta: That's cool - I was just aiming to find out what you were already using. I'm equally happy with plain ol' SMTP too. I'm not sure what e-activists' facilities are like for sending personalised notifications to individual users. I can write the database part of the results sender and change notifier leaving the mail transport part of it 'til last, if that would be useful. @mkillock: I have some experience with setting up postfix to be a well behaved mass mailer, if that helps. Need to do things like only send one email per 20secs to AOL and such otherwise they block the server IP for 24 hours! Yahoo like DKIM signatures, some like SPF records and so on. If we do this, might be handy to have a separate sub domain for sending, else will need to track down all the IP addresses that use the main ORG domain, including e-activist's IPs.