Xymon Mailing List Archive search

can from address be configured for xymon alerts?

4 messages in this thread

list Pankaj Dorlikar · Wed, 9 Dec 2009 00:27:06 +0530 ·
hi,
can "from " address be configured for xymon alerts?i want to send xymon
alert mails from "user-eb54b1246875@xymon.invalid" address.But is is sending
alerts from xymon@`hostname`.There is no flag/variable that accepts for from
address.I dont want to change my servers sendmail configuration.I want to
change configuraion from xymon side.Also i am getting dsn erros.
I dont want to change hostname of the machine as it might take machine's
name from /etc/hosts.
What is the way to do that?


-- ion.
Pankaj V. Dorlikar
list Rob McBroom · Tue, 8 Dec 2009 14:06:54 -0500 ·
On Dec 8, 2009, at 1:57 PM, pankaj dorlikar wrote:
can "from " address be configured for xymon alerts?
Yes.
I dont want to change my servers sendmail configuration.
It may be as simple as updating one of the “tables” sendmail is already referring to (like you would to add an alias for outbound mail). Depends on your current configuration. In any case, it’s best to do this at the sendmail level, rather than the Xymon level.

I know mail clients will let you make up whatever from address you want, so it’s theoretically possible from the Xymon side, but I’m not sure that Xymon has implemented this. (I doubt it.)

-- 
Rob McBroom
<http://www.skurfer.com/>;
list Malcolm Hunter · Tue, 08 Dec 2009 21:01:41 +0100 ·
Hi Pankaj,
quoted from Pankaj Dorlikar
can "from " address be configured for xymon alerts?i want to send xymon
alert mails from "user-eb54b1246875@xymon.invalid" address.But is is sending
alerts from xymon@`hostname`.There is no flag/variable that accepts for
from
address.I dont want to change my servers sendmail configuration.I want to

change configuraion from xymon side.
What is the reason you want to change it? Is it to have a more identifiable name? I wanted to have a more human-readable name for my sender and discovered the way to do this is to set the xymon user's name in /etc/passwd - e.g.:

xymon:x:500:500:Xymon (Brighton Data Centre):/home/xymon:/bin/bash

The address is still user-38bcd9e4df65@xymon.invalid but appears in my Inbox as from "Xymon (Brighton Data Centre)".

Regards,

Malcolm


-- 
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Facebook: http://www.facebook.com/FriendlyAtheist

GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
list Buchan Milne · Wed, 9 Dec 2009 11:44:42 +0100 ·
quoted from Pankaj Dorlikar
On Tuesday, 8 December 2009 19:57:06 pankaj dorlikar wrote:
hi,
can "from " address be configured for xymon alerts?i want to send xymon
alert mails from "user-eb54b1246875@xymon.invalid" address.But is is sending
alerts from xymon@`hostname`.There is no flag/variable that accepts for
 from address.I dont want to change my servers sendmail configuration.I
 want to change configuraion from xymon side.Also i am getting dsn erros.
I dont want to change hostname of the machine as it might take machine's
name from /etc/hosts.
What is the way to do that?
Xymon just uses the values from the MAILC and MAIL environment variables configured in hobbitserver.cfg, and sends these commands the data.

You can adjust these values in hobbitserver.cfg according to your mail client. E.g., on some distributions, 'mail' or 'mailx' are provided by 'nail', which allows you to either provide the from address with the -r option, or by specifying a 'from' environment variable.

Regards,
Buchan