Make gerrit email server configurable

Sometimes people need to send mail through a smarthost. Allow that.

Change-Id: I66ff43a3ca4fce63500755d16be3aa891d55bc75
This commit is contained in:
Monty Taylor 2013-07-18 13:25:27 -07:00
parent d1add0e652
commit 6e7a877ef4
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@ class exim(
$queue_interval = '30m',
$queue_run_max = '5',
$queue_smtp_domains = '',
$smarthost = '',
$sysadmin = []
) {

View File

@ -606,12 +606,21 @@ mailman_router:
# If the DNS lookup fails, no further routers are tried because of the no_more
# setting, and consequently the address is unrouteable.
<% if smarthost -%>
smarthost:
driver = manualroute
domains = !+local_domains
transport = remote_smtp
route_list = * <%= smarthost %>
no_more
<% else -%>
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
<% end -%>
# The remaining routers handle addresses in the local domain(s), that is those
# domains that are defined by "domainlist local_domains" above.