Upgrade to Pro — share decks privately, control downloads, hide ads and more …

透過型SMTPプロキシによるメール送信集約とキュー輻輳回避の検討 / A Study on A...

linyows
July 02, 2021

透過型SMTPプロキシによるメール送信集約とキュー輻輳回避の検討 / A Study on Aggregation of Email Transfer and Avoidance of QueueCongestion using a Transparent SMTP Proxy

2021年7月2日 マルチメディア,分散,協調とモバイル(DICOMO2021)シンポジウムでの発表資料です。
https://tsys.jp/dicomo/2021/program/program.html#7H

linyows

July 02, 2021
Tweet

More Decks by linyows

Other Decks in Technology

Transcript

  1. 1. എܠͱ໨త 2. ఏҊख๏ͱ༧උ࣮ݧ 3. ֓೦࣮ূ 4. ·ͱΊͱࠓޙͷ՝୊ ໨࣍ Tomohisa

    Oda ID: @linyows ॴଐ: GMOϖύϘגࣜձࣾ ϗεςΟϯάࣄۀ෦
  2. • άϩʔόϧIPv4ΞυϨε਺ͷ੍໿ʹΑΓɺ֎෦΁ͷϝʔϧૹ৴αʔό͸ͳΔ ΂͘ू໿͢Δߏ੒ എܠͱ໨త ϝʔϧૹ৴ʹ͓͚Δैདྷख๏ 5 Mail User Agent Mail

    Submission Agent Mail Transfer Agent Mail Delivery Agent Mail Transfer Agent (MX) Mail User Agent Mail Hosting 📧 👩💻 👨💻 133.54.XXX.XXX
  3. 7 Mail User Agent Mail User Agent Mail Hosting Mail

    Transfer Agent (MX) Mail Transfer Agent (MX) Mail Transfer Agent (MX) Mail Submission Agent Mail Transfer Agent Mail Delivery Agent Mail Transfer Agent (MX) Mail User Agent 📧 👩💻 👨💻 🧟 📧 📧 📧 📧 ✉ 🦠 ✉ 🎣 📧 📧 📧 📧 📧 📧 📧 📧 📧 💭 ❓ ❌ 👨🔧 🗑 ✉ 🎣 ✉ 🎣 Operation 133.5.XXX.XXX
  4. • ϝʔϧૹ৴αʔόΛςφϯτຖίϯςφʹ෼཭͢Δ*1ઌߦݚڀΛࢀর • ίϯςφ͔Β֎΁ͷSMTP௨৴ΛಁաܕSMTPϓϩΩγʹసૹ͢Δ • ಁաܕSMTPϓϩΩγ͸MXϗετʹ઀ଓ͢Δ • ಁաܕSMTPϓϩΩγͰ͸SMTPͷίϚϯυ΍MXϗετ͔ΒͷϨεϙϯεͳͲ ΛϩάͳͲʹग़ྗ͢Δ ఏҊख๏ͱ༧උ࣮ݧ

    ಁաܕSMTPϓϩΩγͷఏҊ 10 *1: দຊ ྄հ, খా ஌ԝ (GMOϖύϘגࣜձࣾ ϖύϘݚڀॴ), ּݪ ٛߊ, ౢ٢ ོ෉ (۝भେֶ ৘ใج൫ݚڀ։ൃηϯλʔ), ۚࢠ ߊհ (۝भେֶ αΠ όʔηΩϡϦςΟηϯλʔ), ܀ྛ ݈ଠ࿠ (GMOϖύϘגࣜձࣾ ϖύϘݚڀॴ), Ԭଜ ߞೋ (۝भେֶ ৘ใج൫ݚڀ։ൃηϯλʔ)ʮਫ਼៛ͳղੳͱ੍ޚ͕ Մೳͳ ߃ৗੑͷ͋Δϝʔϧج൫ʯϚϧνϝσΟΞɼ෼ࢄɼڠௐͱϞόΠϧ(DICOMO2018)γϯϙδ΢Ϝ, pp. 1383 - 1389, July 2018
  5. 11 Mail User Agent Mail Hosting Mail Submission Agent Mail

    Delivery Agent Mail Transfer Agent (MX) Mail User Agent 👩💻 👨💻 Transparent SMTP Proxy Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Routing 📧 📧 📧 133.5.XXX.XXX
  6. Output Log iptables • ಁաܕSMTPϓϩΩγ͸SMTPίϚϯυ΍MXϗετͷϨ εϙϯεΛϩάʹग़ྗ͢Δ • ϝʔϧૹ৴ίϯςφͱಁաܕSMTPϓϩΩγ͕ಉҰϗε τͰ͋ΔલఏͰͦͷؒͷ௨৴͸ฏจɺಁաܕSMTPϓϩ ΩγͱMXϗετ͸STARTTLSରԠΛ͢Δ

    • ͦͷͨΊɺϝʔϧૹ৴αʔόʹSTARTTLSΛඇରԠͱͯ͠ ϨεϙϯεΛॻ͖׵͑TLSμ΢ϯάϨʔυΛߦ͏ ϦϙδτϦ: https://github.com/linyows/warp ֓೦࣮ূ ϓϩτλΠϓͷ࣮૷ 16 Mail Transfer Agent (MX) Transparent SMTP Proxy Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Mail Transfer Agent Container Host
  7. 2021/02/06 14:50:48 connected from 192.168.30.40:5749 3 2021/02/06 14:50:48 connected to

    192.168.30.50:2 5 2021/02/06 14:50:48 <- 220 receiver ESMTP Postfix (Ubuntu)\r\ n 2021/02/06 14:50:48 -> EHLO sender\r\ n 2021/02/06 14:50:48 |< 250-receiver\r\n250-PIPELINING\r\n250-SIZE 10240000\r\n250-VRFY\r\n250-ETRN\r\n250-STARTTLS\r\n250- ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250-DSN\r\n250-SMTPUTF8\r\n250 CHUNKING\r\ n 2021/02/06 14:50:48 <- 250-receiver\r\n250-PIPELINING\r\n250-SIZE 10240000\r\n250-VRFY\r\n250-ETRN\r\n250- ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250-DSN\r\n250-SMTPUTF8\r\n250 CHUNKING\r\ n 2021/02/06 14:50:48 |> STARTTLS\r\ n 2021/02/06 14:50:48 >| MAIL FROM:<root@sender> SIZE=327\r\nRCPT TO:<root@receiver> ORCPT=rfc822;root@receiver\r\nDATA\r\ n 2021/02/06 14:50:48 |< 220 2.0.0 Ready to start TLS\r\ n 2021/02/06 14:50:48 |> EHLO sender\r\ n 2021/02/06 14:50:48 pipe locked for tls connectio n 2021/02/06 14:50:48 |< 250-receiver\r\n250-PIPELINING\r\n250-SIZE 10240000\r\n250-VRFY\r\n250-ETRN\r\n250- ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250-DSN\r\n250-SMTPUTF8\r\n250 CHUNKING\r\ n 2021/02/06 14:50:48 tls connected, to pipe unlocke d 2021/02/06 14:50:48 -> MAIL FROM:<root@sender> SIZE=327\r\nRCPT TO:<root@receiver> ORCPT=rfc822;root@receiver\r\nDATA\r\ n 2021/02/06 14:50:48 <- 250 2.1.0 Ok\r\n250 2.1.5 Ok\r\n354 End data with <CR><LF>.<CR><LF>\r\ n 2021/02/06 14:50:48 -> Received: from sender (localhost [127.0.0.1])\r\n by sender (Postfix) with SMTP id 45B113EA9B\r\n for <root@receiver>; Sat, 6 Feb 2021 14:50:48 +0000 (UTC)\r\nFrom: <root@sender>\r\nTo: <root@receiver>\r\nDate: Sat, 6 Feb 2021 14:50:48 +0000 (UTC)\r\nMessage-Id: <a77e.0003.0000@sender>\r\nSubject: Hi, Receiver from Sender\r\n\r\nXXXXXXXXXX\r\n.\r\nQUIT\r\ n 2021/02/06 14:50:48 <- 250 2.0.0 Ok: queued as 76DAD4113D\r\n221 2.0.0 Bye\r\ n 2021/02/06 14:50:48 connections closed ಁաܕSMTPϓϩΩγ͕ग़ྗ͢Δϩά