Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   Email notification: "Use Email From = " always set to admin, posted by Alan Stone on Thu Oct 25 23:36:28 2007 
    icon2.gif   Re: Email notification: "Use Email From = " always set to admin, posted by Stefan Ritt on Fri Oct 26 11:44:36 2007 
Message ID: 65637     Entry time: Fri Oct 26 11:44:36 2007     In reply to: 65634
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Bug report  OS: Linux  ELOG Version: 2.6.5-1844 
Subject: Re: Email notification: "Use Email From = " always set to admin 

Alan Stone wrote:

My current syntax is:

; Email notification
Suppress Email to users = 0
Omit Email To = 1
Use Email Subject = $system: $subject
#Use Email From = Author Email
Email Report General = hn-cms-dataopslog@cern.ch, cms-dataops@fnal.gov


I had to comment out the 'Use Email From' option because all forwarded
entries to the CMS HyperNews or Fermilab ListServer appeared to originate
from me (alstone@fnal.gov), even though other users were logged in and
saving the entries to the logbook. After commenting out this line, the
entries were properly credited when forwarded, although the

There are two admins defined in the [global] section, and "alstone" is
not the first name in the "Admin user" list.

Is this a bug, or have I used this option incorrectly?
Alan


Documentation says:

If Use Email From is present, it is always used. If not, the email address of the currently logged in user is used for the "From:" field. If no user is logged in, or the current user has not specified a email address in the password database, the setting of the option Default Email From is used for the "From:" field. Only if this option is not specified, a generic address ELOG@<hostname> is used, which might be rejected by the SMTP server however.

So if you write
Use Email From = me@some.where

then of course all emails have "me@some.where" in the From: field. If you want the email of the people logged in, you either remove this option (since it's the default anyhow), or you write explicitly
Use Email From = $user_email
ELOG V3.1.5-3fb85fa6