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:
Ossi Herrala 2013-07-26 14:20:24 +00:00
parent 65ef51f9dd
commit 3db5ab226b
2 changed files with 10 additions and 0 deletions

View file

@ -158,6 +158,10 @@ class sendmail::client::msa inherits sendmail::client {
# $mail_domain:
# SMTP domain name.
#
# $mail_smart_host:
# Deliver all mail to host defined. Add leading dot.
# $mail_smart_host = "mail.example.com."
#
# $masquerade_exception:
# Everything is masqueraded to $mail_domain except these hosts.
#

View file

@ -10,6 +10,12 @@ include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`puppet sendmail::server')dnl
OSTYPE(`<%= @ostype -%>')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(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl