From 0eb075332a4a46470fb86b2006edadc6a8f8510f Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Thu, 18 Aug 2016 16:08:36 +0200 Subject: [PATCH] Add a RELAYHOST configuration value, fixes #27 --- freeposte.env | 5 ++++- postfix/conf/main.cf | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/freeposte.env b/freeposte.env index 4148b912..f8e3a7c3 100644 --- a/freeposte.env +++ b/freeposte.env @@ -23,5 +23,8 @@ POSTMASTER=admin # internal network (default to 172.17.0.0/16) RELAYNETS=172.16.0.0/12 +# Will relay all outgoing mails if configured +RELAYHOST= + # Fetchmail delay -FETCHMAIL_DELAY=600 \ No newline at end of file +FETCHMAIL_DELAY=600 diff --git a/postfix/conf/main.cf b/postfix/conf/main.cf index 6cbeca97..f9657b80 100644 --- a/postfix/conf/main.cf +++ b/postfix/conf/main.cf @@ -14,6 +14,8 @@ alias_maps = hash:/etc/aliases sql = sqlite:${config_directory}/ # Only accept virtual emails mydestination = +# Relayhost if any is configured +relayhost = {{ RELAYHOST }} ############### # TLS