sendmail: Add support for smart host. This setting also adds mail hub and relay server to really really make the mail move towards defined smart host.
This commit is contained in:
parent
65ef51f9dd
commit
3db5ab226b
2 changed files with 10 additions and 0 deletions
|
@ -158,6 +158,10 @@ class sendmail::client::msa inherits sendmail::client {
|
||||||
# $mail_domain:
|
# $mail_domain:
|
||||||
# SMTP domain name.
|
# SMTP domain name.
|
||||||
#
|
#
|
||||||
|
# $mail_smart_host:
|
||||||
|
# Deliver all mail to host defined. Add leading dot.
|
||||||
|
# $mail_smart_host = "mail.example.com."
|
||||||
|
#
|
||||||
# $masquerade_exception:
|
# $masquerade_exception:
|
||||||
# Everything is masqueraded to $mail_domain except these hosts.
|
# Everything is masqueraded to $mail_domain except these hosts.
|
||||||
#
|
#
|
||||||
|
|
|
@ -10,6 +10,12 @@ include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
|
||||||
VERSIONID(`puppet sendmail::server')dnl
|
VERSIONID(`puppet sendmail::server')dnl
|
||||||
OSTYPE(`<%= @ostype -%>')dnl
|
OSTYPE(`<%= @ostype -%>')dnl
|
||||||
dnl #
|
dnl #
|
||||||
|
<% if @mail_smart_host -%>
|
||||||
|
define(`SMART_HOST', `<%= @mail_smart_host -%>')dnl
|
||||||
|
define(`MAIL_HUB', `<%= @mail_smart_host -%>')dnl
|
||||||
|
define(`LOCAL_RELAY', `<%= @mail_smart_host -%>')dnl
|
||||||
|
dnl #
|
||||||
|
<% end -%>
|
||||||
define(`confDEF_USER_ID', ``8:12'')dnl
|
define(`confDEF_USER_ID', ``8:12'')dnl
|
||||||
define(`confTO_CONNECT', `1m')dnl
|
define(`confTO_CONNECT', `1m')dnl
|
||||||
define(`confTRY_NULL_MX_LIST', `True')dnl
|
define(`confTRY_NULL_MX_LIST', `True')dnl
|
||||||
|
|
Loading…
Add table
Reference in a new issue