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