Skip to content

How to send mails with this? #61

Answered by crazy-max
szaimen asked this question in Q&A
Discussion options

You must be logged in to vote

@szaimen Something like that

# create bridge
docker network create -d bridge testsmtp

# run msmtpd
docker run -d -p 2500:2500 --name msmtpd --network testsmtp \
  -e "SMTP_HOST=smtp.example.com" \
  crazymax/msmtpd

# send test mail
docker run --rm -it alpine --network testsmtp \
  apk --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing add swaks && \
  swaks -f [email protected] -t [email protected] --server msmtpd:2500

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crazy-max
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #22 on July 17, 2023 01:15.