You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the logic used to replace root@localhost with root@cheetah works as intended for the email headers, but does not apply to the address used as the sender address (the envelope) when sending the email message.
that the msg type is converted to a string to form the complete email headers/body (I may be butchering this description) as the last argument to the s.sendmail() call.
The first part of the s.sendmail() call appears to use the email_from value as-is without any conversion, so if the configuration has root@localhost, then this is used as-is for the first argument in the s.sendmail() function call.
Let's assume that the system is named cheetah.
It appears that the logic used to replace
root@localhost
withroot@cheetah
works as intended for the email headers, but does not apply to the address used as the sender address (the envelope) when sending the email message.This code:
yum/yum-cron/yum-cron.py
Lines 244 to 247 in f8616a2
appears to replace
root@localhost
withroot@cheetah
and store the result indomain
. Thedomain
variable is then used here:yum/yum-cron/yum-cron.py
Line 247 in f8616a2
msg['From']
.We can see here:
yum/yum-cron/yum-cron.py
Line 254 in f8616a2
that the
msg
type is converted to a string to form the complete email headers/body (I may be butchering this description) as the last argument to thes.sendmail()
call.The first part of the
s.sendmail()
call appears to use theemail_from
value as-is without any conversion, so if the configuration hasroot@localhost
, then this is used as-is for the first argument in thes.sendmail()
function call.Is this intentional?
Looking here:
yum/etc/yum-cron.conf
Lines 33 to 36 in f8616a2
and here:
yum/etc/yum-cron.conf
Lines 50 to 59 in f8616a2
I don't see this behavior documented as intentional.
Is this a documentation problem or is the
s.sendmail()
function call intended to be called this way:The text was updated successfully, but these errors were encountered: