LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   yum-updatesd Configuration (http://www.linuxquestions.org/questions/linux-server-73/yum-updatesd-configuration-848434/)

Dig 12-05-2010 06:07 AM

yum-updatesd Configuration
 
HI-

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
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 ?

axelsallright 12-06-2010 03:43 PM

Quote:

Originally Posted by Dig (Post 4181113)
HI-

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
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 ?

I haven't done it in a while, I remember you have to set the parameter:
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

--Axel

Dig 12-07-2010 12:31 PM

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


thanks again

colinnich 04-24-2012 07:04 AM

Quote:

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
An old thread, but didn't have the answer I was looking for...

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 09:28 AM.