debian/0000755000000000000000000000000011622776324007200 5ustar debian/postrm0000644000000000000000000000032611467220440010436 0ustar #!/bin/sh set -e # Source debconf library. case "$1" in remove) if [ `which squirrelmail-configure` ] then squirrelmail-configure --remove-plugin squirrel_logger fi ;; *) ;; esac #DEBHELPER# exit 0 debian/source/0000755000000000000000000000000011467220517010473 5ustar debian/source/format0000644000000000000000000000001411467220517011701 0ustar 3.0 (quilt) debian/links0000644000000000000000000000013511467217522010237 0ustar etc/squirrelmail/logger-config.php usr/share/squirrelmail/plugins/squirrel_logger/config.php debian/rules0000755000000000000000000000113411467220517010252 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_install: find . -type f -not \( \ -path '*/debian/*' -or \ -path '*/contrib/*' -or \ -path '*/.pc/*' -or \ -name 'version' -or \ -name 'COPYING' -or \ -name 'INSTALL' -or \ -name 'README' -or \ -name 'getpot' -or \ -name 'make_release.sh' -or \ -name 'config_example.php' \ \) -exec install -D --mode=644 {} $(TMP)/usr/share/squirrelmail/plugins/squirrel_logger/{} \; install -D --mode=644 config_example.php $(TMP)/etc/squirrelmail/logger-config.php dh_install debian/compat0000644000000000000000000000000211467220262010366 0ustar 7 debian/control0000644000000000000000000000241011622776155010602 0ustar Source: squirrelmail-logger Section: web Priority: optional Maintainer: Jan Hauke Rahm Build-Depends: debhelper (>= 7.0.50) Standards-Version: 3.9.2 Homepage: http://www.squirrelmail.org/plugin_view.php?id=52 Vcs-Git: git://git.debian.org/collab-maint/squirrelmail-logger.git Vcs-Browser: http://git.debian.org/?p=collab-maint/squirrelmail-logger.git;a=summary Package: squirrelmail-logger Architecture: all Depends: squirrelmail (>= 2:1.2.7), squirrelmail-compatibility (>= 2.0.10), ${misc:Depends} Description: SquirrelMail plugin: Add logging functionality to your webmail interface This plugin implements logging functionality for your webmail interface. You can choose to log to a database, a file, your system log, or any combination thereof. You can also choose which kinds of events to log, including login events, logout events, login error events, all outgoing messages, possible outgoing spam messages, and other error events. . Also included is monitoring functionality that will send alert emails to the administrator when certain events trigger. Log message format is completely custom-defined to meet your needs in the configuration file. . SquirrelMail is a standards-based webmail package written in PHP. It runs on top of any IMAP server. debian/NEWS0000644000000000000000000000116011467220517007670 0ustar squirrelmail-logger (2.3-3) unstable; urgency=low With this version squirrelmail-logger has logging to syslog enabled in its default configuration. You can of course change that behaviour in the config file /etc/squirrelmail/logger-config.php. The default now is to log to the syslog daemon with facility MAIL as follows: Event Priority ======================== Login INFO Logout INFO Timeout INFO Login error WARNING Error WARNING Mass mailing ALERT -- Jan Hauke Rahm Sun, 17 May 2009 11:59:35 +0200 debian/watch0000644000000000000000000000017311467217522010227 0ustar version=3 http://squirrelmail.org/plugin_list.php http://squirrelmail.org/plugins/squirrel_logger.([\da-zA-Z\.]+).* debian debian/docs0000644000000000000000000000003011467217522010041 0ustar README contrib/fail2ban debian/postinst0000644000000000000000000000030411467220440010771 0ustar #!/bin/sh set -e case "$1" in configure) squirrelmail-configure --remove-plugin squirrel_logger squirrelmail-configure --install-plugin squirrel_logger ;; *) ;; esac #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000011622775435010631 5ustar debian/patches/auto_enable_syslog_logging0000644000000000000000000000603411622775435016143 0ustar Update default config to have logging to syslog installed, #528565 Therefor FILE logging in /var/lib/squirrelmail/data is deactivated --- a/config_example.php +++ b/config_example.php @@ -43,9 +43,9 @@ 'LOGOUT', 'TIMEOUT', // 'OUTGOING_MAIL', -// 'MASS_MAILING', + 'MASS_MAILING', 'LOGIN_ERROR', -// 'ERROR', + 'ERROR', // 'CAPTCHA', // 'RESTRICT_SENDERS', // 'LOCKOUT', @@ -124,10 +124,10 @@ // // $sl_logs = array( - 'SYSTEM:LOG_INFO:LOG_MAIL' => array( -// 'LOGIN' => "Successful webmail login: by %2 (%3) at %4 on %6: %7", -// 'LOGOUT' => "Webmail logout: by %2 (%3) at %4 on %6: %7", -// 'TIMEOUT' => "Webmail session timed out: by %2 (%3) at %4 on %6: %7", + 'SYSTEM:LOG_INFO:LOG_MAIL:squirrelmail' => array( + 'LOGIN' => "Successful webmail login: by %2 (%3) at %4 on %6: %7", + 'LOGOUT' => "Webmail logout: by %2 (%3) at %4 on %6: %7", + 'TIMEOUT' => "Webmail session timed out: by %2 (%3) at %4 on %6: %7", // 'OUTGOING_MAIL' => "Message sent via webmail: by %2 (%3) at %4 on %6: %7", // 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 on %6: %7", // 'LOGIN_ERROR' => "Failed webmail login: by %2 (%3) at %4 on %6: %7", @@ -139,15 +139,19 @@ // 'RESTRICT_SENDERS' => "Failed recipient limit: by %2 (%3) at %4 on %6: %7", // 'LOCKOUT' => "Webmail login page abuse: by %2 (%3) at %4 on %6: %7", ), - 'SYSTEM:LOG_ALERT:LOG_AUTH' => array( -// 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 on %6: %7", + 'SYSTEM:LOG_WARNING:LOG_MAIL:squirrelmail' => array( + 'LOGIN_ERROR' => "Failed webmail login: by %2 (%3) at %4 on %6: %7", + 'ERROR' => "Webmail error: by %2 (%3) at %4 on %6: %7", + ), + 'SYSTEM:LOG_ALERT:LOG_MAIL:squirrelmail' => array( + 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 on %6: %7", ), 'FILE' => array( - 'LOGIN' => "%6 [%1] %2 (%3) from %4: %7\n", - 'LOGOUT' => "%6 [%1] %2 (%3) from %4: %7\n", - 'TIMEOUT' => "%6 [%1] %2 (%3) from %4: %7\n", +// 'LOGIN' => "%6 [%1] %2 (%3) from %4: %7\n", +// 'LOGOUT' => "%6 [%1] %2 (%3) from %4: %7\n", +// 'TIMEOUT' => "%6 [%1] %2 (%3) from %4: %7\n", // 'MASS_MAILING' => "%6 [%1] %2 (%3) from %4: %7\n", - 'LOGIN_ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", +// 'LOGIN_ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", // 'LOGIN_ERROR' => "%6 [INVALID] %2 (%3) from %4: %7\n", // 'ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", ), debian/patches/series0000644000000000000000000000003311467220436012033 0ustar auto_enable_syslog_logging debian/copyright0000644000000000000000000000223211467220517011125 0ustar Original source may be found at: http://www.squirrelmail.org/plugin_view.php?id=52 Files: * Copyright: © 2001-2008 Ron Chinn, Pat Winn, Paul Lesniewski License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. Files: index.php Copyright: © 1999-2004 The SquirrelMail Project Team License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. Files: debian/* Copyright: © 2008 Jan Hauke Rahm License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. On Debian systems, the complete text of the GNU General Public License can be found in file "/usr/share/common-licenses/GPL-2". Possible later versions are found within the same directory (e.g. "/usr/share/common-licenses/GPL-3"). debian/changelog0000644000000000000000000000350111622776324011051 0ustar squirrelmail-logger (2.3.1-1) unstable; urgency=low * [99c837cb] Do not track build files * [a701fc79] Moving maintenance to git on collab-maint * [4a413f36] Imported Upstream version 2.3.1 * [833242f9] Refreshing logging patch * [059a048a] Bump Standards-Version to 3.9.2 -- Jan Hauke Rahm Wed, 17 Aug 2011 19:39:29 +0200 squirrelmail-logger (2.3-4) unstable; urgency=low * Switch to Source Format 3.0 (quilt) * Switch to debhelper 7 -- Jan Hauke Rahm Thu, 18 Mar 2010 12:44:03 +0100 squirrelmail-logger (2.3-3) unstable; urgency=low * Let logging to syslog be auto-enabled after installation with reasonable defaults (Added NEWS file for that) (Closes: #528565) * Bumped to new policy 3.8.1: no changes -- Jan Hauke Rahm Sun, 17 May 2009 12:06:21 +0200 squirrelmail-logger (2.3-2) unstable; urgency=low * Upload to unstable * DM-Upload-Allowed: yes -- Jan Hauke Rahm Sun, 01 Mar 2009 19:21:32 +0100 squirrelmail-logger (2.3-1) experimental; urgency=low * New upstream release + Added ability to show message subject separately from message body when logging OUTGOING and MASS_MAILING events + Added ability to log From and Reply-To headers for the OUTGOING and MASS_MAILING events + Make the From address for administrative alert messages configurable * debian/control: Added VCS info * debian/control, debian/compat: changed to debhelper 7 -> debian/rules cleanup * Bumped to new policy 3.8.0: no changes * debian/post{inst,rm} cleanup (lintian warnings) -- Jan Hauke Rahm Sun, 04 Jan 2009 16:51:45 +0100 squirrelmail-logger (2.2-1) unstable; urgency=low * Initial release (Closes: #476136) -- Jan Hauke Rahm Mon, 14 Apr 2008 19:15:29 +0200