Skip to content

Commit

Permalink
Add a RELAYHOST configuration value, fixes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyou committed Aug 18, 2016
1 parent bbe6379 commit 0eb0753
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion freeposte.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
FETCHMAIL_DELAY=600
2 changes: 2 additions & 0 deletions postfix/conf/main.cf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0eb0753

Please sign in to comment.