Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: russs on December 22, 2008, 12:08:04 PM

Title: Yum update email
Post by: russs on December 22, 2008, 12:08:04 PM
Hi Guys,

just a very quick query which I just can't find the answer to! :)

I re-installed Yum after an issue recently and cannot remember how to point the updates email at a valid user.

I'm on 7.3 and it defaults to admin-yum@*** as the admin email for the 'Updates Available for' message, where do I change this please as I just can't remember!

Cheers and Happy Christmas! :)
Title: Re: Yum update email
Post by: cactus on December 22, 2008, 12:25:59 PM
Hi Guys,

just a very quick query which I just can't find the answer to! :)

I re-installed Yum after an issue recently and cannot remember how to point the updates email at a valid user.

I'm on 7.3 and it defaults to admin-yum@*** as the admin email for the 'Updates Available for' message, where do I change this please as I just can't remember!

Cheers and Happy Christmas! :)
Not sure to why you did this, but the e-mail should be delivered to the admin user on you SME Server unless you configured some forward rule for it.
Title: Re: Yum update email
Post by: russs on December 22, 2008, 12:49:31 PM
Thanks for the reply.

It's a long time since I originally setup Yum to do this but I believe it was sending to root@ourdomain as you said, so I think it was sending to the SME Server root account and this was forwarded to my admin account on the domain.
Until a month ago this was working until I started fiddling and now it does not go to the root account, so how do I point it there please?
Otherwise I'll simply set up an alias for the admin-yum account, I was just wondering why it had changed really.
Title: Re: Yum update email
Post by: cactus on December 22, 2008, 06:54:15 PM
Thanks for the reply.

It's a long time since I originally setup Yum to do this but I believe it was sending to root@ourdomain as you said, so I think it was sending to the SME Server root account and this was forwarded to my admin account on the domain.
Until a month ago this was working until I started fiddling and now it does not go to the root account, so how do I point it there please?
Otherwise I'll simply set up an alias for the admin-yum account, I was just wondering why it had changed really.
It does by default, try to reverse your changes if you still know what you did, otherwise give us more information as now you make guessing quite hard.
Title: Re: Yum update email
Post by: russs on December 23, 2008, 04:15:03 PM
Thanks Cactus,

I've just made a mail alias so all mail to admin-yum should find it's way to me now.

Seemed simpler since Yum appears to be working perfectly otherwise.

Cheers for you help though.
Title: Re: Yum update email
Post by: dexterh on December 23, 2008, 04:17:14 PM
I was beat with the answere while typeing, but will post anyway. I believe it is changed through some update as well.  My admin@domain sends it to my email address so I think your setup was probably correct.

If you go to the /sbin/e-smith/check4updates file, it states "MAILADDR=admin-yum".

If it were to go to admin, it would state "MAILADDR=admin"

Changing "admin-yum" to "admin" should take care of it, however, any subsequent yum updates may change it.  SME is template driven.

A more permanent solution would be to make an alias (Pseudonyms from the Collaboration pick on the server-manager menu) called "admin-yum" and have it sent to the Administrator.  That way if it ever gets changed to just admin, all you have is an extra alias which is pretty inconsequential in the grand scheme of thngs.

Hope this helps.
Title: Re: Yum update email
Post by: russs on December 23, 2008, 04:32:04 PM
Hi Dexter,

Glad it's not just me then :)
Thanks for that, I'll give it a go.

Have a good Christmas!
Title: Re: Yum update email
Post by: cactus on December 23, 2008, 04:33:29 PM
Changing "admin-yum" to "admin" should take care of it, however, any subsequent yum updates may change it.  SME is template driven.
No. If this is an issue this should be reported in the bugtracker and not fixed like this. It seems to me we have a work-around here for a non-existent problem as the admin-yum should be automatically delivered to the admin user. Try and investigate what you manually changed that made it stop working and revert those changes. That is the only proper solution. With this workaround you are most likely to run in to issues on other/future upgrades and it will be harder, if not even impossible to investigate what went wrong.
Title: Re: Yum update email
Post by: russs on December 23, 2008, 04:36:45 PM
Hi Cactus,

OK but as far as I remember I didn't actually change any settings with Yum I simply re-installed it after an issue.

It probably is just me then so I'll think about it next year but the email alias should do me for now.

Thanks to both of you for your help ;)
Title: Re: Yum update email
Post by: cactus on December 23, 2008, 04:39:17 PM
OK but as far as I remember I didn't actually change any settings with Yum I simply re-installed it after an issue.

It probably is just me then so I'll think about it next year but the email alias should do me for now.
No, please report it as a bug so investigation can be done, next year you most likely do not have available log entries available anymore.

Thanks to both of you for your help ;)
Yes and you would be really helping if you were to do what it says on every opening post, report problems in the bugtracker and not in the forums. Once again, the bugtracker please.
Title: Re: Yum update email
Post by: stephen noble on December 24, 2008, 04:14:29 AM
admin-yum, admin-foo and admin-bar all go to admin

-anything just helps with mail processing using tools such as procmail

if you don't look at the admin mail directly, ie with imap
redirect all admin mail in the users panel to another user

there is no bug here, just misunderstanding how qmail works
Title: Re: Yum update email
Post by: russs on December 24, 2008, 10:15:11 AM
Thanks Guys :)