From realhuang@kkbox.com  Wed Oct 23 08:35:20 2013
Return-Path: <realhuang@kkbox.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 616347E6
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Oct 2013 08:35:20 +0000 (UTC)
	(envelope-from realhuang@kkbox.com)
Received: from kkbox.com (ip-203-69-67-167.kkcube.com [203.69.67.167])
	by mx1.freebsd.org (Postfix) with ESMTP id 2CC362CEF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Oct 2013 08:35:19 +0000 (UTC)
Received: by goingmarry.kkbox.com (Postfix, from userid 1055)
	id 222107514FD; Wed, 23 Oct 2013 16:27:05 +0800 (CST)
Message-Id: <20131023082705.222107514FD@goingmarry.kkbox.com>
Date: Wed, 23 Oct 2013 16:27:05 +0800 (CST)
From: Real Huang <realhuang@kkbox.com>
Reply-To: Real Huang <realhuang@kkbox.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rc script updata 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         183226
>Category:       ports
>Synopsis:       net-mgmt/xymon-server: rc script updata
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    feld
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 23 08:40:00 UTC 2013
>Closed-Date:    Mon Feb 17 13:43:06 UTC 2014
>Last-Modified:  Mon Feb 17 13:43:06 UTC 2014
>Originator:     Real Huang
>Release:        FreeBSD 9.1-RELEASE-p7 amd64
>Organization:
>Environment:
System: FreeBSD goingmarry 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	xymon mail alert , mail from is not "xymon"
>How-To-Repeat:
	
>Fix:

	

--- uu begins here ---
Index: xymon-server.in
===================================================================
--- xymon-server.in	(revision 331352)
+++ xymon-server.in	(working copy)
@@ -14,12 +14,12 @@
 load_rc_config "$name"
 : ${xymon_server_enable:="NO"}
 
-command="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh'"
-start_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh start'"
-stop_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh stop'"
-status_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh status'"
-reload_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh reload'"
-restart_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh restart'"
+command="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh'"
+start_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh start'"
+stop_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh stop'"
+status_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh status'"
+reload_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh reload'"
+restart_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh restart'"
 pidfile="/var/log/xymon/xymond.pid"
 
 run_rc_command "$1"
--- uu ends here ---


>Release-Note:
>Audit-Trail:

From: Real huang <realhuang@kkbox.com>
To: FreeBSD-gnats-submit@freebsd.org, freebsd-ports-bugs@freebsd.org
Cc:  
Subject: Re: ports/183226: rc script updata
Date: Wed, 23 Oct 2013 17:16:26 +0800

 --047d7b6d8996cc3cee04e964f8bf
 Content-Type: text/plain; charset=ISO-8859-1
 
 HI,
 
 Update Subject
 
 Xymon rc script update
 
 
 Thanks.
 
 
 2013/10/23 <FreeBSD-gnats-submit@freebsd.org>
 
 > Thank you very much for your problem report.
 > It has the internal identification `ports/183226'.
 > The individual assigned to look at your
 > report is: freebsd-ports-bugs.
 >
 > You can access the state of your problem report at any time
 > via this link:
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=183226
 >
 > >Category:       ports
 > >Responsible:    freebsd-ports-bugs
 > >Synopsis:       rc script updata
 > >Arrival-Date:   Wed Oct 23 08:40:00 UTC 2013
 >
 
 --047d7b6d8996cc3cee04e964f8bf
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr">HI,<div><br></div><div>Update Subject</div><div><br></div>=
 <div>Xymon=A0<span style=3D"color:rgb(0,0,0);font-family:verdana,sans-serif=
 ;font-size:12px">rc script update</span></div><div><span style=3D"color:rgb=
 (0,0,0);font-family:verdana,sans-serif;font-size:12px"><br>
 </span></div><div><span style=3D"color:rgb(0,0,0);font-family:verdana,sans-=
 serif;font-size:12px"><br></span></div><div><span style=3D"color:rgb(0,0,0)=
 ;font-family:verdana,sans-serif;font-size:12px">Thanks.</span></div></div><=
 div class=3D"gmail_extra">
 <br><br><div class=3D"gmail_quote">2013/10/23  <span dir=3D"ltr">&lt;<a hre=
 f=3D"mailto:FreeBSD-gnats-submit@freebsd.org" target=3D"_blank">FreeBSD-gna=
 ts-submit@freebsd.org</a>&gt;</span><br><blockquote class=3D"gmail_quote" s=
 tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Thank you very much for your problem report.<br>
 It has the internal identification `ports/183226&#39;.<br>
 The individual assigned to look at your<br>
 report is: freebsd-ports-bugs.<br>
 <br>
 You can access the state of your problem report at any time<br>
 via this link:<br>
 <br>
 <a href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3D183226" target=3D"_=
 blank">http://www.freebsd.org/cgi/query-pr.cgi?pr=3D183226</a><br>
 <br>
 &gt;Category: =A0 =A0 =A0 ports<br>
 &gt;Responsible: =A0 =A0freebsd-ports-bugs<br>
 &gt;Synopsis: =A0 =A0 =A0 rc script updata<br>
 &gt;Arrival-Date: =A0 Wed Oct 23 08:40:00 UTC 2013<br>
 </blockquote></div><br></div>
 
 --047d7b6d8996cc3cee04e964f8bf--
