I can see that in yum-updatesd configuration i can use smtp_server to rely mail notifications as per below outputs from man pages
SMTP server to use when sending mail, host or a host:port string. Defaults to ‘localhost:25’.
The problem that this option doesn't work at all and it rely into the local MTA not the one set on the smtp_server
Have any one tried this before ?
emit_via = email
along with email_to and email_from, these have to be valid users in your local system that way your mail server (sendmail, postfix) will forward them to the default smtp_server localhost:25 (if only realying email internally/locally).
email_to = user@localhost
email_from = user@localhost
Thanks Axel , actually it's working perfect for me if the machine has it's own MTA , the problem that i've machines thier hostnames aren't FQDN so i need to relay on another mail server
anyway i used smtp_server = mailserver:25 and it didn't work , there is no even logs in the mail server indicate that machines established connection with it, i think there is a problem in the python helpder itself for the yum-update , am trying to trace it but i was wondering if anyone already relayed on another mail server with yum
So, looking at the source for both yum-updatesd and yum-updatesd-helper, the way to get an email sent through a relay and not via a local mail server is to add use_sendmail = no to /etc/yum/yum-updatesd.conf as well as setting your smtp_server - without this your smtp_server setting is ignored.
|All times are GMT -5. The time now is 04:07 PM.|