smtp to pushover mail server with complete env or config implementation
1.7K
smtp to pushover mail server with complete env or config implementation pushover
Docker images are available at Docker Hub.
To use it with docker compose, you could configure it like with
services:
smtppushover:
container_name: smtppushover
hostname: smtppushover
restart: always
image: azmodan2k/smtp2pushover
ports:
- "25:25"
environment:
- pushover_usertoken=xxx
- smtp_port=25 # optional, defaults to 25
- smtp_authOptional=true # optional, defaults to true
- smtp_secure=false # optional, defaults to false
- smtp_allowInsecureAuth=false # optional, defaults to false
- smtp_disabledCommands=xxx,yyy # optional, defaults to []
- smtp_logger=true # optional, defaults to true
cap_add:
- NET_ADMIN
create a json config file
{
"smtpConfig": {
"port": 25,
"authOptional": true,
"secure": false,
"allowInsecureAuth": false,
"logger": true
},
"pushoverConfig": {
"userToken": "xxx"
}
}
and bind mount it to docker container
services:
smtppushover:
container_name: smtppushover
hostname: smtppushover
restart: always
image: azmodan2k/smtp2pushover
ports:
- "25:25"
volumes:
- ./data/config.json:/app/config/config.json
- /etc/localtime:/etc/localtime:ro
cap_add:
- NET_ADMIN
start it with
docker compose up
Now, if you configure a smtp client to use localhost:25, you can send notifications with:
printf "To: [email protected]\nTo: [email protected]\nSubject: subject\n\n<b>text</b>\n" | msmtp -v --host localhost --port 25 --from [email protected] -t
Content type
Image
Digest
sha256:ae8b78e90…
Size
45.2 MB
Last updated
over 1 year ago
docker pull azmodan2k/smtp2pushover