You are not logged in.
Hello:
Ascii running on a Gateway NV57H63u ...
Should not be a problem.
I run ascii 4.19.0-16-686-pae on an Asus 1000HE 2Gb.
ie: SMP Debian 4.19.181-1 (2021-03-19) i686 GNU/Linux.
...but after that it would hang indefinitely without showing the desktop.
... it complained that there were unmet dependencies.
Unless I'm mistaken, the unmet dependecies warning is for your actual ie: working kernel, not the one you are updating to.
Open a terminal and (as root) do:
apt autocleanThen do:
apt install -f Please post the output of this.
It will have information needed to find out what is going on.
Best,
A.
Hello:
My recent search for a simple/lightweight system mail notification for my Devuan Beowulf installation got me more or less what I wanted.
Simple in that it was only for the installed MTA (no POP/SMTP/etc.) and lightweight because it had to be independent and do just that: notify me of system mail.
ie: not integrated to a panel or desktop, I am not at all happy with Xfce4 and will eventually move on to something similar to what #! Waldorf had as a desktop.
I found a very interesting ca. 1995 (!) application called Coolmail which does all I want.
If interested, you can read about it here.
Besides firing up a mail utility such as mutt, mailx, etc., this application has is the possibility of playing a system beep ie: through the on-board hardware's piezo or a sound file through external speakers.
I cannot seem to get the system beep to be loud enough and the application is rather dated so it uses OSS drivers.
And Linux kernel support for OSS was dropped around 4.15.
My Beowulf installation has Poettering's Pulse Audio installed and I've never paid much attention to it save to raise the main volume when I'm listening to music or watching a movie.
My box does no games and I'm still using the same Sony SRS-PC30 active speaker system I reluctantly purchased (whatever for?) along with a SB16 ISA card back in 1995. Works great and even have a service manual in case it ever acts up.
In any case, I was unable to get a *.au sound file played as coolmail complained of not being able to write to /dev/audio which was not present in my file system.
Seems Linux sound is a complicated thing.
After a while I came across a post (sorry, lost the link) that gave indications for installing the oss-compat package, which I promptly I did.
Doing so removed osspd-pulseaudio.
Could not help but smile ... 8^D
I'll look into ripping out the rest of it further on ...
Now I have /dev/audio in my system, along with /dev/dsp and /dev/mixer which were already present:
groucho@devuan:~$ ls -l /dev/ | grep audio
crw-rw----+ 1 root audio 14, 4 Jul 4 15:53 audio
crw-rw----+ 1 root audio 14, 3 Jul 4 15:53 dsp
crw-rw----+ 1 root audio 14, 0 Jul 4 15:53 mixer
groucho@devuan:~$ ---
Q: for some reason my terminal output shows dsp and mixer in yellow lettering but audio in red. Why?
Sorry.
Dumb question ... 8^|
---
Now the *.au file coolmail could not play is played but unrecognizably distorted.
And I am still getting an error from the application:
groucho@devuan:~$ coolmail -v
Coolmail 1.3 watching file: /var/spool/mail/groucho
Coolmail: Error writing to /dev/audio.
--- snip ---
groucho@devuan:~$ The file plays normally via Audacious, VLC and aplay:
groucho@devuan:~$ aplay -v /home/groucho/Downloads/ding.au
Playing Sparc Audio '/home/groucho/Downloads/ding.au' : Signed 16 bit Big Endian, Rate 48000 Hz, Stereo
ALSA <-> PulseAudio PCM I/O Plugin
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_BE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 24000
period_size : 6000
period_time : 125000
tstamp_mode : NONE
tstamp_type : GETTIMEOFDAY
period_step : 1
avail_min : 6000
period_event : 0
start_threshold : 24000
stop_threshold : 24000
silence_threshold: 0
silence_size : 0
boundary : 6755399441055744000
groucho@devuan:~$ Any idea on what is going on?
Thanks in advance,
A.
Hello:
mmm you omitted the -e...
I was convinced I had tried it with and without that -e there, so I checked again.
I was/was not mistaken: the catch is that xterm will open only if there's unread mail.
Clicking on the application icon when it shows mailbox flag in the 'down' position will not open xterm.
So ...
coolmail -v -e "xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T 'System mail notification' -geometry 120x15-300+150 -e mail"... works as expected.
I had spent a whole afternoon atempting various combinations, I actually got it to work ...
... but not with mail.
I opened up the configuration file /etc/X11/app-defaults/Coolmail and edited some of the default settings to be able to simplify the command stanza.
groucho@devuan:~$ cat /etc/X11/app-defaults/Coolmail
! Coolmail Application Defaults
!
coolmail.soundFile: /usr/local/bin/sounds/ding.au
!coolmail.frameCount: 10
!coolmail.inbox: /var/spool/mail/username
coolmail.mailCommand: xterm -geometry 120x15-300+150 -e mutt
coolmail.monochrome: False
coolmail*geometry: 76x84-1875+350
coolmail.volume: 100
groucho@devuan:~$ With that configuration file I can start up Coolmail in a terminal with :~$coolmail -v.
The application's icon shows up as expected and ~30s after I send myself mail from another terminal, the icon changes.
Clicking on the icon opens up xterm with mutt and I can process the new mail.
Problem is I really don't like mutt and (for the time being), I only need to read my system mail.
I won't be sending mail to anyone, so a terminal with mail is quite enough.
With your heads up, I edited the configuration file to coolmail.mailCommand: xterm -geometry 120x15-300+150 -e mail and now I can say it works.
I worked before but I assumed it did not.
As expected, I get an xterm window, with the mail label which will do well enough.
Thanks for that, it did not occurr to me there could be a different behaviour when clicking on the application's icon.
As the system beep set at 100 by coolmail.volume is not loud enough and also confusing, I tried using a *.wav file but I got a "Problem opening/dev/audio" error.
I looked for /dev/audio but it is not there.
groucho@devuan:~$ ls -l /dev/audio
ls: cannot access '/dev/audio': No such file or directory
groucho@devuan:~$I then converted the file to *.au but got the same result.
The thing is that this really cool application is quite dated.
It was copyrighted back in 1994, so it uses OSS drivers which were dropped from the Linux kernel not too long ago (4.15?).
So I installed the aoss package. https://alsa.opensrc.org/Aoss
With that package installed, starting the application with aoss would solve the sound issue.
But no ...
groucho@devuan:~$ aoss coolmail -v
Coolmail 1.3 watching file: /var/spool/mail/groucho
Coolmail: Error writing to /dev/audio.
groucho@devuan:~$ Now, instead of not being able to open /dev/audio it cannot write to /dev/audio.
Thank you for helping me make some headway here.
The only thing pending is getting some audio output from Coolmail.
Best,
A.
... the authors' idea of clarity is different from mine.
A quotable quote if there ever was one.
Hello:
... add the -e mail option for xterm as its last argument within the double-quoted string. Then that will be run instead of a command shell.
If I use this stanza ...
groucho@devuan:~$ coolmail -v -e "xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T 'System mail notification' -geometry 120x15-300+150 mail"
Coolmail 1.3 watching file: /var/spool/mail/groucho
^C
groucho@devuan:~$ ... clicking on the icon gets me nothing instead of the xterm window.
If I use this stanza ...
groucho@devuan:~$ coolmail -v -e "xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T 'System mail notification' -geometry 120x15-300+150 /var/alternatives/mail"
Coolmail 1.3 watching file: /var/spool/mail/groucho
xterm: No absolute path found for shell: /var/alternatives/mail
^C
groucho@devuan:~$ ... is the same, save for the output (because of -v).
I found some more information here: http://www.linuxcertif.com/man/1/coolmail/
X DEFAULTS
This program understands the core resource names and classes as well as:frameCount (class FrameCount)
Specifies the number of frames to be generated per animation.
inbox (class Inbox)
Specifies the mail inbox that coolmail will watch.mailCommand (class MailCommand) | <---
Specifies the command that should be launched to read and write mail. | <---monochrome (class Monochrome)
A Boolean value that enables monochrome mode when true.
soundFile (class SoundFile)
Specifies the audio file to use rather than the standard system beep.
volume (class Volume)
Value between 0 and 100 for the volume setting for both the system beep and the sound file.
As far as I know, the mailCommand can be Mail, mail or mailx ie: the ones present in /etc/alternatives, but as they are all linked to /usr/bin/bsd-mailx, I also tried this:
coolmail -v -e "xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T 'System mail notification' -geometry 120x15-300+150 /usr/bin/bsd-mailx"No cigar ... 8^|
Thanks for your input.
Best,
A.
Hello:
... double-quotes within a double-quoted string, they must be back-slashed... ie
coolmail -e "xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T \"System mail notification\"" -geometry 120x15-300+150An alternative is to use single-quotes, as in the -xrm detail.
As you indicate, with the back-lash or with the single-quotes it worked.
I did have to move the last double quote to the end of the stanza. otherwise the -geometry bit ie: 120x15 would act upon the application's icon and reduce it to a slit with what would seem to be a 120x15 size ratio.
coolmail -e "xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T 'System mail notification' -geometry 120x15-300+150"The ideal thing would be to have xterm execute mail/mailx as the window opens, but adding && mail does not work, whether I move the last double quote to the end or not.
More sorcery ... 8^|
How can I get that done?
Thanks a lot for your input.
Best,
A.
Hello:
... something for the MTA.
I think I found something.
As it usually happens, a nice simple application which works.
It is called coolmail and it is in the Devuan repository.
groucho@devuan:~$ apt list | grep coolmail
coolmail/stable,now 1.3-12+b1 amd64 [installed]
coolmail/stable 1.3-12+b1 i386
groucho@devuan:~$ You set it up to run at boot from then on it will poll the mail folder (/var/mail/user or a different one).
The polling interval can be set, the default is 20s but I don't know how high this can go.
For me 600s would be just fine.
If there's mail, coolmail will pop up a notification icon and sound the system beep when something arrives.
You can choose an audio file instead of the system beep.
There's a rather cheesy fluttering penguin (like a dumb cartoon) for the default notification icon but you can use a mailbox with a flag that moves.
Fortunately, you can limit the flag's movement and my guess is that the mailbox icon can also be changed for something else.
The good thing is that you can also fire up an application when you double-click on the notification icon.
I choose to open xterm because I never use it, with a geometry to suit my needs.
And because the next thing would be to add a command to execute mail when the xterm window opens.
So the coolmail command would be like this:
coolmail -e xterm -geometry 120x15-300+150 -fr 0 -int 20I'd like to have a title for the xterm window, so I searched on how to do that and found this ...
xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T "System mail notification"... which gets me an xterm window with the legend "System mail notification" in the tile bar.
The problem is that I am not being able to fit that command line into the coolmail launch command line.
In the command line options it says:
OPTIONS
-e command
Use the specified command to launch your mail utility. Command is a string, and should be in quotes if it contains spaces.
So I write it up like this, placing the command in quotes because it has spaces:
groucho@devuan:~$ coolmail -e "xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T "System mail notification"" -geometry 120x15-300+150
Unknown argument: mail
Type coolmail -h for help.
groucho@devuan:~$ Any idea as to how to merge these two commands so they will work?
The next thing woud be to add the command mail to show me what's up.
But this is script sorcery ... 8^|
Thanks in advance,
A.
Hello:
i think you just need ...
What I already have installed: exim 4.94.2. 8^D
Sorry, I was not explicit enough about it.
If interested, you can read about my dealings with it here: https://dev1galaxy.org/viewtopic.php?id=4379
The last post in the thread sums it up in tl;tr: style.
I don't need to forward local mail anywhere, just be notified when mail arrives in my /var/mail/user folder.
Not necessarily in real time (would be nice) just anytime I log in to my desktop.
My box in not up 24/7 and I boot 3 or 4 times a day, so anytime I log in should suffice.
Thanks for your input.
A.
Hello:
mailcheck package is still around ...
Yes, late last night I found the irssi-scripts package which (among a huge lot of scripts) has this:
mailcheck_imap -- staturbar item which indicates how many new emails
mailcheck_mbox_flux -- polls your unix mailbox for new mail
mailcheck_pop3_kimmo -- POP3 new mail notificationalong with
Neat!
I'll have a look at the one you suggest.
I only want something for the MTA.
maybe this can help : https://wiki.debian.org/MaildirConfiguration
I'll have a look at it.
Thank you very much for the heads up.
Cheers,
A.
Hello:
My recent dealings with exim 4.94.2 made me realise that I only find out about system mails if/when I open a terminal and check.
Anyone know of a script that would do this automatically everytime I log into my desktop environment?
ie: open a terminal, centered and of a predetermined size informing me that I have mail in my /var/mail/user folder that will inform me of the folder's status: mail or no mail.
Something as simple (?) as a well written script.
Not an application.
Thanks in advance,
A.
Hello:
That's about it.
Sort of ...
For some reason I decided it would be of use to file a bug against exim 4.94.2.
If interested you can read all about it here.
tl;tr:
It seems that it is not a bug if you update a package, chose the default and recommended action offered by the dpkg installer and as a result break an essential part of your Linux system.
If you (as you absolutely *should* have) updated to exim 4.94.2, check your system mail to see if it is working as expected
Cheers,
A.
Hello:
... what's going on with my sources.list?
UPDATE
I was finally able to get to the bottom of all this exim4 hassle.
Please bear with me, I'll try to be as brief as possible.
When a number of important security failures (dubbed 21 Nails by the IT press) were discovered in exim4 earlier this year, the maintainers were very fast on their feet and an upgraded version 4.94.2 was released almost right away, albeit not without some uproar from the community as this new fixed version actually broke a lot of things for many a sysadmin, things that had been working perfectly well for years.
To the extent that a great many considered opting to downgrade or write risky workarounds.
I have written about this in previous posts, read and check the links if you need more info.
Bottom line?
exim 4.94.2 effectively broke any and all configurations that had been set up with previous versions, whether they used the default configuration ie: the non-split configuration scheme which uses the /etc/exim4/exim4.conf.template file or the split configuration scheme used in more complex installations and which you can eventually opt for when installing Devuan or by running dpkg-reconfigure exim4-config later on.
As a result, from stand alone desktops to production environments to server farms, absolutely everyone updating to exim 4.94.2 was affected.
As mentioned, the default non-split configuration scheme, probably used by 99% of all Devuan/Debian desktops, uses the /etc/exim4/exim4.conf.template which is part of the exim-config package, in turn a dependency of the exim-base package.
The problem I have been bitching about all this time was generated when I updated to exim 4.94.2, something I expected to be a straightforward affaire, without any hassles.
And as (most) any other update, it was.
Half way through, the installer popped up a warning in my terminal informing me that the configuration file being installed ie: the previously mentioned exim4.conf.template was different to the one I had in place and prompted me to choose what to do:
1. keep the installed configuration (default)
2. install the new configuration
3. check and compare the differences.
I chose the default option and in doing so broke my exim4 installation.
As a result my Devuan Beowulf ceased to have a working MTA, all system mail was being held back.
ie: not delivered to my /var/mail/user folder while /var/log/exim4/paniclog slowly grew in size.
I found out about the cause of all this rather by accident.
After not being able to find a solution and fed up with looking, I decided to downgrade exim4 to the previous version and just risk it.
Then, looking at the installed packages, I noticed a discrepancy in their versions ie: exim-config had the previous package version number.
I downloaded and installed the proper version and when the installer warning described above popped up in my terminal, I realised what had happened when I upgraded to 4.94.2.
exim4 is now working as before.
----
Now, after feeling like an idiot for a whole afternoon, I asked myself:
1.
Why would I not choose the default option offered by the installer?
After all, WTF do I know about exim4?
Save that it is the default MTA in Devuan and it keeps me informed as to what is going on via the system mails I get in my /var/mail/user folder, nothing much.
I am not running a mail server from my box and if I add another box to my ADSL router, I believe sending mails between the two boxes is a simple affaire.
Like probably 99% of the Devuan desktops out there, a working default MTA is all I need.
In any case and just like the people who run them, I am just an average user and as such have an inherent trust in everything I download and install from the Devuan repositories, so I had absolutely no reason to choose anything but the default option recommended by the installer.
If I did not have this trust, my box would have something else running inside.
2.
Taking into account that exim 4.94.2 breaks all configurations set up with previous versions of the package ...
rant --->
How is it possible that the exim 4.94.2 installer offers me (as the default and recommended option, no less) to keep a configuration file that, belonging to a previous version, will effectively break it and make it useless?
<--- /rant
From https://www.exim.org/docs.html
All versions of Exim previous to version 4.94.2 are now obsolete.
From https://git.exim.org/exim.git/blob/HEAD … E.UPDATING
Exim version 4.94
-----------------
Some Transports now refuse to use tainted data in constructing their delivery\nlocation; this WILL BREAK configurations which are not updated accordingly. In particular: any Transport use of $local_part which has been relying upon\ncheck_local_user far away in the Router to make it safe, should be updated to replace $local_part with $local_part_data.
The /etc/exim4/exim4.conf.template file has 2200 lines of code contains a number of $local_part and check_local_user bits.
Unfortunately, editing it by hand did not help me when I did it, so evidently something else was needed.
That's about it.
Best,
A.
Hello:
Thanks.
You're welcome.
You had to dig deep ...
It's nothing compared to what a great many people do every day for Linux.
Although I must admit that sometimes frustration does get the best of me and out! comes my otherwise hidden curmudgeonly personality. 8^D !!!
Best,
A.
Hello:
Please report the bug upstream.
Done.
Best,
A.
Hello:
We'll see if I get some feedback from the GitHub site ...
UPDATE:
Looking around in the GitHub site I found a report from 10/2017, ie: four years ago.
It is (for all intent and purposes) identical to what I reported recently:
Unhandled exception in thread started by <function __log_keyring_warning at 0x7fd39670a400>
Traceback (most recent call last):
File "/usr/share/backintime/common/tools.py", line 1463, in __log_keyring_warning
TypeError: 'NoneType' object is not callableThe OP cites the same thing: happens very rarely. In my case, I had never seen it before.
He produced the output from --debug and that was it.
Unhandled exception in thread started by <function __log_keyring_warning at 0x7fd698dbf400>
Traceback (most recent call last):
File "/usr/share/backintime/common/tools.py", line 1463, in __log_keyring_warning
File "", line 2237, in _find_and_load
File "", line 2222, in _find_and_load_unlocked
File "", line 2150, in _find_spec
TypeError: 'NoneType' object is not callableThis was happening running backintime 1.1.20 under Linux 4.4.87-18.29-default x86_64. (Open Suse).
Here it is happening running backintime 1.1.24 under Linux 5.10.0-0.bpo.3-amd64 (Devuan Beowulf)
So ...
Best,
A.
Hello:
Comments welcome.
One at a time, please, there's room for everyone ...
I think that the problem may lie in the fact that (according to apt) the installed exim4 configuration package ie: exim4-config is not the same version as the rest of the exim4 files in the stable-backports repository:
groucho@devuan:~$ apt list | grep installed | grep exim4
exim4-base/stable-backports,now 4.94.2-5~bpo10+1 amd64 [installed,automatic]
exim4-config/stable,stable,stable-security,stable-security,now 4.92-8+deb10u6 all [installed,automatic] # <--- | X |
exim4-daemon-light/stable-backports,now 4.94.2-5~bpo10+1 amd64 [installed,automatic]
exim4/stable-backports,stable-backports,now 4.94.2-5~bpo10+1 all [installed]
groucho@devuan:~$ All files are 4.94.2-5~bpo10+1 with the exception of exim4-config which is 4.92-8+deb10u6.
It does not seem to be available:
groucho@devuan:~$ apt list | grep exim4-config
exim4-config/stable,stable,stable-security,stable-security,now 4.92-8+deb10u6 all [installed,automatic]
groucho@devuan:~$ [root@devuan groucho]# apt install exim4-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
exim4-config is already the newest version (4.92-8+deb10u6).
exim4-config set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[root@devuan groucho]# The strange thing is that version 4.94.2-5~bpo10+1 is available in http://deb.devuan.org/merged beowulf-backports/main which is in my sources.list file.
groucho@devuan:~$ cat /etc/apt/sources.list
## package repositories
# Changed - 20210218 - upgrade to Beowulf
# beowulf stable
deb http://deb.devuan.org/merged/ beowulf main contrib non-free
deb http://deb.devuan.org/merged/ beowulf-security main contrib non-free
deb http://deb.devuan.org/merged/ beowulf-updates main contrib non-free
# needed x virtualbox backport - enable to update package
deb http://deb.devuan.org/merged/ beowulf-backports non-free contrib main
# virtual box repository x installation
# deb http://download.virtualbox.org/virtualbox/debian/ buster non-free contrib
groucho@devuan:~$ Could anyone explain what's going on with my sources.list?
Thanks in advance,
A.
Hello:
Apparently it works* as expected. 8^)
Much to my chagrin, no.
It does not. 8^|
I am still getting the same error:
2021-06-21 09:04:47 1lrnn0-000275-6X == groucho@devuan R=local_user T=mail_spool defer (-1): Tainted '/var/mail/groucho' (file or directory name for mail_spool transport) not permittedie: mail is being generated, held back and not delivered to my mailbox at /var/mail/groucho because exim4 does not like it anymore.
Unfortunately, editing the exim4/conf/template file as previously described does not solve the problem which apparently needs a deeper editing of the template to get rid of all the offending variables.
https://git.exim.org/exim.git/blob/HEAD … E.UPDATING
Exim version 4.94
-----------------
Some Transports now refuse to use tainted data in constructing their delivery
location; this WILL BREAK configurations which are not updated accordingly.
In particular: any Transport use of $local_part which has been relying upon
check_local_user far away in the Router to make it safe, should be updated to
replace $local_part with $local_part_data.Attempting to remove, in router or transport, a header name that ends with
an asterisk (which is a standards-legal name) will now result in all headers
named starting with the string before the asterisk being removed. We recommend
staying away from such names, if they are private ones (and in case of future
enhancements, also header names that look like REs).
I found this on the web from a chap who explains what's going on and shows (warning against using it) an unsafe solution to the problem.
Here's another chap who explains the different errors, their causes and possible solutions.
All of which is very nice, these chap's efforts are commendable but don't show a workable path for the Linux desktop user.
exim4 is the default MTA for Devuan/Debian.
And it's default configuration ie: non-split configuration scheme which uses the /etc/exim4/exim4.conf.template file is the one probably used by 99% of all Devuan/Debian desktops.
The result of the upgrade to exim4 4.94.2 (without an updated /etc/exim4/exim4.conf.template file) is a broken default MTA in Devuan/Debian.
ie: a MTA that does not transport mail and to that effect is useless.
Is there a solution to this that does not involve a crash course in exim4 configuration?
The configuration file is 2121 lines long which I expect is rather out of reach (at least it is for me) to appropiately edit and fix, something I think exim4 developers should have done.
So I'm at a loss as to what to do now.
And cannot but wonder if I am the only one affected by this problem here at Dev1 as I have not seen any posts about exim error messages.
Maybe it is time to roll back to the previous exim4 version and risk it?
Comments welcome.
Best,
A.
Hello:
Sorry ...
For? 8^)
... talking about crontab ...
... talking about the crontab file that sets up the environment.
... if you execute the command from the crontab file in a standard shell ...
And that's what I understood.
ie: one thing is executing the command listed in crontab from a shell and another is when cron actually executes that command.
... anything that is needed by a command has to be setup by the command itself.
Got it.
That command is set up by the application and I have not touched it.
Hence the warning:
#Back In Time system entry, this will be edited by the gui:... reason why a command that works in a standard shell will fail in a cron call from the crontab file.
Yes, I've seen that some time ago.
In any case, up to now, cron.log has shown no issues with respect to the backintime script.
We'll see if I get some feedback from the GitHub site, it dos not seem to have much activity on behalf of the maintainers.
But it does not seem to be dead.
Thanks so much lot for your input.
Best,
A.
Hello:
... fails in your crontab but is working in a standard shell ...
That's the thing ...
It did not fail in crontab.
The notification was sent by the Cron Daemon on date Mon, 21 Jun 2021 11:00:02 -0300.
The last backintime log entry was for a snapshot taken at Mon Jun 21 07:15:01 2021 local time and does not show any errors.
At least I can't make out a failure in /var/log/cron.log.
groucho@devuan:/var/log$ tail -600 cron.log
--- snip ---
Jun 21 07:04:47 devuan anacron[2132]: Anacron 2.3 started on 2021-06-21
Jun 21 07:04:47 devuan anacron[2132]: Will run job `cron.daily' in 5 min.
Jun 21 07:04:47 devuan anacron[2132]: Jobs will be executed sequentially
Jun 21 07:04:47 devuan cron[2200]: (CRON) INFO (pidfile fd = 3)
Jun 21 07:04:47 devuan cron[2201]: (CRON) STARTUP (fork ok)
Jun 21 07:04:47 devuan cron[2201]: (CRON) INFO (Running @reboot jobs)
Jun 21 07:05:01 devuan CRON[3030]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 07:09:47 devuan anacron[2132]: Job `cron.daily' started
Jun 21 07:09:47 devuan anacron[3660]: Updated timestamp for job `cron.daily' to 2021-06-21
Jun 21 07:10:42 devuan cracklib: no dictionary update necessary.
Jun 21 07:10:44 devuan anacron[2132]: Job `cron.daily' terminated
Jun 21 07:10:44 devuan anacron[2132]: Normal exit (1 job run)
Jun 21 07:15:01 devuan CRON[4019]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 07:15:01 devuan CRON[4020]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job >/dev/null)
Jun 21 07:17:01 devuan CRON[4142]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 21 07:25:01 devuan CRON[4479]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 07:30:01 devuan CRON[4691]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Jun 21 07:30:01 devuan CRON[4692]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job >/dev/null)
Jun 21 07:30:01 devuan anacron[4716]: Anacron 2.3 started on 2021-06-21
Jun 21 07:30:01 devuan anacron[4716]: Normal exit (0 jobs run)
Jun 21 07:35:01 devuan CRON[4986]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 07:45:01 devuan CRON[5386]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 07:45:01 devuan CRON[5387]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job >/dev/null)
Jun 21 07:55:01 devuan CRON[5783]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 08:00:01 devuan CRON[6000]: (root) CMD (timeshift --check --scripted)
Jun 21 08:00:01 devuan CRON[6001]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job >/dev/null)
Jun 21 08:00:02 devuan crontab[6047]: (root) LIST (root)
#
Jun 21 08:00:02 devuan crontab[6048]: (root) LIST (root) # here is where the notification is sent ie: 11:00:02 -0300.
#
Jun 21 08:05:01 devuan CRON[6298]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 08:15:01 devuan CRON[6663]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 08:15:01 devuan CRON[6664]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job >/dev/null)
Jun 21 08:17:01 devuan CRON[6758]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 21 08:25:01 devuan CRON[7052]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 21 08:30:01 devuan CRON[7230]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Jun 21 08:30:01 devuan CRON[7231]: (groucho) CMD (/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job >/dev/null)
Jun 21 08:30:01 devuan anacron[7255]: Anacron 2.3 started on 2021-06-21
Jun 21 08:30:01 devuan anacron[7255]: Normal exit (0 jobs run)
--- snip ---Thanks for your input.
Best,
A.
Hello:
Apparently it works as expected. 8^)
It just dawned on me that the solution I linked to comes from the OP comparing his exim.conf with another file called exim.conf.rpmnew.
Very smart.
This other configuration file is included in a distribution (manjaro?) that detected the problem created by the exim4 update and edited the original file accordingly.
The new (exim.conf.rpmnew) file had the "file" listed as: file = /var/mail/$local_part_data
Maybe the Devuan/Debian (or better yet, the exim4 packagers may want to consider doing the same with the /etc/exim4/exim4.conf.template file.
Q: should a bug report be filed somewhere?
Best,
A.
Hello:
... looks very stange and maybe one of your installed python package is corrupted.
the line
'from time import sleep'
is a core python function to import an external package (in this case the time utils lib)
I see.
At first I thought that maybe the syntax could have been rendered wrong or broken by an update to python?
ie: similar to what happened with the last exim4 update.
But then my python installation is datestamped 10/2019 and this is the first time I have seen this error, so I don't think it is that.
... test if the command from the crontab is working on a standard shell. The cron environment is sometimes very special.
Right
groucho@devuan:~$ /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime backup-job >/dev/null
groucho@devuan:~$
groucho@devuan:~$ mail
No mail for groucho
groucho@devuan:~$ The backintime application produced a backup and the log reported no errors.
========== Take snapshot (profile 1): Tue Jun 22 07:30:02 2021 ==========... try the following:
start python2 on a shell and execute 'from time import sleep'
Here we go:
groucho@devuan:~$ python2
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from time import sleep
>>> exit ()
groucho@devuan:~$If this fails ...
It seems that both tests were successful.
Maybe this is a perfect combination of unknowns?
ie: a glitch which did not disrupt anything and just produced an error message.
I will wait and see if it shows up again.
In the meantime I have filed an issue at the backintime github page -> https://github.com/bit-team/backintime/issues
Thank you very much for taking the time to write this up for me.
Best,
A.
Hello:
Now that my exim4 is (apparently) working as expected, I can reap rewards of a sort.
I now get the news, both good and bad.
I have just received a notification related to the backintime utility that I had not ever seen before:
--- snip ---
Unhandled exception in thread started by <function __log_keyring_warning at 0x7fdf90288488>
Traceback (most recent call last):
File "/usr/share/backintime/common/tools.py", line 1458, in __log_keyring_warning
TypeError: 'NoneType' object is not callableFortunately, in this case the notification is clear and I can go check what is going on.
I open the tools.py file to try and find the offending line which, according to jed has a different number (1457):
1456
1457 def __log_keyring_warning():
1458 from time import sleep
1459 sleep(0.1)
1460 logger.warning('import keyring failed')
1461
1462 if keyring is None and keyring_warn:
1463 #delay warning to give logger some time to import
1464 import _thread
1465 _thread.start_new_thread(__log_keyring_warning, ())
1466 # logger.warning('import keyring failed')
1467 # <-- this is the last line in the scriptI wonder if this is happening now because of some update/upgrade?
In any case, python is just a family of long fat snakes to me.
ie: not a clue
The notification was sent by the Cron Daemon on date Mon, 21 Jun 2021 11:00:02 -0300.
The last backintime log entry was for a snapshot taken at Mon Jun 21 07:15:01 2021 local time and does not show any errors.
The crontab script is a system entry generated by the GUI and the python script comes with the application's installation.
Installed version is Python 2.7.16 (default, Oct 10 2019, 22:02:15).
Q: any idea as to why this has started happening now?
Thanks in advance,
A.
Hello:
... post back in a couple of days reboots with the results.
Apparently it works* as expected. 8^)
Edit:
See the edit in my previous post.
The exim4 needs to be updated, otherwise modifications to the template file are not incorporated to the rest of the configuration files.
The script update-exim4.conf generates the main configuration files /var/lib/exim4/config.autogenerated for Exim v4 by merging the data in the template file
/etc/exim4/exim4.conf.template or the ones in the /etc/exim4/conf.d directory tree respectively and /etc/exim4/update-exim4.conf.conf to the output file /var/lib/exim4/config.autogenerated.
On reboot my mailbox received notice of a number of notifications (crontab and such for logfiles) that had been delayed for as much as 144 hours.
Which means that exim4 no longer has an issue with /var/mail/username.
Clearing the mailbox and rebooting showed no mail in my mailbox.
So that's that.
Best,
A.
Hello:
... how to deal with this #%&@ tainting problem so that exim4 can keep doing what it was doing ...
I think I have found a solution.
I say think because I don't have a clue as to how all this works.
ie: if this is just a workaround or a proper configuration option.
If it is just a workaround the new security schemes in exim4, then it is bound to be temporary and we'll have to be alert.
If it is a proper configuration option, WTF is it not properly documented somewhere?
I found it here:
https://www.linuxquestions.org/question … ost6136422
In this case, the problem seems to be that exim4 now does not like the directory name for my mail folder.
I think it has to do with the backlashes in /var/mail/username.
It would be really nice if whoever came up with this (must be necessary, they know how it all works) just wrote up a small bit or a proper comment inside this file informing that the solution was to edit the file /etc/exim4/exim4.conf.template which is used for the most basic exim4 configuration.
ie: the non-split configuration scheme I expect is used by most of us here at Dev1.
Evidently too much to ask. 8^/
To the point:
The part of this huge 2122 line configuration file that must be edited is the one concerning mail spool configuration.
#####################################################
### transport/30_exim4-config_mail_spool
#####################################################
### transport/30_exim4-config_mail_spool
# This transport is used for local delivery to user mailboxes in traditional
# BSD mailbox format.
#
mail_spool:
debug_print = "T: appendfile for $local_part@$domain"
driver = appendfile
file = /var/mail/$local_part # <----- this is the line that has to be edited
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660
mode_fail_narrower = false
#####################################################
### end transport/30_exim4-config_mail_spool
#####################################################It seems that the line file = /var/mail/$local_part has to be edited to read file = /var/mail/$local_part_data.
Sort of makes me wonder if there is any reason for the edited line not being there by default.
Caveat emptor:
I have not tested this yet, the post where I got it had a following one saying that it works.
----> EDIT
For this to work properly the exim4 configuration has to be updated.
BTW: did you see anything about it in the comments at the start of the exim4.conf.template file?
No?
I thought as much ...
As root run:
[root@devuan groucho]# update-exim4.conf -v
using non-split configuration scheme from /etc/exim4/exim4.conf.template
[root@devuan groucho]# jed /etc/exim4/exim4.conf.template/EDIT <----
I'll post back in a couple of days reboots with the results.
Best,
A.
Hello:
... never had to roll back a package ...
... dont believe it is straightforward process.
Never done it either.
I have pinned a package which may (?) be more or less the same idea.
An MTA is essential for any Linux installation, the mails I get (when I remember to look ...) have brought me up to date with respect to issues I had with crontab, backups, trim, etc.
Can't do without one.
Exim had some security issues with vulnerabilities discovered early this year and this last version tightened things up a bit.
But, from what I have read, it seems changes were not rolled out in a proper manner and even veteran admins are at odds as to how to get things done with the new version.
I've read at least one post that characterises sendmail as not easy to deal with citing "... complicated configuration steps and demands, and weak security mechanisms ...", something I really don't need.
What I want to know is how to deal with this #%&@ tainting problem so that exim4 can keep doing what it was doing before the same way it was doing it: silently and efficiently.
Seems I'm in a spot: if experienced professional admins* can't understand how to ge that done, what can I expect to achieve?
Thanks for your input.
Best,
A.
* See the links in my OP.
Edit: spelling, etc.
Hello:
I'm getting these mails in my user account:
Subject: exim paniclog on devuan has non-zero size
To: root@devuan
Message-Id: <E1lsebV-000146-0x@devuan>
From: root <root@devuan>
Date: Mon, 14 Jun 2021 01:53:41 -0300
Status: O
exim paniclog /var/log/exim4/paniclog on devuan has non-zero size, mail system might be broken. Up to 10 lines are quoted below.
2021-06-13 21:21:49 1lsAUd-0001xc-6C == groucho@devuan R=local_user T=mail_spool defer (-1): Tainted '/var/mail/groucho' (file or directory name for mail_spool transport) not permitted
--- snip ---
2021-06-14 01:33:33 1lsX5B-00024J-0o == groucho@devuan R=local_user T=mail_spool defer (-1): Tainted '/var/mail/groucho' (file or directory name for mail_spool transport) not permittedThese messages do exist in /var/log/exim4/paniclog but I cannot find out what is going on.
I've had other paniclog entries but these were caused by the IPv6 entries in the hosts file, which I then commented:
groucho@devuan:~$ cat /etc/hosts
127.0.0.1 devuan localhost
#::1 localhost ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#fe00::0 ip6-mcastprefix
#fe02::1 ip6-allnodes
#fe02::1 ip6-allrouters
groucho@devuan:~$My user is in both the mail and the debian-exim groups:
groucho@devuan:~$ groups
groucho adm lp mail dialout fax cdrom floppy tape sudo audio dip www-data backup video plugdev staff users crontab netdev lpadmin scanner saned fuse powerdev debian-exim
groucho@devuan:~$ /var/mail/groucho belongs to my user and the mail group:
groucho@devuan:~$ ls -l /var/mail/groucho
-rw-rw---- 1 groucho mail 20337 Jun 20 09:01 /var/mail/groucho
groucho@devuan:~$ Exim version is 4.94.2:
groucho@devuan:/var/mail$ sudo exim --version
Exim version 4.94.2 #2 built 26-May-2021 15:52:52
Copyright (c) University of Cambridge, 1995 - 2018
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2018
Berkeley DB: Berkeley DB 5.3.28: (September 9, 2013)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DANE DKIM DNSSEC Event I18N OCSP PIPE_CONNECT PRDR SOCKS TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
Configuration file search path is /etc/exim4/exim4.conf:/var/lib/exim4/config.autogenerated
Configuration file is /var/lib/exim4/config.autogenerated
groucho@devuan:/var/mail$ I found these links from 2020 that discuss/address the problem:
https://www.mail-archive.com/exim-users … 54868.html
https://www.mail-archive.com/exim-users … 54870.html
https://www.mail-archive.com/exim-users … 54875.html
From the comments it would seem that the developers have not been up to par with the update to 4.94.2 and a lot of admins are not happy.
But it's 06/2021 and things (apparently) remain the same. (?)
I really don't want to break anything in my installation because of the MTA so I'd be quite willing to roll back to the previous exim4 version.
Which would be the safest way to go about doing that?
Or is there another way to avoid all the de-tainting hassle with the chance of breaking something?
Edit:
Looking around for the exim4 configuration files, I finally found /var/lib/exim4/config.autogenerated which starts like this:
groucho@devuan:~$ cat /var/lib/exim4/config.autogenerated
#########
# WARNING WARNING WARNING
# WARNING WARNING WARNING
# WARNING WARNING WARNING
# WARNING WARNING WARNING
# WARNING WARNING WARNING
# This file was generated dynamically from
# non-split config (/etc/exim4/exim4.conf.localmacros
# and /etc/exim4/exim4.conf.template).
# The config files are supplemented with package installation/configuration
# settings managed by debconf. This data is stored in
# /etc/exim4/update-exim4.conf.conf
# Any changes you make here will be lost.
# See /usr/share/doc/exim4-base/README.Debian.gz and update-exim4.conf(8)
# for instructions of customization.
# WARNING WARNING WARNING
# WARNING WARNING WARNING
# WARNING WARNING WARNING
# WARNING WARNING WARNING
# WARNING WARNING WARNING
#########So I went to /etc/exim4/update-exim4.conf.conf, which would be the conf file for exim4:
groucho@devuan:~$ cat /etc/exim4/update-exim4.conf.conf
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes # is it just me or does
# to this file might happen. The code handling this will honor your local # anyone else read this
# changes, so this is usually fine, but will break local schemes that mess # as devspeak for "screw
# around with multiple versions of the file. # you, you are on your own"?
#
# update-exim4.conf uses this file to determine variable values to generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the # !!!!
# Debconf configuration, but not all of them. # !!!!
#
# This is a Debian specific file
dc_eximconfig_configtype='local'
dc_other_hostnames='groucho'
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
groucho@devuan:~$ [rant]
Who's in charge of exim4, Poettering?
[/rant]
Edit 2:
Interesting and well written post, only understood between 50% and 75% of it. 8^/
But the first two paragraphs are very revealing of what has happened with exim.
See: https://lists.exim.org/lurker/message/2 … 4d.en.html
Thanks in advance,
A.