Bug #2859
Failure notice generated after sogo-tool execution into cron.d
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-sogo | |||
Target version: | v6.5 | |||
Security class: | Resolution: | CANTFIX | ||
Affected version: | v6.5-final | NEEDINFO: | No |
Description
**Issue
Postamaster receives this mailer-daemon
-------- Messaggio Inoltrato -------- Oggetto: failure notice Mittente: MAILER-DAEMON@*** A: anonymous@**** Hi. This is the qmail-send program at *****. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. Recipient unknown --- Below this line is a copy of the message. Return-Path: Received: (qmail 32069 invoked by alias); 31 Aug 2014 22:00:04 -0000 Delivered-To: alias-localdelivery-sogo@****** Received: (qmail 32066 invoked by uid 5028); 31 Aug 2014 22:00:04 -0000 Date: 31 Aug 2014 22:00:02 -0000 Message-ID: <20140831220002.32061.qmail@***> From: root@*****(Cron Daemon) To: sogo@**** Subject: Cron /usr/sbin/sogo-tool expire-autoreply sogo:hzsJZaS2VO********** Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: <0x0x83169b4[SOGoCache]> Cache cleanup interval set every 300.000000 seconds <0x0x83169b4[SOGoCache]> Using host(s) 'localhost' as server(s) <0x0x8323b54[LDAPSource]> WARNING: using old bindFields format - please update it 2014-09-01 00:00:04.268 sogo-tool[32058] failure. Attempting with a renewed password (no authname supported) 2014-09-01 00:00:04.308 sogo-tool[32058] Could not login 'paola' on Sieve server: <0x0x840656c[NGSieveClient]: socket= connectedTo=<0x0x8408884[NGInternetSocketAddress]: host=localhost port=4190>>>: (null) 2014-09-01 00:00:04.314 sogo-tool[32058] An error occured while removing auto-reply of user paola
Explanation
There is a cron job like this:
# cat /etc/e-smith/templates/etc/cron.d/sogo/10base 0 0 * * * sogo /usr/sbin/sogo-tool expire-autoreply sogo:D23LsFi07KTCpxXUc**********
- sogo-tool expire-autoreply exit with ouput
- this ouput generates an email
- sogo user hasn't mail folder
- this email is bounced to postmaster
Solution proposed
Modify the cronjob suppressing output
0 0 * * * sogo /usr/sbin/sogo-tool expire-autoreply sogo:D23LsFi07KTCpxXUc***** >/dev/null 2>&1
Related issues
History
#2 Updated by Giacomo Sanchietti almost 7 years ago
- Target version deleted (
v6.5) - Affected version set to v6.5
#3 Updated by Giacomo Sanchietti almost 7 years ago
- Affected version changed from v6.5 to v6.5-final
#4 Updated by Filippo Carletti almost 7 years ago
- Target version set to v6.5
#5 Updated by Giacomo Sanchietti almost 7 years ago
- Status changed from NEW to TRIAGED
- % Done changed from 0 to 20
#6 Updated by Giacomo Sanchietti almost 7 years ago
Mails from cron are useful to debug system errors.
I'd prefer to not suppress the standard error of the script, but redirect to root all mails sent to sogo user.
This command does the job:
echo "root" > /var/lib/nethserver/.forward
#7 Updated by Giacomo Sanchietti almost 7 years ago
- Related to Feature #2748: Upgrade SOGO to 2.2.15 added
#8 Updated by Giacomo Sanchietti almost 7 years ago
- Status changed from TRIAGED to CLOSED
- % Done changed from 20 to 100
- Resolution set to CANTFIX
This bug is not reproducible and was present only on an old release, please ignore it.