-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMTP Relay Support with SASL Authentication (#1)
- Loading branch information
Showing
13 changed files
with
178 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Override for Makefile | ||
# Override for Makefile | ||
[{Makefile, makefile, GNUmakefile}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[Makefile.*] | ||
indent_style = tab | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build-harness/ | ||
.build-harness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
sudo: required | ||
addons: | ||
apt: | ||
packages: | ||
- git | ||
- make | ||
- curl | ||
env: | ||
- DOCKER_IMAGE_NAME=cloudposse/postfix | ||
services: | ||
- docker | ||
install: | ||
- make init | ||
- make docker:login | ||
|
||
script: | ||
- make docker:build | ||
|
||
after_success: | ||
- make travis:docker-tag-and-push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(shell curl --silent -o .build-harness "https://raw.githubusercontent.com/cloudposse/build-harness/master/templates/Makefile.build-harness"; echo .build-harness) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,40 @@ | ||
# postfix [![Travis](https://img.shields.io/travis/cloudposse/postfix.svg)]() | ||
|
||
postfix mail server with configurable hostname and trusted hosts and proper | ||
shutdown handling | ||
This is project implements as a docker container a postfix mail server. It supports a configurable hostname, trusted hosts, proper | ||
shutdown handling and mail relay (e.g. to mailgun). | ||
|
||
Notes | ||
=== | ||
## Notes | ||
|
||
By default, connected rfc1918 networks are detected and allowed. Local networks | ||
(127.0.0.1, ::1) are also allowed. | ||
|
||
Syslog | ||
=== | ||
## Syslog | ||
|
||
Rsyslog is started automatically and sends logs to stdout | ||
|
||
Suggested Volumes | ||
=== | ||
## Suggested Volumes | ||
|
||
* `/var/spool/postfix` is the spool directory. Its also where postfix chroots to by default. | ||
* `/etc/postfix` is the configuation directory | ||
|
||
Options | ||
=== | ||
## Configuration | ||
|
||
You can customize the image behavior using environmental variables or entrypoint | ||
arguments. | ||
|
||
<table> | ||
<thead> | ||
<th>Enviromental Variable(s)</th> | ||
<th>Entrypoint Option</th> | ||
<th>Description</th> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>(use <code>--hostname</code>)</td> | ||
<td><code>--mail-name</code></td> | ||
<td>Mail name to use (appears in mail headers). Defaults to hostname</td> | ||
</tr> | ||
<tr> | ||
<td>RELAYHOST="[relay hostname]</td> | ||
<td><code>--relayhost []</code></td> | ||
<td>The host to relay mail to.</td> | ||
</tr> | ||
<tr> | ||
<td><code>TRUST="local"</code> or <code>TRUST_LOCAL="0"</code></td> | ||
<td><code>--trust-local</code></td> | ||
<td>Trust addresses on the lo interface. Enabled by default</td> | ||
</tr> | ||
<tr> | ||
<td><code>TRUST="connected-rfc1918"</code> or <code>TRUST_CONNECTED_RFC="1"</code></td> | ||
<td><code>--trust-connected-rfc1918</code></td> | ||
<td>Trust all locally connected rfc1918 subnets. Enabled by default</td> | ||
</tr> | ||
<tr> | ||
<td><code>TRUST="connected"</code> or <code>TRUST_CONNECTED="1"</td> | ||
<td><code>--trust-connected</code></td> | ||
<td>Trust all addresses connected (excluding IPv6 local-link addresses). Disabled by default</td> | ||
</tr> | ||
<tr> | ||
<td><code>TRUST="rfc1918"</code> or <code>TRUST_RFC1918="1"</td> | ||
<td><code>--trust-rfc1918</code></td> | ||
<td>Trust all rfc1918 address. Disabled by default</td> | ||
</tr> | ||
<tr> | ||
<td><code>TRUST_LLA="1"</code></td> | ||
<td><code>--trust-lla</code></td> | ||
<td>Trust the fe80::/64 IPv6 subnet. Disabled by default</td> | ||
</tr> | ||
<tr> | ||
<td><code>TRUST_SUBNETS="[space separated list of subnets]"</code></td> | ||
<td><code>--trust-subnet []</code></td> | ||
<td>Trust the specified subnet (IPv4 and IPv6 supported). Disabled by default</td> | ||
</tr> | ||
<tr> | ||
<td><code>TRUST_INTERFACES="[space separated list of interfaces]"</code></td> | ||
<td><code>--trust-interface []</code></td> | ||
<td>Trust all network address on the interface (excluding IPv6 LLA). Disabled by default</td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td><code>--skip-trust-</code>*</td> | ||
<td>Use with local, connected-rfc1918, connected, rfc1918, or lla to skip trusting it. Disabled by default</td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td><code>--skip-all</code></td> | ||
<td>Disable/reset all trusts. Disabled by default</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
| Enviromental Variable(s) | Entrypoint Option | Description | | ||
|---------------------------------------------------------|--------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------| | ||
| (use --hostname) | --mail-name | Mail name to use (appears in mail headers). Defaults to hostname | | ||
| RELAYHOST="[relay hostname] | --relayhost [] | The host to relay mail to. | | ||
| TRUST="local" or TRUST_LOCAL="0" | --trust-local | Trust addresses on the lo interface. Enabled by default | | ||
| TRUST="connected-rfc1918" or TRUST_CONNECTED_RFC="1" | --trust-connected-rfc1918 | Trust all locally connected rfc1918 subnets. Enabled by default | | ||
| TRUST="connected" or TRUST_CONNECTED="1" | --trust-connected | Trust all addresses connected (excluding IPv6 local-link addresses). Disabled by default | | ||
| TRUST="rfc1918" or TRUST_RFC1918="1" | --trust-rfc1918 | Trust all rfc1918 address. Disabled by default | | ||
| TRUST_LLA="1" | --trust-lla | Trust the fe80::/64 IPv6 subnet. Disabled by default | | ||
| TRUST_SUBNETS="[space separated list of subnets]" | --trust-subnet [] | Trust the specified subnet (IPv4 and IPv6 supported). Disabled by default | | ||
| TRUST_INTERFACES="[space separated list of interfaces]" | --trust-interface [] | Trust all network address on the interface (excluding IPv6 LLA). Disabled by default | | ||
| | --skip-trust-* | `local`, `connected-rfc1918`, `connected`, `rfc1918`, or `lla` to skip trusting it. | | ||
| | --skip-all | Disable/reset all trusts. Disabled by default | | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters