Page MenuHomePhabricator

Add mx-records for beta.wmflabs.org
Closed, ResolvedPublic

Description

After https://phabricator.wikimedia.org/T88204, beta wikis send out mails with $domain part set as beta.wmflabs.org.
But these wont come back still to deployment-mx as

$ dig +short -t mx beta.wmflabs.org
$ 

returns null. Should we be adding deployment-mx to the mx-records of beta wiki ?

Event Timeline

01tonythomas raised the priority of this task from to Needs Triage.
01tonythomas updated the task description. (Show Details)
01tonythomas added subscribers: 01tonythomas, Jgreen, hoo and 4 others.

Looks like mx records are maintained in LDAP.

root@virt1000:/home/yuvipanda# ldapsearch -x -D cn=proxyagent,ou=profile,dc=wikimedia,dc=org -b ou=hosts,dc=wikimedia,dc=org  -W dc=tools
Enter LDAP Password: 
# extended LDIF
#
# LDAPv3
# base <ou=hosts,dc=wikimedia,dc=org> with scope subtree
# filter: dc=tools
# requesting: ALL
#

# tools, hosts, wikimedia.org
dn: dc=tools,ou=hosts,dc=wikimedia,dc=org
mxRecord: 10 mail.tools.wmflabs.org
sOARecord: virt0.wikimedia.org. hostmaster.wikimedia.org. 1395340442 1800 3600
  86400 7200
objectClass: domainrelatedobject
objectClass: dnsdomain
objectClass: domain
objectClass: dcobject
objectClass: top
associatedDomain: tools.wmflabs.org
dc: tools
tXTRecord: v=spf1 mx -all

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

We can add a similar mxRecord entry for beta.wmflabs.org.

Aaaand bam

○ → dig   -t mx beta.wmflabs.org @virt1000.wikimedia.org

; <<>> DiG 9.8.3-P1 <<>> -t mx beta.wmflabs.org @virt1000.wikimedia.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60013
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;beta.wmflabs.org.		IN	MX

;; ANSWER SECTION:
beta.wmflabs.org.	3600	IN	MX	10 mx.beta.wmflabs.org.

;; ADDITIONAL SECTION:
mx.beta.wmflabs.org.	3600	IN	A	208.80.155.193

;; Query time: 620 msec
;; SERVER: 208.80.154.18#53(208.80.154.18)
;; WHEN: Mon Feb  2 18:59:19 2015
;; MSG SIZE  rcvd: 69

I added an LDAP entry from terbium:
mxRecord: 10 mx.beta.wmflabs.org to dn: dc=beta,ou=hosts,dc=wikimedia,dc=org

yuvipanda claimed this task.

Done :) @andrewbogott is there a way to do this from wikitech?