Sign inSign up

pandada8/exim4

By pandada8

•Updated almost 10 years ago

exim4.88

Image
0

284

pandada8/exim4 repository overview

⁠How To Use

You probably want to bind-mount in some kind of /etc/mailname that actually makes sense. Probably also worth setting -h to the same value. Something like -v /etc/mailname:/etc/mailname:ro -h "$(cat /etc/mailname)" might be reasonable.

Also, it's worth noting that Exim is grumpy about signals here (possibly this pid1 issue⁠), so you'll have to just docker kill the container to stop it, unfortunately.

⁠sSMTP

If you want to use this with another container that has sSMTP or similar installed, here's a configuration you can adapt: (assuming your second container uses something like --link some-exim4:smtp)

Mailhub=smtp
FromLineOverride=Yes

Then sendmail in your linked container should work as expected. You can also skip FromLineOverride in the second container if you want, but the alternative is sSMTP being weird about hostnames and forcing you into a box.

⁠Gmail

If you'd rather not relay mail directly (which is a smart thing to not want to do generally), you can trivially configure this container to relay via a Gmail account instead! Just add -e [email protected] -e GMAIL_PASSWORD=yourpasswordhere and the entrypoint will automatically preconfigure to relay via the Gmail account specified!

Tag summary

Content type

Image

Digest

Size

66.7 MB

Last updated

almost 10 years ago

docker pull pandada8/exim4