Follow-up from T41785
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | taavi | T249237 Fix Cloud VPS and Toolforge mail servers to work with the modern internet | |||
Resolved | taavi | T208281 Set up SPF, DKIM, etc. for new cloud MX servers | |||
Resolved | herron | T41785 Create a Cloud VPS SMTP smarthost | |||
Resolved | • bd808 | T174618 Request creation of project-smtp VPS project | |||
Resolved | herron | T206261 Routing RFC1918 private IP addresses to/from WMCS floating IPs |
Event Timeline
Current wmflabs.org TXT is v=spf1 mx ?all, with MX records pointing at the prod MXes - I doubt those prod MXes can handle inbound mail for labs right now so I wonder why they're there.
we should probably fix that
although this happened and I have no idea why: https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/293057/ - do you remember @faidon?
Yes, this was because of T137160. wmflabs.org inbound emails are being handled by prod MXes right now, with only a handful of aliases being defined.
Not necessarily! For what we're currently doing -just aliasing a handful of aliases to a few people- I think it's fine as it is (but if the cloud admin team wants that separate for some reason, that's their call of course). We're not crossing any prod/WMCS barriers as it is, so I don't consider this a security issue.
If at some point in the future we want to do smarter things like dynamic lookups to OpenStack APIs or LDAP to route inbound emails to WMCS project owners or stuff like that (similar to what tools.wmflabs.org's MX does right now) then it would probably be a good idea to split it up to its own thing.
I suppose we can infer from this that the private aliases entries for wmflabs.org don't send off to any other labs mail servers in a way that wouldn't be permitted to other random internet servers.
Yeah.
So to me it sounds like we have to keep the MX record pointing at prod and set the SPF TXT record to:
v=spf1 mx ip4:185.15.56.18 ip4:185.15.56.19 ?all
(I don't think there's a way to include mx-out01/mx-out02 by name instead of IP without using MX?)
Mentioned in SAL (#wikimedia-cloud) [2018-11-02T20:12:27Z] <Krenair> Updated TXT record for T208281 - just added the new mx-out IPs
Mentioned in SAL (#wikimedia-cloud) [2023-07-04T12:32:28Z] <taavi> configure DKIM signing for wmflabs.org and wmcloud.org on mx-out servers T208281
I'm tentatively closing this. The mx-out servers now DKIM sign outgoing e-mails. In addition, there's now a SPF policy for wmcloud.org which allows WMF production networks and the mx-out floating IPs and softfails everything else.