Koozali.org: home of the SME Server

Fetchmail retrieves all email each time I reboot server

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Fetchmail retrieves all email each time I reboot server
« Reply #15 on: August 11, 2022, 05:23:48 PM »
just reading another thread which says:

I usually update using #yum update     as the server manager update wasn't working.

Is it safe to say that the reference to test and dev repos used to install the fix above isn't permanent ?

As JP says - if you install it then it is permanent until the next update.

You should ONLY install a SPECIFIC package from dev or test repos if you know EXACTLY what you are doing.

So only ever do

Code: [Select]
yum --enablerepo=smedev install MySpecificPackage
NEVER EVER EVER enable the dev or test repos and run 'update' especially from the dev repo.

It will trash your server and there is no going back beyond a total reinstall and restore from backup (and you won't notice at immediately - the pain comes slowly IIRC)

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline david000

  • ****
  • 196
  • +0/-0
Re: Fetchmail retrieves all email each time I reboot server
« Reply #16 on: August 11, 2022, 05:49:31 PM »
Thanks guys, I appreciate that.

My question is - is it safe to run just

Code: [Select]
#yum update
to update the machine ?  I used to use the server manager update but recall there was an issue with that.


Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Fetchmail retrieves all email each time I reboot server
« Reply #17 on: August 11, 2022, 06:19:12 PM »
Thanks guys, I appreciate that.

My question is - is it safe to run just

Code: [Select]
#yum update
to update the machine ?  I used to use the server manager update but recall there was an issue with that.

Yes, unless you have decided to manually enable some dangerous repos.

We sometimes find people have decided to permanently enable some repos like test or dev and then wonder why they run 'update' and break things.

As long as you have not messed with your repo settings you are OK - the defaults are safe.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline david000

  • ****
  • 196
  • +0/-0
Re: Fetchmail retrieves all email each time I reboot server
« Reply #18 on: August 11, 2022, 11:17:13 PM »
As long as you have not messed with your repo settings you are OK - the defaults are safe.

I don't believe so. The only change would be if the command I used below permanently re set yum to include the development repros. Is it possible to check?

Code: [Select]
yum update e-smith-email smeserver-fetchmail --enablerepo=smetest,smeupdates-testing

Offline bunkobugsy

  • *
  • 274
  • +4/-0
Re: Fetchmail retrieves all email each time I reboot server
« Reply #19 on: August 11, 2022, 11:58:53 PM »
This was a one time per command repo override, no worries.

see in Server-manager - Software installer - Change software installer settings - Enabled repositories (smetest and smedev are hidden)
« Last Edit: August 12, 2022, 12:11:11 AM by bunkobugsy »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Fetchmail retrieves all email each time I reboot server
« Reply #20 on: August 12, 2022, 12:17:20 AM »
I don't believe so. The only change would be if the command I used below permanently re set yum to include the development repros. Is it possible to check?

Code: [Select]
yum update e-smith-email smeserver-fetchmail --enablerepo=smetest,smeupdates-testing

No it doesn't.

But personally I usually only use 'install' so I don't get confused with a more general 'update' on the wrong repos.

I do note that when testing I got this - I didn't have smeserver-fretchmail installed on my test VM:

Quote
yum update e-smith-email smeserver-fetchmail --enablerepo=smetest,smeupdates-testing

Package(s) smeserver-fetchmail available, but not installed.
Resolving Dependencies
--> Running transaction check
---> Package e-smith-email.noarch 0:5.6.0-17.el7.sme will be updated
---> Package e-smith-email.noarch 0:5.6.0-19.el7.sme will be an update
--> Finished Dependency Resolution

Quote
yum install e-smith-email smeserver-fetchmail --enablerepo=smetest,smeupdates-testing

Resolving Dependencies
--> Running transaction check
---> Package e-smith-email.noarch 0:5.6.0-17.el7.sme will be updated
---> Package e-smith-email.noarch 0:5.6.0-19.el7.sme will be an update
---> Package smeserver-fetchmail.noarch 0:1.6-24.el7.sme will be installed
--> Finished Dependency Resolution

As I mentioned, just be very careful with 'update'. And check the packages that it wants to install and be absolutely sure they are what you want.

Avoid smedev unless you are talking to us directly and we specifically ask you to use a package.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline david000

  • ****
  • 196
  • +0/-0
Re: Fetchmail retrieves all email each time I reboot server
« Reply #21 on: August 12, 2022, 10:47:12 AM »
Thanks all, I'll keep an eye on what yum decides to install.