Un-Revert "Make gerrit email server configurable"
This time, make the default value false instead of empty string.
This reverts commit 99d3283dc2
Change-Id: I88108ff75f1c2bd3aa78856c186312340258ec3c
This commit is contained in:
parent
54d0db2fea
commit
4f5192e0a6
@ -3,6 +3,7 @@ class exim(
|
|||||||
$queue_interval = '30m',
|
$queue_interval = '30m',
|
||||||
$queue_run_max = '5',
|
$queue_run_max = '5',
|
||||||
$queue_smtp_domains = '',
|
$queue_smtp_domains = '',
|
||||||
|
$smarthost = false,
|
||||||
$sysadmin = []
|
$sysadmin = []
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
@ -606,12 +606,21 @@ mailman_router:
|
|||||||
# If the DNS lookup fails, no further routers are tried because of the no_more
|
# If the DNS lookup fails, no further routers are tried because of the no_more
|
||||||
# setting, and consequently the address is unrouteable.
|
# 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:
|
dnslookup:
|
||||||
driver = dnslookup
|
driver = dnslookup
|
||||||
domains = ! +local_domains
|
domains = ! +local_domains
|
||||||
transport = remote_smtp
|
transport = remote_smtp
|
||||||
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
|
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
|
||||||
no_more
|
no_more
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
# The remaining routers handle addresses in the local domain(s), that is those
|
# The remaining routers handle addresses in the local domain(s), that is those
|
||||||
# domains that are defined by "domainlist local_domains" above.
|
# domains that are defined by "domainlist local_domains" above.
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
# The URL to use for OpenID in SSO mode.
|
# The URL to use for OpenID in SSO mode.
|
||||||
# email:
|
# email:
|
||||||
# The email address Gerrit should use when sending mail.
|
# The email address Gerrit should use when sending mail.
|
||||||
|
# smtpserver:
|
||||||
|
# The smtp server that Gerrit should send mail through.
|
||||||
|
# sendemail_from:
|
||||||
|
# gerrit.conf value for sendemail.from.
|
||||||
# database_poollimit:
|
# database_poollimit:
|
||||||
# container_heaplimit:
|
# container_heaplimit:
|
||||||
# core_packedgitopenfiles:
|
# core_packedgitopenfiles:
|
||||||
@ -96,6 +100,8 @@ class gerrit(
|
|||||||
$ldap_account_pattern = '',
|
$ldap_account_pattern = '',
|
||||||
$ldap_account_email_address = '',
|
$ldap_account_email_address = '',
|
||||||
$email = '',
|
$email = '',
|
||||||
|
$smtpserver = 'localhost',
|
||||||
|
$sendemail_from = 'MIXED',
|
||||||
$database_poollimit = '',
|
$database_poollimit = '',
|
||||||
$container_heaplimit = '',
|
$container_heaplimit = '',
|
||||||
$core_packedgitopenfiles = '',
|
$core_packedgitopenfiles = '',
|
||||||
|
@ -32,7 +32,8 @@
|
|||||||
accountEmailAddress = <%= ldap_account_email_address %>
|
accountEmailAddress = <%= ldap_account_email_address %>
|
||||||
<% end %>
|
<% end %>
|
||||||
[sendemail]
|
[sendemail]
|
||||||
smtpServer = localhost
|
smtpServer = <%= smtpserver %>
|
||||||
|
from = <%= sendemail_from %>
|
||||||
[container]
|
[container]
|
||||||
user = gerrit2
|
user = gerrit2
|
||||||
javaHome = <%= java_home %>
|
javaHome = <%= java_home %>
|
||||||
|
Loading…
Reference in New Issue
Block a user