From 7a81ddd95595fddf0a5ea781ca25964d23528d5e Mon Sep 17 00:00:00 2001 From: Jeff Richards Date: Thu, 28 Jul 2022 15:41:39 -0700 Subject: [PATCH] Add notes about how to run in a centralized/relay fashion, with the previously commited code by agilesyndrome addresses issue #9 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7c8273c..b015ebe 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,17 @@ Set environment variables * `MT_MAILBOX_LIMIT` - mailbox limit in bytes, default 51200000 * `MT_MESSAGE_LIMIT` - message limit in bytes, default 10240000 * `MT_NETWORK_STYLE` - [host, subnet, or class](http://www.postfix.org/postconf.5.html#mynetworks_style), default subnet +* `MT_POSTFIX_OPTIONS` - http://www.postfix.org/postconf.5.html, any other options you need. and recreate the container. +## Running on a centralized server / if you're seeing Relay access denied +If you're running on a centralized server you need to specify who is allowed to send to the embedded postfix instance option. + +To do this you'll need to know the network subnet of the machines that you would allow to send mail to this mailtrap instance. With the subnet in hand for example "10.10.0.0/16" add this to the allowed senders by adding the following environment option + MT_POSTFIX_OPTIONS = 10.10.0.0/16 + + ## Testing the image locally ```