Skip to content

Commit 732b81a

Browse files
committed
added some simple instructions.
1 parent b314dc8 commit 732b81a

File tree

3 files changed

+38
-6
lines changed

3 files changed

+38
-6
lines changed

README.md

+38-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
11
# kubernetes-postfix-relay-host
2-
A SMTP relay host for transactional based emails.
2+
A SMTP relay host for transactional based emails from within a k8 cluster.
33

4-
Alpine/docker/postfix
4+
## Overview
5+
This repository contains Kubernetes config files and a docker image to easily set up a SMTP relay for services such as SendGrid.
6+
7+
## Background
8+
We needed a simple docker image that can be configured with env vars. Also, the functionality is easily overridded by providing an alternate init script.
9+
10+
# Quickstart
11+
Run on docker
12+
```
13+
docker run --rm -it -p 2525:25 \
14+
-e TX_SMTP_RELAY_HOST="[smtp.sendgrid.net]:587" \
15+
-e TX_SMTP_RELAY_MYHOSTNAME=tx-smtp-relay.yourhost.com \
16+
-e TX_SMTP_RELAY_USERNAME=username \
17+
-e TX_SMTP_RELAY_PASSWORD=password \
18+
applariat/tx-smtp-relay
19+
20+
```
21+
Send a test message
22+
<pre>
23+
<b>telnet localhost 2525</b>
24+
220 tx-smtp-relay.yourhost.com ESMTP Postfix
25+
<b>helo localhost</b>
26+
250 tx-smtp-relay.yourhost.com
27+
<b>mail from: [email protected]</b>
28+
250 2.1.0 Ok
29+
<b>rcpt to: [email protected]</b>
30+
250 2.1.5 Ok
31+
<b>data</b>
32+
354 End data with <CR><LF>.<CR><LF>
33+
<b>Subject: What?</b>
34+
<b>My hovercraft is full of eels.</b>
35+
<b>.</b>
36+
250 2.0.0 Ok: queued as 982FF53C
37+
<b>quit</b>
38+
221 2.0.0 Bye
39+
Connection closed by foreign host
40+
</pre>

image/README.md

-2
This file was deleted.

kubernetes/README.md

-2
This file was deleted.

0 commit comments

Comments
 (0)