Bug #2677

Warning after fetchmail installation

Added by Alessio Fattorini over 7 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-fetchmail
Target version:v6.5-final
Security class: Resolution:
Affected version:v6.5-rc1 NEEDINFO:No

Description

Finished installation of nethserver-fetchmail i can see a warning on UI (see attchments)

/var/log/messages reported:
eb 15 13:33:10 botolo esmith::event[14246]: Event: firewall-adjust SUCCESS
Feb 15 13:33:10 botolo esmith::event[14435]: Event: runlevel-adjust
Feb 15 13:33:10 botolo esmith::event[14435]: Starting fetchmail: fetchmail: nessun server di posta specificato.
Feb 15 13:33:10 botolo esmith::event[14435]: [FALLITO]#015

Seems that fetchmail can't start without the first configuration.

I propose to enable only if there is at least one configured account

fetchamail_error.png (4.32 KB) Alessio Fattorini, 02/27/2014 03:26 PM

Associated revisions

Revision 9806f1c4
Added by Davide Principi over 7 years ago

fetchmail.log: fixed log management and startup permissions. Refs #2677

The logFile prop has been removed to keep consistent UI, logrotate
and daemon logfile.

Revision 3ddd4a7f
Added by Davide Principi over 7 years ago

fetchmail init script: check if any active account exists. Refs #2677

  • Read configuration from stdin
  • Removed fetchmailrc from disk
  • Removed fetchmail home directory
  • Use /var/run/fetchmail/ for locking

Revision 746c8d2a
Added by Davide Principi over 7 years ago

Use syslog to log messages. Refs #2677

Add timestamp to log messages, no need for special log rotation and
creation permissions.

Revision c29c2111
Added by Davide Principi over 7 years ago

Rsyslogd configuration for fetchmail. Refs #2677

Send messages to /var/log/fetchmail to avoid maillog flooding.

History

#1 Updated by Alessio Fattorini over 7 years ago

  • Description updated (diff)

#2 Updated by Giacomo Sanchietti over 7 years ago

  • Target version set to v6.5-final

#3 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#4 Updated by Davide Principi over 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#5 Updated by Davide Principi over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case 1

Check the upgrade of an existing system with configured external email accounts succeeds.

Test case 2

Check a fresh install does not fail (see bug description).

Upgrade notes

The group fetchmail is no longer used:

  # groupdel fetchmail

The following files/dirs can be removed after upgrading to the modified version:

  # rm -rvf /home/fetchmail /var/log/fetchmail.log

Log messages from fetchmail are now under /var/log/maillog.

Updated nethserver-fetchmail documentation.

#6 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-fetchmail-1.0.2-4.0git746c8d2a.ns6.noarch.rpm
nethserver-fetchmail-1.0.2-5.0gitc29c2111.ns6.noarch.rpm

#7 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

Move fetchmail log to a separate file using rsyslog configuration.

#8 Updated by Davide Principi over 7 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

#9 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-fetchmail-1.0.2-5.0gitc29c2111.ns6.noarch.rpm

#10 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

#11 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Service restart on first install:

...
Mar  5 15:15:34 localhost esmith::event[20630]: Event: runlevel-adjust 
Mar  5 15:15:35 localhost esmith::event[20630]: No active fetchmail accounts. Exiting gracefully.
---

Logrotate:

[root@localhost ~]# logrotate -f /etc/logrotate.d/fetchmail 

..
Mar  5 15:18:24 localhost kernel: Kernel logging (proc) stopped.
Mar  5 15:18:24 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="875" x-info="http://www.rsyslog.com"] exiting on signal 15.
Mar  5 15:18:24 localhost kernel: imklog 5.8.10, log source = /proc/kmsg started.
Mar  5 15:18:24 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="20899" x-info="http://www.rsyslog.com"] start
...

Log is saved in /var/log/fetchmail.log.

Marking as VERIFIED.

#12 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-fetchmail-1.0.3-1.ns6.noarch.rpm

Also available in: Atom PDF