This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Sendmail not working in Kalarm

Tags: None
(comma "," separated)
User avatar
blue_bullet
Registered Member
Posts
87
Karma
0
OS

Sendmail not working in Kalarm

Fri Jul 11, 2014 6:34 pm
I am running kalarm with logs sent to my home directory file named toggle_mute.log. Command success/failure is accurately logged there but sendmail is not sending them to my email account.
In my Kalarm configuration I specify use sendmail to rcburness.noreply@gmail.com. Nothing gets sent. In Konsole I can issue the command

sendmail rcburness.noreply@gmail.com < /home/rob/toggle_mute.log

and I receive the toggle_mute.log in my gmail account.
I use Thunderbird and gmail rather than Kmail. I am running Linux Mint 17 KDE (64 bit), Kalarm 2.10.10-ak., KDE 4.13.2.

Other reports I Googled said it was a bug in sendmail with no further explanation. Is there a place I can look for the status of Kalarm/sendmail commands?

A copy of my file toggle_mute.log:

Code: Select all
******* KAlarm 07/07/14 11:08 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/07/14 11:09 AM *******
Volume already on.  Toggle not needed.

******* KAlarm 07/08/14 12:00 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/08/14 07:00 AM *******
   110 +++    line=linein(o_fid)
Error 4 running "/home/rob/Dropbox/shared_rcss_complex/toggle_mute.rexx", line 110: Program interrupted

******* KAlarm 07/08/14 11:08 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/08/14 11:09 AM *******
Volume unmuted in toggle_mute.

******* KAlarm 07/09/14 12:00 AM *******

******* KAlarm 07/09/14 12:00 AM *******
rm: cannot remove ‘/home/rob/toggle_mute.txt’: No such file or directory
    69 *-* 'rm 'o_fid
       +++ RC=1 +++
Unexpected Return Code 1 from command:
          'rm 'o_fid
at line 69.

******* KAlarm 07/09/14 12:00 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/09/14 07:00 AM *******

******* KAlarm 07/09/14 07:00 AM *******
rm: cannot remove ‘/home/rob/toggle_mute.txt’: No such file or directory
    69 *-* 'rm 'o_fid
       +++ RC=1 +++
Unexpected Return Code 1 from command:
          'rm 'o_fid
at line 69.
   110 +++    line=linein(o_fid)
Error 4 running "/home/rob/Dropbox/shared_rcss_complex/toggle_mute.rexx", line 110: Program interrupted

******* KAlarm 07/09/14 09:38 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/09/14 09:40 AM *******
Volume unmuted in toggle_mute.

******* KAlarm 07/09/14 11:08 AM *******

******* KAlarm 07/10/14 12:00 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/10/14 07:00 AM *******
Volume unmuted in toggle_mute.

******* KAlarm 07/10/14 09:38 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/10/14 09:40 AM *******
Volume unmuted in toggle_mute.

******* KAlarm 07/10/14 11:08 AM *******

******* KAlarm 07/11/14 12:00 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/11/14 07:00 AM *******
Volume unmuted in toggle_mute.

******* KAlarm 07/11/14 09:38 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/11/14 09:40 AM *******
Volume unmuted in toggle_mute.

******* KAlarm 07/11/14 11:08 AM *******

******* KAlarm 07/11/14 11:54 AM *******
Volume muted in toggle_mute.

******* KAlarm 07/11/14 11:56 AM *******
Volume unmuted in toggle_mute.



I tried to submit a bug report to KDE using the Launch Bug Report Wizard tab under Help in Kalarm and got this for my effort (using Google Chrome):

https://bugs.kde.org/enter_bug.cgi?form ... 2.10.10-ak

This webpage is not available

I tried several times, gave up and thought I would post here to get some help. Seems the bug reporter in KDE Apps is a bit buggy itself ;->


Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Sendmail not working in Kalarm

Sat Jul 12, 2014 11:03 pm
KDE Bugzilla was down for a server move and system upgrade yesterday, which is why you got the page you did.
As for why sendmail isn't working - have you tried checking your local MTA logs to ensure it is running and not encountering problems delivering your email?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
blue_bullet
Registered Member
Posts
87
Karma
0
OS

Re: Sendmail not working in Kalarm

Mon Jul 14, 2014 5:40 pm
bcooksley wrote:KDE Bugzilla was down for a server move and system upgrade yesterday, which is why you got the page you did.
As for why sendmail isn't working - have you tried checking your local MTA logs to ensure it is running and not encountering problems delivering your email?

