Skip to content

Commit

Permalink
png secure emailing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtorres committed Oct 31, 2019
1 parent 671a3a3 commit 3ca97a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
Binary file added docs/img/secure_email_working.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 6 additions & 41 deletions secure_emailing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,7 @@
- Problem with GCP (Port 25 is always blocked and cannot be used): https://cloud.google.com/compute/docs/tutorials/sending-mail/
- Based on: https://github.com/bcoe/secure-smtpd

```
--------------------------------- --------------------
| SendGrid, Mailgun and Mailjet | -------Port: 25-----> | Destination Server |
--------------------------------- --------------------
^
| Port: 2525
|
|
-----------------
| Cloud Firewall | (Blocked egress port 25)
-----------------
^
| Port: 2525
|
|
|
---------POD----------
| |
| --------------- |
| | Relay email | | // tcpdump -i eth0 'port 25'
| --------------- |
| ^ |
| | Port: 25 |
| ---------------- | --------------
| | Secure email | | <---- Port: 5432 -------> | PostgreSQL |
| ---------------- | --------------
| |
---------------------
^
| Port: 9000
|
---------------
| Client SMTP |
---------------
```

##### Database design

<img src="https://raw.githubusercontent.com/Tedezed/kubernetes-containers-tools/master/docs/img/secure_emailing.png">
<img src="https://raw.githubusercontent.com/Tedezed/kubernetes-containers-tools/master/docs/img/secure_email_working.png">

## Example usage

Expand Down Expand Up @@ -142,4 +103,8 @@ python smtp_proxy_v2/test.py senmail localhost 9000 test1 passtest1 user@test1.c
Can not send email with address user@demo.com and user test1:
```
python smtp_proxy_v2/test.py senmail localhost 9000 test1 passtest1 user@demo.com 'TEST-MAIL' 'DESTINATION_EMAIL@gmail.com' 'Hi! test-mail'
```
```

## Database design

<img src="https://raw.githubusercontent.com/Tedezed/kubernetes-containers-tools/master/docs/img/secure_emailing.png">

0 comments on commit 3ca97a8

Please sign in to comment.