BoostryJP / ibet-Wallet-API

A powerful API suite for seamlessly building ibet blockchain wallet systems 🛠
https://ibet.jp/ibet-for-fin
Apache License 2.0
9 stars 0 forks source link

mail: Selectable encryption and login authentication methods #1386

Closed YoshihitoAso closed 1 year ago

YoshihitoAso commented 1 year ago

close #1383

I have made it possible to choose from several methods of encryption and login authentication for SMTP server connections.

Misc: Updated 3rd party modules.

purplesmoke05 commented 1 year ago

ENCRYPTION_METHOD=0(STARTTLS) and SMTP_SENDER_PASSWORD=some value

220 c9397601d0c5 smtp4dev ready
ehlo [172.23.0.4]
250-Nice to meet you.
250-8BITMIME
250-SIZE
250-SMTPUTF8
250-STARTTLS
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
STARTTLS
220 Ready to start TLS
ehlo [172.23.0.4]
250-Nice to meet you.
250-8BITMIME
250-SIZE
250-SMTPUTF8
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
AUTH CRAM-MD5
334 MTI2OTguNjM4MjE1MjUxNzkxNTgzNzgwQGM5Mzk3NjAxZDBjNQ==
aG9nZUBhLnRlc3QgMDE2YWNlYTgxNTFmMTg1MGQ0ZGM1YmE3NDQ4ZmU5ZTE=
235 Authenticated OK
mail FROM:<hoge@a.test> size=519
250 New message started
rcpt TO:<user@example.com>
250 Recipient accepted
data
354 End message with period
Content-Type: multipart/alternative;
 boundary="===============4710442219222741602=="
MIME-Version: 1.0
Subject: string
From: =?utf-8?b?44OG44K544OI55So44Ki44OJ44Os44K5?= <hoge@a.test>
To: user@example.com

--===============4710442219222741602==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============4710442219222741602==
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============4710442219222741602==--

.
250 Mail accepted
quit
221 Goodbye

ENCRYPTION_METHOD=0(STARTTLS) and SMTP_SENDER_PASSWORD=None

220 e94f32355e59 smtp4dev ready
ehlo [172.22.0.6]
250-Nice to meet you.
250-8BITMIME
250-SIZE
250-SMTPUTF8
250-STARTTLS
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
STARTTLS
220 Ready to start TLS
ehlo [172.22.0.6]
250-Nice to meet you.
250-8BITMIME
250-SIZE
250-SMTPUTF8
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
mail FROM:<hoge@a.test> size=519
250 New message started
rcpt TO:<user@example.com>
250 Recipient accepted
data
354 End message with period
Content-Type: multipart/alternative;
 boundary="===============3035395315811088249=="
MIME-Version: 1.0
Subject: string
From: =?utf-8?b?44OG44K544OI55So44Ki44OJ44Os44K5?= <hoge@a.test>
To: user@example.com

--===============3035395315811088249==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============3035395315811088249==
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============3035395315811088249==--

.
250 Mail accepted
quit
221 Goodbye

ENCRYPTION_METHOD=2(Not Encrypt) and SMTP_SENDER_PASSWORD=some value

220 7b50002bdfc0 smtp4dev ready
ehlo [172.22.0.6]
250-Nice to meet you.
250-8BITMIME
250-SIZE
250-SMTPUTF8
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
AUTH CRAM-MD5
334 NTA4Ni42MzgyMTUyNjU1NzA3NTYyNzVAN2I1MDAwMmJkZmMw
aG9nZUBhLnRlc3QgODhlMzM3Mzg4ZGY3YjgzYmFjOTBjYjI2NThhMjZiMWQ=
235 Authenticated OK
mail FROM:<hoge@a.test> size=519
250 New message started
rcpt TO:<user@example.com>
250 Recipient accepted
data
354 End message with period
Content-Type: multipart/alternative;
 boundary="===============1235185087206848519=="
MIME-Version: 1.0
Subject: string
From: =?utf-8?b?44OG44K544OI55So44Ki44OJ44Os44K5?= <hoge@a.test>
To: user@example.com

--===============1235185087206848519==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============1235185087206848519==
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============1235185087206848519==--

.
250 Mail accepted
quit
221 Goodbye

ENCRYPTION_METHOD=2(Not Encrypt) and SMTP_SENDER_PASSWORD=None

220 392eacaaae2e smtp4dev ready
ehlo [172.22.0.6]
250-Nice to meet you.
250-8BITMIME
250-SIZE
250-SMTPUTF8
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
mail FROM:<hoge@a.test> size=519
250 New message started
rcpt TO:<user@example.com>
250 Recipient accepted
data
354 End message with period
Content-Type: multipart/alternative;
 boundary="===============4559771796284970289=="
MIME-Version: 1.0
Subject: string
From: =?utf-8?b?44OG44K544OI55So44Ki44OJ44Os44K5?= <hoge@a.test>
To: user@example.com

--===============4559771796284970289==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============4559771796284970289==
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

--===============4559771796284970289==--

.
250 Mail accepted
quit
221 Goodbye