can from address be configured for xymon alerts?
hi,
can "from " address be configured for xymon alerts?i want to send xymon
alert mails from "xymon at monitor.mgmt.machines" 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
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/>
Hi Pankaj,
can "from " address be configured for xymon alerts?i want to send xymon alert mails from "xymon at monitor.mgmt.machines" 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 xymon at hostname.com 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
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 "xymon at monitor.mgmt.machines" 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
participants (4)
-
bgmilne@staff.telkomsa.net
-
mailinglist0@skurfer.com
-
malcolm.hunter@gmx.co.uk
-
pankaj.dorlikar@gmail.com