Kia ora,

Attached is a quick patch for BZ 847194 that will document the 
'web.smtp_server' setting in the default rhn_web.conf config file.

The java code currently defines this as 'localhost' per:

./java/code/src/com/redhat/rhn/common/conf/ConfigDefaults.java:    public 
static final String WEB_SMTP_SERVER = "web.smtp_server";
./java/code/src/com/redhat/rhn/common/messaging/SmtpMail.java:        smtpHost 
= c.getString(ConfigDefaults.WEB_SMTP_SERVER, "localhost");

Cheers,

- Nigel Jones
>From ebf42d1635683558b50ca5cba55ad6dc9f0cf581 Mon Sep 17 00:00:00 2001
From: Nigel Jones <nigjo...@redhat.com>
Date: Wed, 12 Sep 2012 14:37:15 +1200
Subject: [PATCH] 847194 - Document & set default web.smtp_server

---
 web/conf/rhn_web.conf |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/web/conf/rhn_web.conf b/web/conf/rhn_web.conf
index 4452325..0ca2c3c 100644
--- a/web/conf/rhn_web.conf
+++ b/web/conf/rhn_web.conf
@@ -273,3 +273,7 @@ web.subscribe_proxy_channel = 0
 #    and can be used forever.  (i.e.  kernel,kernel-smp,kernel-xen)
 web.non_expirable_package_urls =
 
+# Hostname/IP of an SMTP server for sending notifications and traceback
+# alerts to Satellite users
+web.smtp_server = localhost
+
-- 
1.7.1

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to