Skip to content

Dockerized version of wiggin77/mailrelay

License

Notifications You must be signed in to change notification settings

evc54/mailrelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailrelay

mailrelay is a simple mail relay that can take unauthenticated SMTP emails (e.g. over port 25) and relay them to authenticated, TLS-enabled SMTP servers.

Forked from wiggin77/mailrelay

Usage

Run a container on port 2525, setup outgoing SMTP server to fastmail and add user authentication.

docker run -d --restart always --name mailrelay -p 2525:25 \
  -e PORT=25 \
  -e SMTP_HOST=smtp.fastmail.com \
  -e SMTP_PORT=587 \
  -e SMTP_STARTTLS=true \
  -e [email protected] \
  -e SMTP_PASSWORD=secretpassword \
  evc54/mailrelay

Configuration

Environment Variable Description Example Default
PORT Listen on port 25 2525
SMTP_HOST SMTP server hostname smtp.google.com
SMTP_PORT SMTP port 25 2525 465 465
SMTP_STARTTLS Enable StartTLS true
SMTP_USERNAME SMTP auth user name [email protected]
SMTP_PASSWORD SMTP auth user password password
SMTP_MAX_LETTER_SIZE Max. letter size 134217728 83 MB
ALLOWED_HOSTS Allowed IPs/host names list 10.100.250.50 *
TIMEOUT Network timeout, sec 600 30

About

Dockerized version of wiggin77/mailrelay

Topics

Resources

License

Stars

Watchers

Forks