Share
Embed
Email: Beyond the send button
A guide to what happens after you hit the send button on an email
Daniel Knell
January 25, 2016
Transcript
56 slides
-
Saying Hello 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here, nice
to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n -
Is this line secure? 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com
here, nice to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n -
Is this line secure? 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com
here, nice to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n -
Is this line secure? 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com
here, nice to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] -
Lets start over… 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here,
nice to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n -
Lets start over… 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here,
nice to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n 250-mail.example.com here, nice to meet you bob.example.com\n 250 AUTH PLAIN LOGIN\n -
Papers please 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here, nice
to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n 250-mail.example.com here, nice to meet you bob.example.com\n 250 AUTH PLAIN LOGIN\n AUTH LOGIN\n -
Papers please 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here, nice
to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n 250-mail.example.com here, nice to meet you bob.example.com\n 250 AUTH PLAIN LOGIN\n AUTH LOGIN\n 334 VXNlcm5hbWU6\n -
Papers please 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here, nice
to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n 250-mail.example.com here, nice to meet you bob.example.com\n 250 AUTH PLAIN LOGIN\n AUTH LOGIN\n 334 VXNlcm5hbWU6\n Ym9iQGV4YW1wbGUuY29t\n -
Papers please 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here, nice
to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n 250-mail.example.com here, nice to meet you bob.example.com\n 250 AUTH PLAIN LOGIN\n AUTH LOGIN\n 334 VXNlcm5hbWU6\n Ym9iQGV4YW1wbGUuY29t\n 334 UGFzc3dvcmQ6\n -
Papers please 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here, nice
to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n 250-mail.example.com here, nice to meet you bob.example.com\n 250 AUTH PLAIN LOGIN\n AUTH LOGIN\n 334 VXNlcm5hbWU6\n Ym9iQGV4YW1wbGUuY29t\n 334 UGFzc3dvcmQ6\n cGFzc3dvcmQ=\n -
Papers please 220 mail.example.com SMTP\n EHLO bob.example.com\n 250-mail.example.com here, nice
to meet you bob.example.com\n 250-AUTH PLAIN LOGIN\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO bob.example.com\n 250-mail.example.com here, nice to meet you bob.example.com\n 250 AUTH PLAIN LOGIN\n AUTH LOGIN\n 334 VXNlcm5hbWU6\n Ym9iQGV4YW1wbGUuY29t\n 334 UGFzc3dvcmQ6\n cGFzc3dvcmQ=\n 235 Authentication succeeded\n -
Sending a message MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n -
Sending a message MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n \n -
Sending a message MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n \n What up dan? I’m just keeping it bob.\n - Bob\n -
Sending a message MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n -
Sending a message MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n 250 message queued\n -
Bye Bye MAIL FROM: [email protected]\n 250 ok\n RCPT TO: [email protected]\n
250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n 250 message queued\n QUIT\n -
Bye Bye MAIL FROM: [email protected]\n 250 ok\n RCPT TO: [email protected]\n
250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n 250 message queued\n QUIT\n 221 goodbye!\n -
MX Records $ dig MX danielknell.co.uk danielknell.co.uk. 3571 IN MX
1 aspmx.l.google.com. danielknell.co.uk. 3571 IN MX 5 alt1.aspmx.l.google.com. danielknell.co.uk. 3571 IN MX 5 alt2.aspmx.l.google.com. danielknell.co.uk. 3571 IN MX 10 alt3.aspmx.l.google.com. danielknell.co.uk. 3571 IN MX 10 alt4.aspmx.l.google.com. -
Passing it on 220 mx.google.com ESMTP i2si23053074wja.89 - gsmtp\n EHLO
mail.example.com\n -
Passing it on 220 mx.google.com ESMTP i2si23053074wja.89 - gsmtp\n EHLO
mail.example.com\n 250-mx.google.com at your service, mail.example.com\n 250 STARTTLS\n -
Passing it on 220 mx.google.com ESMTP i2si23053074wja.89 - gsmtp\n EHLO
mail.example.com\n 250-mx.google.com at your service, mail.example.com\n 250 STARTTLS\n STARTTLS\n -
Passing it on 220 mx.google.com ESMTP i2si23053074wja.89 - gsmtp\n EHLO
mail.example.com\n 250-mx.google.com at your service, mail.example.com\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n -
Passing it on 220 mx.google.com ESMTP i2si23053074wja.89 - gsmtp\n EHLO
mail.example.com\n 250-mx.google.com at your service, mail.example.com\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] -
Passing it on 220 mx.google.com ESMTP i2si23053074wja.89 - gsmtp\n EHLO
mail.example.com\n 250-mx.google.com at your service, mail.example.com\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO mail.example.com\n -
Passing it on 220 mx.google.com ESMTP i2si23053074wja.89 - gsmtp\n EHLO
mail.example.com\n 250-mx.google.com at your service, mail.example.com\n 250 STARTTLS\n STARTTLS\n 220 Go ahead\n [ magical encryption stuff ] EHLO mail.example.com\n 250 -mx.google.com at your service, mail.example.com\n -
SPF Record $ dig TXT example.com example.com. 3585 IN TXT
"v=spf1 ip4:203.0.113.0/24 ~all” -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n From: [email protected] To: [email protected] DKIM-Signature a=rsa-sha1; q=dns; d=example.com; [email protected]; s=example; c=relaxed/ simple; t=1117574938; x=1118006938; h=from:to:subject:date; b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR\n \n -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n From: [email protected]\n To: [email protected]\n DKIM-Signature a=rsa-sha1; q=dns; d=example.com; [email protected]; s=foobar; c=relaxed/ simple; t=1117574938; x=1118006938; h=from:to:subject:date; b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR\n \n -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n From: [email protected]\n To: [email protected]\n DKIM-Signature a=rsa-sha1; q=dns; d=example.com; [email protected]; s=foobar; c=relaxed/ simple; t=1117574938; x=1118006938; h=from:to:subject:date; b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR\n \n What up dan? I’m just keeping it bob.\n - Bob\n -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n From: [email protected]\n To: [email protected]\n DKIM-Signature a=rsa-sha1; q=dns; d=example.com; [email protected]; s=foobar; c=relaxed/ simple; t=1117574938; x=1118006938; h=from:to:subject:date; b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n -
DKIM Recod $ dig TXT foobar._domainkey.example.com foobar._domainkey.example.com. 2607 IN TXT
"v=DKIM1\; k=rsa\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCXBN08ApG6sfTDR0CQlmQ2aSEaaHnyux7HAv3AmKeKkUycvy1 SiT2bM6HJqozV+MkEi4Ut+tHm0OkTx4d4DyX7rT0pI6nJ6R75calBpT+h/ pTC1TWrY8C0CIxutlwBKgeJxbJmXVvW/g9PdaLMREITMizTOS3dXxoOJdWj/SRjwwIDAQAB" -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n From: [email protected]\n To: [email protected]\n DKIM-Signature a=rsa-sha1; q=dns; d=example.com; [email protected]; s=foobar; c=relaxed/ simple; t=1117574938; x=1118006938; h=from:to:subject:date; b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n 250 message queued\n -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n From: [email protected]\n To: [email protected]\n DKIM-Signature a=rsa-sha1; q=dns; d=example.com; [email protected]; s=foobar; c=relaxed/ simple; t=1117574938; x=1118006938; h=from:to:subject:date; b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n 250 message queued\n QUIT\n -
Passing it on MAIL FROM: [email protected]\n 250 ok\n RCPT TO:
[email protected]\n 250 ok\n DATA\n 354 Start mail input; end with <CRLF>.<CRLF>\n Subject: Bobbing it up\n From: [email protected]\n To: [email protected]\n DKIM-Signature a=rsa-sha1; q=dns; d=example.com; [email protected]; s=foobar; c=relaxed/ simple; t=1117574938; x=1118006938; h=from:to:subject:date; b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR\n \n What up dan? I’m just keeping it bob.\n - Bob\n .\n 250 message queued\n QUIT\n 221 goodbye!\n -
DMARC $ dig TXT _dmarc.example.com _dmarc.example.com. 57 IN TXT "v=DMARC1;
p=none; rua=mailto:[email protected]; ruf=mailto:[email protected];" -
Useful terms • SMTP (Simple Mail Transfer Protocol) • SPF
(Sender Policy Framework) • DKIM (Domain Keys Identified Mail) • DMARC (Domain-based Message Authentication, Reporting & Conformance)