Thank you for the information on system being down for routine maintenance. Many sites provide that information when they know in advance they will be down. I suppose they have their reasons for not doing so or perhaps I missed it.

The only MTA log I find is /var/log/mail.log. It contains entries from when I run sendmail from Konsole but not for Kalarm. Kalarm worked at 7am this morning but did not send an email. Should I be looking somewhere else for MTA logs? Here is what my mail.log looks like. Line numbers are prefixes from the editor I use. I just ran sendmail from Konsole. It shows up:

Code: Select all
00001 Jul 13 07:36:06 fargo sSMTP[15341]: Creating SSL connection to host
00002 Jul 13 07:36:08 fargo sSMTP[15341]: SSL connection using RSA_ARCFOUR_SHA1
00003 Jul 13 07:36:10 fargo sSMTP[15341]: Sent mail for root@ (221 2.0.0 closing connection ir10sm7857535pbc.59 - gsmtp) uid=0 username=root outbytes=500
00004 Jul 14 11:28:11 fargo sSMTP[31779]: Creating SSL connection to host
00005 Jul 14 11:28:11 fargo sSMTP[31779]: SSL connection using RSA_ARCFOUR_SHA1
00006 Jul 14 11:28:15 fargo sSMTP[31779]: Sent mail for rob@ (221 2.0.0 closing connection st5sm11420990pbc.68 - gsmtp) uid=1000 username=rob outbytes=3304


When would be a good time to report this bug?


Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Sendmail not working in Kalarm

Tue Jul 15, 2014 11:25 am
The downtime was advertised on several KDE mailing lists in this case - although it wasn't visible on the site itself.
Bug reports can now be filed at any time.

Can you please check to see if KAlarm is attempting to run the command at all? (Perhaps use a simple wrapper script which touches a file for instance).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
blue_bullet
Registered Member
Posts
87
Karma
0
OS

Re: Sendmail not working in Kalarm

Tue Jul 15, 2014 4:56 pm
bcooksley wrote:Can you please check to see if KAlarm is attempting to run the command at all? (Perhaps use a simple wrapper script which touches a file for instance).

KAlarm is working as far as executing the command is concerned. However the sendmail option is not working. Per your suggestion I submitted this simple script
for KAlarm to execute and it works yet sendmail does not send a message.

#!/bin/bash
# Updated 2014-07-15 @ 10:03:10 by rob@fargo
echo "Running script to test KAlarm and sendmail..."
touch /home/rob/toggle_mute.log
echo "Done with test"


It logs to a file I set up named /home/rob/KAlarm.log with errors until I set the permission to execute:

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7.]..+....8....+....9....+...10....+...11....+...12....+...13....+...14....+...15....+...16....+...17....+...18.
00001
00002
00003 ******* KAlarm 07/15/14 09:44 AM *******
00004
00005 ******* KAlarm 07/15/14 09:50 AM *******
00006 Running script to test KAlarm and sendmail...
00007
00008 ******* KAlarm 07/15/14 10:08 AM *******
00009 /bin/bash: /home/rob/Dropbox/shared_rcss_complex/KAlarm_test.sh: Permission denied
00010
00011 ******* KAlarm 07/15/14 10:08 AM *******
00012 /bin/bash: /home/rob/Dropbox/shared_rcss_complex/KAlarm_test.sh: Permission denied
00013
00014 ******* KAlarm 07/15/14 10:09 AM *******
00015 /bin/bash: /home/rob/Dropbox/shared_rcss_complex/KAlarm_test.sh: Permission denied
00016
00017 ******* KAlarm 07/15/14 10:09 AM *******
00018 /bin/bash: /home/rob/Dropbox/shared_rcss_complex/KAlarm_test.sh: Permission denied
00019
00020 ******* KAlarm 07/15/14 10:10 AM *******
00021 Running script to test KAlarm and sendmail...
00022 Done with test


I am specifying KAlarm use sendmail, but no mail is sent:

https://imagizer.imageshack.us/v2/630x585q90/905/9f18e9.jpg

I hope I posted the above screen shot properly.

Again KAlarm executes the command. It just does not send the email using sendmail. Does KAlarm provide a log? Nothing in /var/log/syslog as there is with Cron.


Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Sendmail not working in Kalarm

Wed Jul 16, 2014 7:05 am
For a KAlarm log you will need to run "kdebugdialog" and enable all areas. Then either start KAlarm in a terminal, or tail ~/.xsession-errors to observe any output which is generated.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]