Red Hat Bugzilla – Bug 888213
event notification service: Change default sender email, should not be email@example.com
Last modified: 2016-02-10 14:00:43 EST
Description of problem:
The current default email sender when the notification service is ON is firstname.lastname@example.org
which is the name of the upstream.
I think it should be email@example.com.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. subscribe to notification service
2. kill vdsm
3. you should receive an email that vdsm is down from firstname.lastname@example.org
It should not be @redhat.com at all - but use the RHEVM's domain name.
(In reply to comment #1)
> It should not be @redhat.com at all - but use the RHEVM's domain name.
if not set the use rhevm@<host's domain>
Changing summary line accordingly.
On sf-8 the default sender email is email@example.com
Hi Ilanit, can you share your /etc/engine/notifier/notifier.conf? or the value of MAIL_FROM in the file
Also in file /etc/sysconfig/ovirt-engine what is the value for ENGINE_FQDN in your test machine?
1. MAIL_FROM is commented, intentionally, so that the sender will be default.
# This file holds the configuration of oVirt events notification daemon.
# The daemon consists of two major services: notification service and engine monitoring.
# Notification Service Configuration: #
# Interval (in seconds) between iterations of dispatching messages to subscribers. Default is 120 seconds.
# The SMTP mail server address. Required.
# The default port of non-secured SMTP server is 25, for secured (ssl enabled) 465.
# Required if SSL enabled to authenticate the user. Used also to specify 'from' user address if mail server
# supports, when MAIL_FROM is not set. Address is in RFC822 format
# Required to authenticate the user if mail server requires authentication or if SSL is enabled
# Indicates whether SSL should be used to communicate with mail server. Default is false.
# If set to true, sends a message in HTML format. Default is false.
# Specifies 'from' address on sent mail in RFC822 format, if supported by mail server.
# Specifies 'reply-to' address on sent mail in RFC822 format.
# Amount of days to keep dispatched events on history table. If not set, events remain on history table.
# This parameter specifies how many days of old events are processed and sent
# when the notifier starts. If set to 2, for example, the notifier will
# process and send the events of the last two days, older events will just
# be marked as processed and won't be sent. The default is 0, so no old
# messages will be sent at all during startup.
# Engine Monitoring Configuration: #
# Interval (in seconds) between engine server monitoring iterations. Interval is being measured from
# the time an iteration is completed. Default is 300 seconds.
# Number of retries to monitor server status per iteration. Default is 3 retries.
# Time (in seconds) to wait between retries. Default is 30 seconds.
# If running Jboss in secure mode, should be set to true. Default is false.
# Specifies the protocol used by Jboss Configuration Connector when SSL is enabled. Default is 'TLS'.
# If running Jboss in secure mode, and wishes to ignore SSL errors, should set to true. Default is false.
# If running Jboss in secure mode, and wishes to ignore hostname verification, should set to true. Default is false.
# If setting this property to 'true', SSL_IGNORE_CERTIFICATE_ERRORS considered to be set to 'true' as well: disabling host name
# verification means that it will not be verified against the certification, therefore certification errors are ignored.
# Specifies whether to repeat auditing of failure messages of non-responding engine server. Default is false (meaning
# repeated failure messages will NOT be sent to the subscribers)
This is my current implementation
if MAIL_FROM is set, use it for sender address
else if ENGINE_FQDN is set, we use the domain name from engine fqdn
if ENGINE_FQDN is not set use the domain name of the local hostname
So with your settings the from address would be firstname.lastname@example.org which gets translated by the mail server to email@example.com.
I think the patch is working.
I verified this by setting up a mail server with domain rnori.com and set the ENGINE_FDQN and hostname to host.bos.rnori.com. With this setting I get email notifications from firstname.lastname@example.org
OK, I understatnd, changing status to verified.
3.2 has been released