Xymon Mailing List Archive search

configurable sender email address for alerts?

list Mark Felder
Fri, 17 Jan 2014 06:40:37 -0600
Message-Id: <user-539ae342b285@xymon.invalid>


On Fri, Jan 17, 2014, at 4:59, user-ce4a2c883f75@xymon.invalid wrote:
Den 16.01.2014 18:56, Mark Felder skrev:
I have a FreeBSD bug report open from a user who claims that if they > run
"sudo service xymon-server start" it starts xymon correctly but the
alert emails come from the wrong email address. Where is Xymon > getting
the username from to use when sending emails? Is it configurable in
xymonserver.cfg? Could it be made configurable? The patch the user
suggested to the freebsd rc script seems unnecessary.
Xymon just runs the "mail" or "mailx" commandline tool. How that determines what to put as the sender, I don't know.

My guess is that mail uses "From: $USER" as the sender, but it also depends on the MTA setup (sendmail, postfix) of the host where you are running Xymon - e.g. the MTA typically adds the domainname to the sender-address.
This is what I suspected but I haven't had free time to experiment. I
honestly haven't been able to recreate the users's bug report either, so
I suspect this is a problem unique to his environment.