-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
12 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM interlegis/alpine-postfix | ||
FROM interlegis/alpine-postfix:3.3.0 | ||
|
||
LABEL maintainer="Danya Sliusar <[email protected]>" | ||
|
||
|
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,6 +1,5 @@ | ||
APP_NAME=sendmail-http | ||
|
||
|
||
all: build | ||
|
||
build: | ||
|
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,20 +1,55 @@ | ||
# sendmail http | ||
|
||
Simple http server for sendmail (based on postfix alpine) | ||
|
||
|
||
Simple http server with Email sending. Now support Sendmail and Mutt as backend. | ||
|
||
|
||
|
||
## Build | ||
|
||
Binary can be built by execute: | ||
|
||
``` | ||
make build | ||
Binary can be built by *make*: | ||
|
||
```bash | ||
make build | ||
# this creates binary in *bin* directory | ||
ls bin/ | ||
# sendmail-http | ||
``` | ||
|
||
To make docker image exec: | ||
To make Docker image: | ||
|
||
```bash | ||
make docker | ||
# or building by your own image | ||
docker build -t your-own/sendmail-http . | ||
``` | ||
|
||
make docker | ||
## Running | ||
|
||
```bash | ||
# Running directly with Docker | ||
docker run -d -t --name sendmail \ | ||
-p 1001:1001 \ | ||
danyanya/sendmail-http:latest | ||
# or by docker-compose | ||
docker-compose up -d | ||
``` | ||
|
||
## Usage | ||
|
||
For send email use **/api/sendmutt** endpoint: | ||
|
||
```bash | ||
# Get params are from, to, subject and body: | ||
curl -sSl localhost:1001/sendmutt?[email protected]&[email protected]&subject=[job%20offer]&body=Confirmation,$%20Steve! | ||
|
||
# Also it accepts file, but it needed to be in container! | ||
#!! &file=/tmp/some.xls | ||
``` | ||
|
||
## Copyright | ||
|
||
Repo created by Daniil Sliusar at 2019. |
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