Added mail domain to sendmail's submit.mc

This commit is contained in:
Ossi Salmi 2010-12-26 19:38:00 +02:00 committed by Timo Mkinen
parent f64c9540ca
commit 256e33721e
2 changed files with 11 additions and 0 deletions

View file

@ -2,6 +2,10 @@
#
class sendmail::common {
if !$mail_domain and $domain {
$mail_domain = $domain
}
case $operatingsystem {
centos,fedora: {
package { ["sendmail", "sendmail-cf"]:
@ -22,6 +26,10 @@ class sendmail::common {
#
class sendmail::client inherits sendmail::common {
if !$mail_server {
$mail_server = "127.0.0.1"
}
case $operatingsystem {
openbsd: {
file { "/usr/share/sendmail/cf/submit.mc":

View file

@ -25,6 +25,9 @@ define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl
<% if has_variable?('mail_domain') -%>
define(`confDOMAIN_NAME', `<%= mail_domain %>')dnl
<% end -%>
<% if kernel == 'Linux' -%>
define(`confPID_FILE', `/var/run/sm-client.pid')dnl
<% end -%>