Responsible-Changed-From-To: freebsd-ports-bugs->feld 
Responsible-Changed-By: sunpoet 
Responsible-Changed-When: Wed Oct 23 18:29:33 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183226 

From: Mark Felder <feld@FreeBSD.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/183226: net-mgmt/xymon-server: rc script updata
Date: Thu, 24 Oct 2013 13:35:11 -0500

 I can't seem to reproduce this. On our production Xymon servers the
 emails come from xymon@
 
 However, we use Postfix... are you using a different MTA?

From: Real huang <realhuang@kkbox.com>
To: FreeBSD-gnats-submit@freebsd.org, freebsd-ports-bugs@freebsd.org
Cc:  
Subject: Re: ports/183226: rc script updata
Date: Tue, 12 Nov 2013 13:47:53 +0800

 --047d7b5d474acafbc904eaf463a5
 Content-Type: text/plain; charset=ISO-8859-1
 
 Hi,
 
 You can try to "sudo /usr/local/etc/rc.d/xymon-server restart" , the "mail
 from" well change to "root" .
 
 I use /usr/local/libexec/nullmailer/sendmail MTA.
 
 
 2013/10/23 Real huang <realhuang@kkbox.com>
 
 > HI,
 >
 > Update Subject
 >
 > Xymon rc script update
 >
 >
 > Thanks.
 >
 >
 > 2013/10/23 <FreeBSD-gnats-submit@freebsd.org>
 >
 >> Thank you very much for your problem report.
 >> It has the internal identification `ports/183226'.
 >> The individual assigned to look at your
 >> report is: freebsd-ports-bugs.
 >>
 >> You can access the state of your problem report at any time
 >> via this link:
 >>
 >> http://www.freebsd.org/cgi/query-pr.cgi?pr=183226
 >>
 >> >Category:       ports
 >> >Responsible:    freebsd-ports-bugs
 >> >Synopsis:       rc script updata
 >> >Arrival-Date:   Wed Oct 23 08:40:00 UTC 2013
 >>
 >
 >
 
 --047d7b5d474acafbc904eaf463a5
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr">Hi,<div><br></div><div>You can try to &quot;sudo /usr/loca=
 l/etc/rc.d/xymon-server restart&quot; , the &quot;mail from&quot; well chan=
 ge to &quot;root&quot; .</div><div><br></div><div>I use=A0/usr/local/libexe=
 c/nullmailer/sendmail MTA.</div>
 </div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2013/10=
 /23 Real huang <span dir=3D"ltr">&lt;<a href=3D"mailto:realhuang@kkbox.com"=
  target=3D"_blank">realhuang@kkbox.com</a>&gt;</span><br><blockquote class=
 =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
 ing-left:1ex">
 <div dir=3D"ltr">HI,<div><br></div><div>Update Subject</div><div><br></div>=
 <div>Xymon=A0<span style=3D"font-size:12px;font-family:verdana,sans-serif">=
 rc script update</span></div><div><span style=3D"font-size:12px;font-family=
 :verdana,sans-serif"><br>
 
 </span></div><div><span style=3D"font-size:12px;font-family:verdana,sans-se=
 rif"><br></span></div><div><span style=3D"font-size:12px;font-family:verdan=
 a,sans-serif">Thanks.</span></div></div><div class=3D"gmail_extra">
 <br><br><div class=3D"gmail_quote">2013/10/23  <span dir=3D"ltr">&lt;<a hre=
 f=3D"mailto:FreeBSD-gnats-submit@freebsd.org" target=3D"_blank">FreeBSD-gna=
 ts-submit@freebsd.org</a>&gt;</span><br><blockquote class=3D"gmail_quote" s=
 tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 
 Thank you very much for your problem report.<br>
 It has the internal identification `ports/183226&#39;.<br>
 The individual assigned to look at your<br>
 report is: freebsd-ports-bugs.<br>
 <br>
 You can access the state of your problem report at any time<br>
 via this link:<br>
 <br>
 <a href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3D183226" target=3D"_=
 blank">http://www.freebsd.org/cgi/query-pr.cgi?pr=3D183226</a><br>
 <br>
 &gt;Category: =A0 =A0 =A0 ports<br>
 &gt;Responsible: =A0 =A0freebsd-ports-bugs<br>
 &gt;Synopsis: =A0 =A0 =A0 rc script updata<br>
 &gt;Arrival-Date: =A0 Wed Oct 23 08:40:00 UTC 2013<br>
 </blockquote></div><br></div>
 </blockquote></div><br></div>
 
 --047d7b5d474acafbc904eaf463a5--
State-Changed-From-To: open->closed 
State-Changed-By: feld 
State-Changed-When: Mon Feb 17 13:43:05 UTC 2014 
State-Changed-Why:  
Discussed with Henrik upstream. Not a bug; configure your MTA/env 
accordingly or override MAIL/MAILC parameters with your own script to 
ensure you get the From address you desire. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183226 
>Unformatted:
