[Xymon] configurable sender email address for alerts?

Ribeiro, Glauber glauber.ribeiro at experian.com
Fri Jan 17 17:55:38 CET 2014


It's very easy to override what mail program gets used, in the configuration. It's a variable. Set it to a script that does what you want.

We've used this approach for many years to fix the problem of binary content in the emails (which was addressed in a recent update).

g

-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of henrik at hswn.dk
Sent: Friday, January 17, 2014 04:59
To: xymon at xymon.com
Subject: Re: [Xymon] configurable sender email address for alerts?

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.

Regards,
Henrik

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list