Fakesmtp

1 개요[ | ]

Fakesmtp
user01@localhost:~$ docker run --name smtp -d -p 25:25 -v /tmp/fakemail:/var/mail ghusta/fakesmtp
c69c300d61c7737ba96e71d0c225d55ddf03cdc990d92dfb9bc9a88257599889
user01@localhost:~$ docker ps 
CONTAINER ID   IMAGE             COMMAND                  CREATED              STATUS              PORTS                NAMES
c69c300d61c7   ghusta/fakesmtp   "/bin/sh -c 'java -j…"   About a minute ago   Up About a minute   0.0.0.0:25->25/tcp   smtp
user01@localhost:~$ docker logs smtp
07 Apr 2021 09:57:59 ERROR com.nilhcem.fakesmtp.core.I18n - Can't find bundle for base name i18n/messages, locale en
07 Apr 2021 09:57:59 INFO  com.nilhcem.fakesmtp.core.I18n - Will use default bundle (en_US) instead
07 Apr 2021 09:57:59 INFO  org.subethamail.smtp.server.SMTPServer - SMTP server *:25 starting
07 Apr 2021 09:57:59 INFO  org.subethamail.smtp.server.ServerThread - SMTP server *:25 started
user01@localhost:~$ echo "This is the message body" | swaks --to someone@gmail.com --from "you@example.com" --server localhost --auth LOGIN --auth-user "you@example.com" --auth-password "abc123" -tls
=== Trying localhost:25...
=== Connected to localhost.
<-  220 c69c300d61c7 ESMTP SubEthaSMTP null
 -> EHLO cs-898977023938-default-boost-8pbbm
<-  250-c69c300d61c7
<-  250-8BITMIME
<-  250-AUTH LOGIN
<-  250 Ok
*** Host did not advertise STARTTLS
 -> QUIT
<-  221 Bye
=== Connection closed with remote host.
user01@localhost:~$ docker logs smtp
07 Apr 2021 09:57:59 ERROR com.nilhcem.fakesmtp.core.I18n - Can't find bundle for base name i18n/messages, locale en
07 Apr 2021 09:57:59 INFO  com.nilhcem.fakesmtp.core.I18n - Will use default bundle (en_US) instead
07 Apr 2021 09:57:59 INFO  org.subethamail.smtp.server.SMTPServer - SMTP server *:25 starting
07 Apr 2021 09:57:59 INFO  org.subethamail.smtp.server.ServerThread - SMTP server *:25 started
07 Apr 2021 09:58:15 DEBUG org.subethamail.smtp.server.Session - SMTP connection from 172.18.0.1/172.18.0.1, new connection count: 1
07 Apr 2021 09:58:15 DEBUG org.subethamail.smtp.server.Session - Server: 220 c69c300d61c7 ESMTP SubEthaSMTP null
07 Apr 2021 09:58:15 DEBUG org.subethamail.smtp.server.Session - Client: EHLO cs-898977023938-default-boost-8pbbm
07 Apr 2021 09:58:15 DEBUG org.subethamail.smtp.server.Session - Server: 250-c69c300d61c7
250-8BITMIME
250-AUTH LOGIN
250 Ok
07 Apr 2021 09:58:15 DEBUG org.subethamail.smtp.server.Session - Client: QUIT
07 Apr 2021 09:58:15 DEBUG org.subethamail.smtp.server.Session - Server: 221 Bye

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}