Sign inSign up

74mbit/postfix

By 74mbit

Updated almost 10 years ago

docker psotfix with relay to relay host nor fallback relay host

Image
0

1.3K

74mbit/postfix repository overview

Postfix Docker Container

Simple Postfix SMTP Relay with relay hosts.

Mail logs are streamed to stdout and not stored on disk.

Environment Variables

  • MAILNAME - set this to a legitimate hostname for this service (required).
  • MYNETWORKS - comma separated list of IP subnets that are allowed to relay.
  • RELAYHOST - relay host.
  • FALLBACK_RELAYHOST - fallback relay host.

Volumes

Persistent spool storage: mount /var/spool/postfix outside of the container.

Test email

To send a test email via the command line, make sure heirloom-mailx is installed.

echo -e "To: Bob <[email protected]>\nFrom: Bill <[email protected]>\nSubject: Test email\n\nThis is a test email message" | mailx -v -S smtp=smtp://... -S [email protected] -t

# With TLS
echo -e "To: Bob <[email protected]>\nFrom: Bill <[email protected]>\nSubject: Test email\n\nThis is a test email message" | mailx -v -S smtp-use-starttls -S ssl-verify=ignore -S smtp=smtp://... -S [email protected] -t

Tag summary

Content type

Image

Digest

Size

71.7 MB

Last updated

almost 10 years ago

docker pull 74mbit/postfix