Koozali.org: home of the SME Server

Yum update email

Offline russs

  • ****
  • 77
  • +0/-0
Yum update email
« 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! :)
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Yum update email
« Reply #1 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline russs

  • ****
  • 77
  • +0/-0
Re: Yum update email
« Reply #2 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.
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Yum update email
« Reply #3 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline russs

  • ****
  • 77
  • +0/-0
Re: Yum update email
« Reply #4 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.
...

Offline dexterh

  • *
  • 7
  • +0/-0
Re: Yum update email
« Reply #5 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.

Offline russs

  • ****
  • 77
  • +0/-0
Re: Yum update email
« Reply #6 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!
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Yum update email
« Reply #7 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline russs

  • ****
  • 77
  • +0/-0
Re: Yum update email
« Reply #8 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 ;)
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Yum update email
« Reply #9 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: Yum update email
« Reply #10 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

Offline russs

  • ****
  • 77
  • +0/-0
Re: Yum update email
« Reply #11 on: December 24, 2008, 10:15:11 AM »
Thanks Guys :)
...