--- clamsmtp-1.10.orig/debian/NEWS +++ clamsmtp-1.10/debian/NEWS @@ -0,0 +1,75 @@ +clamsmtp (1.10-15) unstable; urgency=medium + + Please note that the service file does not check clamsmtpd.conf for a + different pidfile location. If you moved the file to a different directory, + please adjust the service accordingly. + + The default file has not really been needed since version 0.8.0 when + /etc/clamsmtpd.conf was introduced. It is time to finally remove it from the + package. + + -- Michael Meskes Mon, 19 Feb 2018 13:08:49 +0100 + +clamsmtp (1.3-0) unstable; urgency=low + + In the interest of least privilege security, a new system user and + group was created for clamsmtp. The clamav-daemon user, clamav, was + added to the clamsmtp group, allowing the daemon to view the files + in the quarantine directory. + + -- Chad Walstrom Sat, 26 Feb 2005 15:38:12 -0600 + +clamsmtp (1.2-2) unstable; urgency=low + + The semantics for fixing directory permissions has been changed, and now only + applies to fixing older version of this package. The "fix" has moved out of + the init.d script to the postinst script. New debconf translations have been + added. + + -- Chad Walstrom Thu, 13 Jan 2005 10:28:55 -0600 + +clamsmtp (1.1-2) unstable; urgency=low + + debconf config was added this round to ask some important questions. Some + sanity checking was added to the init script to make sure directory + permissions were configured correctly. /var/run/clamsmtp and + /var/spool/clamsmtp are now created in postinst and purged in postrm. + + -- Chad Walstrom Wed, 24 Nov 2004 18:17:04 -0600 + +clamsmtp (1.0-1) unstable; urgency=low + + Some versions of the Linux 2.4.x kernel caused 0.9 to crash. Version 0.9.5 + fixed this bug. Also, as of 0.9.5, you can specify the PID file in the + configuration file. + + -- Chad Walstrom Wed, 27 Oct 2004 10:21:07 -0500 + +clamsmtp (0.9-1) unstable; urgency=low + + This new upstream version allows administrators to specify an action script + to run when a virus is found. (Be careful.) The daemon can now switch users + upon startup, so the init.d script was updated. + + -- Chad Walstrom Wed, 22 Sep 2004 15:41:24 -0500 + +clamsmtp (0.8-2) unstable; urgency=low + + Fixed the permissions to the /var/spool/clamsmtp directory. + + -- Chad Walstrom Wed, 8 Sep 2004 22:32:20 -0500 + +clamsmtp (0.8-1) unstable; urgency=low + + The addition of the configuration file /etc/clamsmtpd.conf makes things much + cleaner for the /etc/defaults/clamsmtp file. + + The /var/lib/clamsmtp directory was moved to /var/spool to confirm to FHS. + clamsmtp uses /tmp for its spool files by default, but this makes them + susceptible to resource starvation should the /tmp partition fill up. + + I am not going to try to graceful move the content of the /var/lib/clamsmtp + directory, given that the last binary package was 'experimental'. + + -- Chad Walstrom Tue, 7 Sep 2004 22:28:40 -0500 + --- clamsmtp-1.10.orig/debian/README.Debian +++ clamsmtp-1.10/debian/README.Debian @@ -0,0 +1,88 @@ +clamsmtp for Debian +=================== +This file lists the build and configuration options used for the clamsmtp +package on the Debian platform. Please read the clamsmtpd(8) and +clamsmtpd.conf(5) manpages for a more complete discussion of the daemon and its +capabilities. + +This package does not attempt to configure your Mail Transfer Agent (MTA) for +content filtering, nor does it attempt to set up your machine as a transparent +proxy, though clamsmtpd has the capability to run in either capacity. You are +responsible for configuring your MTA or your router. + +clamsmtp system user and group +============================== +Although there exists no standard requiring stand-alone daemons to operate +under their own user and group, there are multiple security benefits in doing +so, mostly focusing around the theory of least privilege. + +Historically, this package has taken the easy way out (my fault) in having +clamsmtpd run as the clamav user and group, the same user that the clamav +daemon runs as. Should the clamsmtpd process be compromised, the cracker would +have the same privileges that clamd has. Now imagine a systems administrator +had added the clamav user to private user groups so that the daemon can scan +protected directories and files. Those files are now subject to viewing. + +clamsmtpd also has the ability to run scripts when a virus is detected. This +could be another vector for attack by a cracker or even have a potential for +damage by poorly written scripts themselves. Having clamsmtpd run under its +own user and group would help mitigate potential problems. + +The last benefit is to remove an unnecessary version dependency on dpkg, making +the package easier to back-port to Debian Woody, for example. + +Debian-specific Directories +============================ +/var/run/clamsmtp + + The clamsmtpd.pid file (PidFile) is stored in this directory. For a daemon + to place a PID file in /var/run, it must have root privileges. clamsmtpd + is run under user "clamsmtp" and group "clamsmtp". + +/var/spool/clamsmtp (clamsmtp home directory) + + Temporary and quarantined emails are specified in the config file as + TempDirectory. This departs from the upstream default, which is /tmp. + Emails are potentially confidential or sensitive information, thus warrant + special attention. + +Debian-specific Port Setup +========================== +This package departs from the default clamsmtpd configuration in the ports it +listens to and forward messages to. The reason for this is partially +historical and partially a compatibility issue. At the time that postfix was +first introducing its filtering capabilities, it quoted the use of Amavisd and +Amavisd-new as possible filtering proxies. In those examples, it showed +postfix using port 10025 as the unfiltered port for returning email from the +proxy. Amavisd-new installs listening to port 10024. Rather than forcing the +Debian systems administrator from having to customize /etc/postfix/master.cf +yet again, I choose to flip clamsmtpd's settings. + +localhost:10026 (For receiving) + + clamsmtpd listens to this port for new SMTP connections. It scans the DATA + portion of the email and then returns the email to localhost:10025. + +localhost:10025 (For forwarding) + + clamsmtpd expects this port to be run by your MTA. If it does not find + service at this port, it will fail to deliver the email. + +NOTE: YOU ARE RESPONSIBLE FOR CONFIGURING YOUR MTA OR ROUTER. + +Postfix Tips +============ +The /usr/share/doc/clamsmtp/postfix.html file included in this package +is taken from the clamsmtp home page and gives instructions for a +basic setup. Transpose the information about the default port +settings above when editing the /etc/postfix/master.cf and main.cf +files. + +Postfix 2.x.x can be more selective about what emails it chooses to +scan. With mime_header_checks, one can pin-point troublesome emails +by their Content-Type header. See +/usr/share/doc/clamsmtp/examples/mime_header_checks. + +If you are using Postfix, see /usr/share/doc/postfix/FILTER_README.gz +for more information on setting up postfix for content filtering. + --- clamsmtp-1.10.orig/debian/README.source +++ clamsmtp-1.10/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- clamsmtp-1.10.orig/debian/changelog +++ clamsmtp-1.10/debian/changelog @@ -0,0 +1,680 @@ +clamsmtp (1.10-17ubuntu1) bionic; urgency=low + + * Merge from Debian Sid. Remaining changes: + - In postinst: + + Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir. + + Change /var/spool permissions after creating user. + + Make adduser --quiet so postinst only does exit 2 for real errors. + + -- Simon Quigley Mon, 09 Apr 2018 21:41:32 -0500 + +clamsmtp (1.10-17) unstable; urgency=medium + + * Fix RuntimeDirectory entry in service file. (Closes: #894383) + + -- Michael Meskes Tue, 03 Apr 2018 20:52:55 +0200 + +clamsmtp (1.10-16ubuntu1) bionic; urgency=low + + * Merge from Debian Sid. Remaining changes: + - In postinst: + + Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir. + + Change /var/spool permissions after creating user. + + Make adduser --quiet so postinst only does exit 2 for real errors. + + -- Simon Quigley Sat, 10 Mar 2018 19:55:59 -0600 + +clamsmtp (1.10-16) unstable; urgency=medium + + * Re-added After line to services file after somehow losing it. + + -- Michael Meskes Tue, 27 Feb 2018 16:19:20 +0100 + +clamsmtp (1.10-15ubuntu1) bionic; urgency=low + + * Merge from Debian Sid. Remaining changes: + - In postinst: + + Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir. + + Change /var/spool permissions after creating user. + + Make adduser --quiet so postinst only does exit 2 for real errors. + + -- Simon Quigley Mon, 19 Feb 2018 22:11:56 -0600 + +clamsmtp (1.10-15) unstable; urgency=medium + + * Added patch to handle lines with leading dots correctly. + Thanks to Christoph Pleger (Closes: #819061) + * Bumped Standards-Version and debhelper compat level. + * Enabled all hardening options + * Removed default file + * Added native service file. + + -- Michael Meskes Mon, 19 Feb 2018 18:33:28 +0100 + +clamsmtp (1.10-14ubuntu1) bionic; urgency=low + + * Merge from Debian Sid. Remaining changes: + - In postinst: + + Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir. + + Change /var/spool permissions after creating user. + + Make adduser --quiet so postinst only does exit 2 for real errors. + + -- Simon Quigley Sat, 27 Jan 2018 18:28:26 -0600 + +clamsmtp (1.10-14) unstable; urgency=medium + + * Change order of some include files to make package compile again. + (Closes: #866076) + * Bumped Standards-Version to 4.0.0, no changes needed. + * Changed checks in postrm to not look for command with full path. + * Added dependency on lsb-base. + + -- Michael Meskes Tue, 04 Jul 2017 13:26:19 +0200 + +clamsmtp (1.10-13ubuntu1) vivid; urgency=medium + + * Merge from Debian unstable. Remaining changes: + - In postinst: + + Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir. + + Change /var/spool permissions after creating user. + + Make adduser --quiet so postinst only does exit 2 for real errors. + + -- Logan Rosen Wed, 04 Mar 2015 20:34:02 +0000 + +clamsmtp (1.10-13) unstable; urgency=high + + * Fixed order of includes to prevent the compiler from assuming wrong types. + Thanks to Julien Cristau (Closes: #779501) + + -- Michael Meskes Sun, 01 Mar 2015 20:55:23 +0100 + +clamsmtp (1.10-12ubuntu1) utopic; urgency=medium + + * Merge from Debian unstable. Remaining changes: + - In postinst: + + Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir. + + Change /var/spool permissions after creating user. + + Make adduser --quiet so postinst only does exit 2 for real errors. + + -- Logan Rosen Mon, 18 Aug 2014 02:03:55 -0400 + +clamsmtp (1.10-12) unstable; urgency=medium + + * Use dh-autoreconf in build to support new architectures. + Thanks to Chen Baozi (Closes: #753782) + * Bumped Standards-Version to 3.9.5, no changes needed. + * Corrected homepage information. (Closes: #739103) + * Canonicalized VCS information. + * Removed GNU_SOURCE definition from the single file that has it. + (Closes: #703538) + * Updated watch file to correct URL, too. + + -- Michael Meskes Sun, 06 Jul 2014 12:08:03 +0200 + +clamsmtp (1.10-11ubuntu2) saucy; urgency=low + + * Use dh_autotools-dev to update config.{sub,guess} for AArch64. + + -- Logan Rosen Tue, 15 Oct 2013 23:51:25 -0400 + +clamsmtp (1.10-11ubuntu1) raring; urgency=low + + * Merge from Debian unstable. Remaining changes: + - In postinst: + + Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir. + + Change /var/spool permissions after creating user. + + Make adduser --quiet so postinst only does exit 2 for real errors. + + -- Logan Rosen Thu, 06 Dec 2012 22:50:20 -0500 + +clamsmtp (1.10-11) unstable; urgency=low + + * Added Italian debconf translation (Closes: #691355) + * Move to debhelper version 9 to get hardening flags + + -- Michael Meskes Thu, 06 Dec 2012 13:16:30 +0100 + +clamsmtp (1.10-10ubuntu1) quantal; urgency=low + + * Merge from Debian unstable. Remaining changes: + - In postinst: + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + + -- Scott Kitterman Tue, 05 Jun 2012 02:12:31 -0400 + +clamsmtp (1.10-10) unstable; urgency=low + + * Added Danish debconf translation. (Closes: #671782) + * Added LSB description to init script. + + -- Michael Meskes Mon, 14 May 2012 13:42:23 +0200 + +clamsmtp (1.10-9ubuntu1) precise; urgency=low + + * Merge from Debian Unstable. Remaining changes: + - In postinst: + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + + -- Scott Kitterman Wed, 14 Mar 2012 23:37:15 -0400 + +clamsmtp (1.10-9) unstable; urgency=low + + * Status should report the correct package name. + + -- Michael Meskes Tue, 06 Mar 2012 12:17:49 +0100 + +clamsmtp (1.10-8ubuntu1) precise; urgency=low + + * Merge from Debian unstable. Remaining changes: + - In postinst: + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + + -- Scott Kitterman Sun, 04 Mar 2012 14:38:20 -0500 + +clamsmtp (1.10-8) unstable; urgency=low + + * Updated Dutch debconf translation (Closes: #658464) + * Bumped Standards-Version to 3.9.3, no changes needed. + * Added VCS information. + * Added status option to init file. + + -- Michael Meskes Sun, 04 Mar 2012 15:44:04 +0100 + +clamsmtp (1.10-7ubuntu1) natty; urgency=low + + * Merge from debian unstable. Remaining changes: + - In postinst: + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + + -- Scott Kitterman Fri, 15 Oct 2010 19:35:25 -0400 + +clamsmtp (1.10-7) unstable; urgency=low + + * Updated Portuguese debconf translation (Closes: #597351) + * Bumped Standards-Version to 3.9.1, no changes needed. + + -- Michael Meskes Sun, 10 Oct 2010 13:32:59 +0200 + +clamsmtp (1.10-6ubuntu1) lucid; urgency=low + + * Merge from Debian Unstable. Remaining Ubuntu changes: + - In postinst: + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + + -- Scott Kitterman Sat, 03 Apr 2010 15:43:02 -0400 + +clamsmtp (1.10-6) unstable; urgency=low + + * Added Spanish debconf translation. (Closes: #576263) + * Added description to init script. + * Added Homepage: field. + * Added source/format file. + + -- Michael Meskes Fri, 02 Apr 2010 15:48:19 +0200 + +clamsmtp (1.10-5) unstable; urgency=low + + * Updated Vietnamese debconf translation. (Closes: #569652) + * Bumped Standards-Version to 3.8.4, no changes needed. + + -- Michael Meskes Sat, 20 Mar 2010 12:11:28 +0100 + +clamsmtp (1.10-4) unstable; urgency=low + + * Updated Catalan debconf translation. (Closes: #563837) + * Updated Russian debconf translation. (Closes: #563351) + + -- Michael Meskes Wed, 13 Jan 2010 15:00:50 +0100 + +clamsmtp (1.10-3ubuntu1) lucid; urgency=low + + * Merge from Debian Unstable. Remaining Ubuntu changes: + - Add Homepage: to debian/control + - In postinst: + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + + -- Scott Kitterman Tue, 22 Dec 2009 18:33:53 -0500 + +clamsmtp (1.10-3) unstable; urgency=low + + * Updated Japanese debconf translation. (Closes: #557898, #559885) + * Updated German debconf translation. (Closes: #558156) + * Updated Czech debconf translation. (Closes: #558416, #560961) + * Updated Portuguese debconf translation. (Closes: #559493) + * Updated Russian debconf translation. (Closes: #559529) + * Updated Galician debconf translation. (Closes: #557863) + * Updated Swedish debconf translation. (Closes: #559935) + * Updated French debconf translation. (Closes: #561449) + * Removed bad wording from debconf template. (Closes: #557952) + + -- Michael Meskes Thu, 17 Dec 2009 12:58:55 +0100 + +clamsmtp (1.10-2) unstable; urgency=low + + * Fixed some packaging files by applying Ubuntu patches done by Scott + Kitterman . + * Simplified postinst file a little bit. + * Fixed clamsmtpd.conf to list valid options. Closes: #553091 + * Moved to debhelper 7. + * Bumped Standards-Version to 3.8.3, no changes needed. + * Fixed some problems in the template file. + * Moved from simple_patchsys to quilt and removed need for cdbs. + + -- Michael Meskes Tue, 24 Nov 2009 12:38:20 +0100 + +clamsmtp (1.10-1ubuntu1) jaunty; urgency=low + + * Merge from debian unstable, remaining changes: + - Add debian/README.source + - Add Homepage: to debian/control + - Update debian/copyright based on author using a different name and + correct omission of different license/copyright in common/compat.c + - Point debian/watch at new web site location + - In postinst: + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + - Stop postinst from bailing out when which newaliases doesn't return + anything + - Change ScanHeader option in debian/clamsmtpd.conf to Header + + -- Scott Kitterman Sun, 07 Dec 2008 16:04:08 -0500 + +clamsmtp (1.10-1) unstable; urgency=low + + * New Upstream Version + * Changed maintainer to clamav team. + * Bumped standards-version to 3.8.0, no changes needed. + * Fixed typo in manpage. + + -- Michael Meskes Sun, 30 Nov 2008 13:48:21 +0100 + +clamsmtp (1.10-0ubuntu1) intrepid; urgency=low + + * New upstream release + * Incorporate LSB dependency header for init script from Debian's + 1.8-5.3 + * Update to standards version 3.8.0 + - Add debian/README.source + - Add Homepage: to debian/control + + -- Scott Kitterman Thu, 14 Aug 2008 22:02:23 -0400 + +clamsmtp (1.9-0ubuntu1) hardy; urgency=low + + * New upstream release + * Update debian/copyright based on author using a different name and + correct omission of different license/copyright in common/compat.c + * Bump standards version to 3.7.3 without further change + * Point debian/watch at new web site location + + -- Scott Kitterman Wed, 30 Jan 2008 12:36:01 -0500 + +clamsmtp (1.8-6) unstable; urgency=low + + * Took over as maintainer with approval of the current maintainer. + * Create directory /var/run/clamsmtp in init script instead of postinst + script. (Closes: #505796) + * Only call db_top in postrm if the argument is "purge" because only then the + debconf stuff has been used. (Closes: #475185) + + -- Michael Meskes Mon, 17 Nov 2008 13:56:50 +0100 + +clamsmtp (1.8-5.3) unstable; urgency=low + + * Non-maintainer upload to solve release goal. + * Add LSB dependency header to init.d scripts (Closes: #466648). + + -- Petter Reinholdtsen Sat, 29 Mar 2008 17:17:04 +0100 + +clamsmtp (1.8-5.2ubuntu3) gutsy; urgency=low + + * In postinst (LP: #108303): + - Ensure /var/spool/clamsmtp exists before setting clamsmtp home dir + - Change /var/spool permissions after creating user + - Make adduser --quiet so postinst only does exit 2 for real errors + + -- Scott Kitterman Thu, 28 Jun 2007 09:26:19 -0400 + +clamsmtp (1.8-5.2ubuntu2) gutsy; urgency=low + + * Stop postinst from bailing out when which newaliases doesn't return + anything (LP: #108303) + + -- Scott Kitterman Wed, 27 Jun 2007 16:22:45 -0400 + +clamsmtp (1.8-5.2ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable. Remaining Ubuntu changes: + - Change ScanHeader option in debian/clamsmtpd.conf to Header + - Change init script to create directory for PID file. + - Change maintainer to MOTU + + -- Scott Kitterman Mon, 21 May 2007 10:58:18 -0400 + +clamsmtp (1.8-5.2) unstable; urgency=high + + * Non-maintainer upload during BSP. + * Fix unconditional use of debconf in postrm (Closes: #416730). + * Add Dutch debconf translation (Closes: #419727). + * Add dependency on adduser as it is used in postinst. + + -- Luk Claes Sat, 19 May 2007 15:50:40 +0200 + +clamsmtp (1.8-5.1) unstable; urgency=low + + * Non-maintainer upload during BSP. + * conditional include of /usr/share/debconf/confmodule (Closes: #416730) + + -- Martin Zobel-Helas Thu, 17 May 2007 13:47:28 +0200 + +clamsmtp (1.8-5ubuntu1) feisty; urgency=low + + * Change ScanHeader option in debian/clamsmtpd.conf to Header + - LP: #102391 + * Change init script to create directory for PID file. + - LP: #102470 + * Change maintainer to MOTU + + -- Scott Kitterman Wed, 4 Apr 2007 03:44:26 +0000 + +clamsmtp (1.8-5) unstable; urgency=low + + * debian/postinst: A few logic errors found and fixed. Moved checks to add + clamav user to clamsmtp group outside scope of clamsmtp user/group test. + Upon install or reinstall, only restart clamav-daemon if clamav user is + added to the clamsmtp group. Truly Closes: #413968. + * debian/postrm: Encapsulated invoke-rc.d calls to start and stop + clamav-daemon in a sub-shell. If we cannot stop the service, we shouldn't + try to start it. + + -- Chad Walstrom Fri, 16 Mar 2007 12:18:21 -0500 + +clamsmtp (1.8-4) unstable; urgency=high + + * Rollback of 1.8-3. A Pre-Depends apparently doesn't solve #412968. + + -- Chad Walstrom Fri, 9 Mar 2007 16:49:21 -0600 + +clamsmtp (1.8-3) unstable; urgency=high + + * debian/control: Moved dependency upon clamav-daemon to Pre-Depends, + guaranteeing that the clamav user is in place before clamsmtp postinst + script attempts to add it to the clamsmtp group. Closes: #413968 + + -- Chad Walstrom Fri, 9 Mar 2007 10:23:53 -0600 + +clamsmtp (1.8-2) unstable; urgency=low + + * All translation files converted to UTF-8 by Christian Perrier + . + * Debconf translations: + - debian/po/de.po: German provided by Alwin Meschede and Helge Kreutzmann + . Closes: #400520, #407817 + - debian/po/gl.po: Galician provided by Jacobo Tarrio . + Closes: #412243 + - debian/po/ca.po: Catalan provided by Jorda Polo . + Closes: #412300 + + -- Chad Walstrom Tue, 27 Feb 2007 13:21:01 -0600 + +clamsmtp (1.8-1) unstable; urgency=low + + * New upstream. + * debian/po/pt.po: Portuguese translation of debconf templates provided by + Miguel Figueiredo . Closes: #381566 + + -- Chad Walstrom Tue, 5 Sep 2006 10:29:08 -0500 + +clamsmtp (1.6-1) unstable; urgency=low + + * New upstream. Closes: #322611 + * debian/po/sv.po: Swedish debconf template translation provided by Daniel + Nylander . Closes: #333360 + * debian/po/ru.po: Russian debconf template translation provided by Yuriy + Talakan . Closes: #311970 + + -- Chad Walstrom Tue, 15 Nov 2005 14:51:10 -0600 + +clamsmtp (1.4.1-2) unstable; urgency=low + + * debian/po/vi.po: Vietnamese translation provided by Clytie Siddall + . Closes: #310032 + + -- Chad Walstrom Sun, 29 May 2005 13:36:25 -0500 + +clamsmtp (1.4.1-1) unstable; urgency=low + + * debian/po/pt_BR.po: Andre Luis Lopes sent a + fix to this template. Closes: #310879 + + -- Chad Walstrom Sun, 29 May 2005 13:07:30 -0500 + +clamsmtp (1.4.1-0) unstable; urgency=low + + * New upstream version. Fixes config bug when "Header" not present. + * debian/po/pt_BR.po: Added. Thanks, Rodrigo Tadeu Claro + . Closes: #303496 + * debian/mime_header_checks, debian/README.Debian: Added mime_header_checks + example. + + -- Chad Walstrom Thu, 21 Apr 2005 12:16:26 -0500 + +clamsmtp (1.4-0) unstable; urgency=low + + * New upstream version. + * Removed file descriptor leak fix patch. Fixed upstream. + * debian/clamsmtp.init: Removed bashim use of 'function' keyword. + Closes: #303237 + * debian/po/fr.po: Updated. Closes: #301987 + * debian/po/ja.po: Updated. Closes: #301612 + * debian/po/cs.po: Updated. + * debian/README.Debian: Fixed a couple spelling errors. Fixed reference to + clamsmtp user and group regarding /var/{spool,run}/clamsmtp directories. + + -- Chad Walstrom Tue, 5 Apr 2005 10:22:19 -0500 + +clamsmtp (1.3-1) unstable; urgency=high + + * debian/postinst: We need to re-start the clamav-daemon once adding clamav + to the clamsmtp group. + * debian/patches/300175-fileperms.patch: Patch submitted to change + permissions on files generated through mkstemp() to be readable by the + group. Thanks, Samuel Tardieu . + * Closes: #300175 + * debian/control: Changed "a vs. an" in long description to match + "conventional" rules regarding articles preceding acronyms. + Closes: #299969 + + -- Chad Walstrom Mon, 21 Mar 2005 13:45:03 -0600 + +clamsmtp (1.3-0) unstable; urgency=low + + * New upstream version. + * debian/config, debian/postinst, debian/templates: Added a clamsmtp + system user and group. Added clamav user to clamsmtp group. + Added template for upgrades. + * debian/clamsmtp.logcheck.ignore.server: Added logcheck ignore pattern file + submitted by Rafael Jesus Alcantara Perez . + Closes: #297476 + * debian/README.Debian: Explained in more detail why I chose the default + port configuration. + * debian/rules, debian/patches/fd-leak.patch: Fixes file discriptor leak in + common/spio.c. Thanks, Chris Mason. Closes: #297645 + + -- Chad Walstrom Wed, 16 Mar 2005 20:53:18 -0600 + +clamsmtp (1.2-4) unstable; urgency=low + + * debian/clamsmtp.init: Corrected reference to /etc/default/clamsmtp. + Closes: #295672 + * debian/control: Added versioned depends on dpkg. Closes: #295112 + * debian/po/cs.po: Added Czech translation. Thanks, Miroslav Kure + . Closes: #293614 + + -- Chad Walstrom Fri, 25 Feb 2005 22:48:15 -0600 + +clamsmtp (1.2-3) unstable; urgency=medium + + * debian/clamsmtp.init, debian/clamsmtp.default: Typo fix. Closes: #290433 + + -- Chad Walstrom Fri, 14 Jan 2005 14:39:34 -0600 + +clamsmtp (1.2-2) unstable; urgency=low + + * debian/clamsmtp.init: Fixed sed script; enclosed values with quotes. + Thanks for the catch, Pablo Castellazzi . + * debian/control: Cleaned up "Depends" field. Cleaned up the description. + Removed conjunctives. Indicated ClamSMTP's transparent proxy ability. + * debian/templates, debian/postinst, debian/clamsmtp.init: Moved fix + directory permissions semantics to postinst script. + * debian/config: only ask to fix directories if this is an upgrade by + comparing package version numbers + * debian/po/ja.po: Japanese po-debconf template translation (ja.po). + Thanks, Hideki Yamane . Closes: #286042 + * debian/po/fr.po: Florent Usseil updated translation. + * debian/README.Debian: cleaned this up considerably + * debian/NEWS: noted change to directory permissions change + + -- Chad Walstrom Thu, 13 Jan 2005 10:28:55 -0600 + +clamsmtp (1.2-1) unstable; urgency=low + + * New upstream version. + * Added check to init to make sure we're not trying to change permissions on + /var/run + + -- Chad Walstrom Mon, 13 Dec 2004 12:28:16 -0600 + +clamsmtp (1.1-3) unstable; urgency=low + + * debian/control: Moved po-debconf dependency to Build-Depends. Added + debconf dependency in Depends. + * Closes: #284566: Added French debconf template translation. Thanks, + Florent Usseil . + + -- Chad Walstrom Sun, 12 Dec 2004 11:24:08 -0600 + +clamsmtp (1.1-2) unstable; urgency=low + + * debian/templates, debian/config, debian/po/templates.pot, + debian/po/POTFILES.in: Added po-debconf templates to ask if fixperms + function should be enabled in the init.d script and to ask if + /var/spool/clamsmtp should be removed. + * debian/clamsmtp.init: Optionally check the permissions of the spool and + PID directories for clamsmtp. + * debian/clamsmtp.default: Add DO_FIXPERMS option. + * debian/postinst: Create /var/spool/clamsmtp and /var/run/clamsmtp if they + don't exist. Use debconf answer to update DO_FIXPERMS in + /etc/default/clamsmtp + * debian/postrm: Purge /var/spool/clamsmtp only if specified in debconf. + * Closes: #282734: ownership changed incorrectly on upgrade. + + -- Chad Walstrom Wed, 24 Nov 2004 18:17:04 -0600 + +clamsmtp (1.1-1) unstable; urgency=low + + * New Upstream Version + * Fixed Lintian warnings and errors: + - debian/postinst: Removed BASHism + - debian/clamsmtp.init: Implemented "force-reload" + - debian/clamsmtp.default: Removed hash-bang line + + -- Chad Walstrom Mon, 1 Nov 2004 16:22:44 -0600 + +clamsmtp (1.0-1) unstable; urgency=low + + * New Upstream Version + * debian/NEWS: cleaned up format + * debian/README.Debian: indicated that transparent proxy is an option, but + not used by default. + * debian/clamsmtpd.conf: Added PidFile directive + * debian/clamsmtp.init: Removed PID file option from daemon arguments. + Replaced --chuid with --group only. + * Closes: #278078: clamsmtp stops accepting connections. Fixed in upstream + version 0.9.5. + + -- Chad Walstrom Wed, 27 Oct 2004 10:38:29 -0500 + +clamsmtp (0.9.6-1) unstable; urgency=low + + * New Upstream Version + + -- Chad Walstrom Wed, 20 Oct 2004 15:09:27 -0500 + +clamsmtp (0.9-1) unstable; urgency=low + + * New Upstream Version + * debian/postinst, debian/dirs: Added a /var/run/clamsmtp directory so + clamsmtpd, which runs as clamav, can write it's PID file. Thanks, Dmitri + V. Ivanov , for the heads-up. + * debian/clamsmtp.init: clamsmtpd now switches to a user upon boot on its + own. Forcing the group to switch as well (though not highly necessary). + * debian/control: updated debhelper version (fixes linda error) + * debian/README.Debian: Run-on-sentance! Die! Die! Die! + + -- Chad Walstrom Wed, 22 Sep 2004 16:03:09 -0500 + +clamsmtp (0.8-2) unstable; urgency=low + + * debian/control: Updated Standards-Version to 3.6.1 + * debian/docs: NEWS and README contain no real information. URL for homepage + found in debian/copyright + * debian/clamsmtp.init: Small typo fix. Added CGROUP to --chuid option. + * debian/watch: Added no-action watch file to satisfy the masses + * debian/postinst: Change ownership of /var/spool/clamsmtp to clamav:clamav + + -- Chad Walstrom Wed, 8 Sep 2004 22:32:20 -0500 + +clamsmtp (0.8-1) unstable; urgency=low + + * New Upstream Version + * debian/README.Debian: Explained better the configuration decisions I made + for this package. + * debian/NEWS: Notified users of the differences between the experimental + and unstable packages. + * debian/init.d -> debian/clamsmtp.init, + debian/defaults -> debian/clamsmtp.default: Moved to expected files for + dh_installinit. Removed much of the complexity of this defaults file + because upstream added a config file, clamsmtpd.conf, to set most of these + options. + * debian/clamsmtpd.conf: New default configuration file for /etc + * /var/lib/clamsmtp -> /var/spool/clamsmtp: conforming to the FHS. + * debian/TODO, debian/.todo: devtodo generated TODO list + + -- Chad Walstrom Tue, 7 Sep 2004 22:47:11 -0500 + +clamsmtp (0.6.92-2) experimental; urgency=low + + * debian/README.Debian: Noted that this is pre-release software. + * debian/init.d: Typo fixed in case statement. + + -- Chad Walstrom Fri, 27 Aug 2004 14:15:50 -0500 + +clamsmtp (0.6.92-1) unstable; urgency=low + + * New Upstream version. + * debian/init.d: Cleaned up script a bit + + -- Chad Walstrom Fri, 27 Aug 2004 14:02:12 -0500 + +clamsmtp (0.6-1) unstable; urgency=low + + * Initial Release. + * debian/init.d, debian/defaults: Created Debian-centric init.d script for + basic configuration info. + + -- Chad Walstrom Thu, 26 Aug 2004 17:36:29 -0500 + --- clamsmtp-1.10.orig/debian/clamsmtp.init +++ clamsmtp-1.10/debian/clamsmtp.init @@ -0,0 +1,97 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: clamsmtp +# Short-Description: Start virus-scanning SMTP proxy clamsmtp +# Description: virus-scanning SMTP proxy +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# +# clamsmtp init.d script for Debian +# +# This script is Public Domain. +# +# See also: clamsmtpd.conf(5), clamsmtpd(8) +# +########################################################################### + +DESC="virus filtering SMTP proxy" +NAME=clamsmtpd # Daemon's Name +DAEMON=/usr/sbin/${NAME} # Binary +CONFFILE=/etc/${NAME}.conf # Configuration File +SCRIPTNAME=/etc/init.d/clamsmtp + +test -f ${DAEMON} || exit 0 + +# Pull in configuration options set in $CONFFILE. +if [ -r ${CONFFILE} ] ; then +eval `sed -e ' +# Delete comments +/^#.*/d + +# Delete blank lines +/^[[:space:]]*$/d + +# Replace first ": " with "=" and surround with quotes +s/^\([a-zA-Z]*\):[[:space:]]*\(.*\)$/\1\="\2";/ +' < ${CONFFILE}` +fi + +# Now, use the variables that we care about +PIDFILE=${PidFile:="/var/run/${NAME}/${NAME}.pid"} # PID File +RUNDIR=`dirname ${PIDFILE}` + +# Get lsb functions +. /lib/lsb/init-functions + +# Start the daemon +d_start() { + if [ ! -d $RUNDIR ]; then + mkdir -p $RUNDIR + chown clamsmtp:clamsmtp $RUNDIR + fi + + start-stop-daemon --start \ + --pidfile ${PIDFILE} --quiet --oknodo \ + --exec ${DAEMON} +} + +# Stop the daemon +d_stop() { + start-stop-daemon --stop --quiet --oknodo --pidfile ${PIDFILE} \ + --exec ${DAEMON} +} + +########################################################################### +# Main Body + +case ${1} in + start) + log_begin_msg "Starting ${DESC}: ${NAME}" + d_start + log_end_msg $? + ;; + stop) + log_begin_msg "Stopping ${DESC}: ${NAME}" + d_stop + log_end_msg $? + ;; + restart|force-reload) + log_begin_msg "Restarting ${DESC}: ${NAME}" + d_stop + sleep 1 + d_start + log_end_msg $? + ;; + status) + status_of_proc "$DAEMON" clamsmtp + ;; + *) + log_success_msg "Usage: ${SCRIPTNAME} {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- clamsmtp-1.10.orig/debian/clamsmtp.logcheck.ignore.server +++ clamsmtp-1.10/debian/clamsmtp.logcheck.ignore.server @@ -0,0 +1,2 @@ +^\w{3} [ :0-9]{11} [._[:alnum:]-]+ clamsmtpd: \w+: accepted connection from: .+$ +^\w{3} [ :0-9]{11} [._[:alnum:]-]+ clamsmtpd: \w+: from=.*, to=.+, status=.+$ --- clamsmtp-1.10.orig/debian/clamsmtp.service +++ clamsmtp-1.10/debian/clamsmtp.service @@ -0,0 +1,15 @@ +[Unit] +Description=virus-scanning SMTP proxy clamsmtp +Documentation=man:clamsmtpd(8) +After=network.target local-fs.target + +[Service] +Type=forking +User=clamsmtp +Group=clamsmtp +RuntimeDirectory=clamsmtp +ExecStart=/usr/sbin/clamsmtpd + +[Install] +WantedBy=multi-user.target + --- clamsmtp-1.10.orig/debian/clamsmtpd.conf +++ clamsmtp-1.10/debian/clamsmtpd.conf @@ -0,0 +1,49 @@ +# ------------------------------------------------------------------------------ +# SAMPLE CLAMSMTPD CONFIG FILE +# ------------------------------------------------------------------------------ +# +# - Comments are a line that starts with a # +# - All the options are found below with their defaults commented out + + +# The address to send scanned mail to. +# This option is required unless TransparentProxy is enabled +OutAddress: 10025 + +# The maximum number of connection allowed at once. +# Be sure that clamd can also handle this many connections +#MaxConnections: 64 + +# Amount of time (in seconds) to wait on network IO +#TimeOut: 180 + +# Address to listen on (defaults to all local addresses on port 10025) +Listen: 127.0.0.1:10026 + +# The address clamd is listening on +ClamAddress: /var/run/clamav/clamd.ctl + +# A header to add to all scanned email +#Header: X-AV-Checked: ClamAV using ClamSMTP + +# Directory for temporary files +TempDirectory: /var/spool/clamsmtp + +# PidFile: location of PID file +PidFile: /var/run/clamsmtp/clamsmtpd.pid + +# Whether or not to bounce email (default is to silently drop) +#Bounce: off + +# Whether or not to keep virus files +#Quarantine: off + +# Enable transparent proxy support +#TransparentProxy: off + +# User to run as +User: clamsmtp + +# Virus actions: There's an option to run a script every time a +# virus is found. Read the man page for clamsmtpd.conf for details. + --- clamsmtp-1.10.orig/debian/compat +++ clamsmtp-1.10/debian/compat @@ -0,0 +1 @@ +11 --- clamsmtp-1.10.orig/debian/config +++ clamsmtp-1.10/debian/config @@ -0,0 +1,40 @@ +#!/bin/sh +# +# config -- debconf script for clamsmtpd +# +# Copyright: Public Domain +set -e +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +# New Install? Add the new user and group +if [ -z "$2" ] ; then + db_set clamsmtp/addusergroup true +else + # Upgrade: If clamsmtp doesn't exist, ask + if [ -z "`getent passwd clamsmtp`" ] ; then + # The default config file may be installed if no local changes were made + if [ -f /etc/clamsmtpd.conf ] && \ + (grep -e '^User: clamsmtp' /etc/clamsmtpd.conf>/dev/null) ; then + db_set clamsmtp/addusergroup true + else + db_set clamsmtp/addusergroup false + db_input high clamsmtp/addusergroup || true + fi + fi + + # If this is an old version, ask about fixing permissions + if dpkg --compare-versions "$2" le 1.2-1 ; then +# Set the default value for do-fixperms + db_set clamsmtp/do-fixperms true + db_input high clamsmtp/do-fixperms || true + fi +fi + +db_set clamsmtp/purge true +db_input medium clamsmtp/purge || true + +# Go! +db_go || true + --- clamsmtp-1.10.orig/debian/control +++ clamsmtp-1.10/debian/control @@ -0,0 +1,28 @@ +Source: clamsmtp +Section: mail +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: ClamAV Team +Uploaders: Michael Meskes +Build-Depends: debhelper (>= 11), quilt (>= 0.46-7) +Standards-Version: 4.1.3 +Vcs-Git: git://anonscm.debian.org/pkg-clamav/clamsmtp.git +Vcs-Browser: https://anonscm.debian.org/gitweb/?p=pkg-clamav/clamsmtp.git;a=summary +Homepage: http://thewalter.net/stef/software/clamsmtp/ + +Package: clamsmtp +Architecture: any +Depends: dpkg (>= 1.10.11), clamav-daemon (>= 0.75.1), adduser, lsb-base (>= 3.0-6), ${shlibs:Depends}, ${misc:Depends} +Recommends: postfix | mail-transport-agent +Description: virus-scanning SMTP proxy + ClamSMTP is an SMTP proxy daemon that checks for viruses using the ClamAV + anti-virus software. It can act as a traditional SMTP proxy with publicly + accessible ports or as a transparent proxy, where SMTP traffic is redirected + to the ClamSMTP by your router. + . + ClamSMTP aims to be lightweight, reliable, and simple rather than have a + myriad of options. It is written in C without major dependencies. ClamSMTP + does not do general spam filtering, it only scans for viruses. + . + You do not need a local mail-transport-agent installed, since this server can + forward to a remote one. --- clamsmtp-1.10.orig/debian/copyright +++ clamsmtp-1.10/debian/copyright @@ -0,0 +1,64 @@ +This package was debianized by Chad Walstrom on +Thu, 26 Aug 2004 13:28:56 -0500. + +It was downloaded from http://memberwebs.com/nielsen/software/clamsmtp/ + +The location has been updated to http://memberwebs.com/stef/ + +Upstream Author: Stefan Walter also known as Nate Nielsen + + +Copyright (c) 2004-2005, Stefan Walter/Nate Nielsen +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * The names of contributors to this software may not be used to endorse or + * promote products derived from this software without specific prior written + * permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Portions of common/compat.c: + * + * Copyright (c) 1998 Todd C. Miller + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + --- clamsmtp-1.10.orig/debian/dirs +++ clamsmtp-1.10/debian/dirs @@ -0,0 +1,2 @@ +etc +usr/sbin --- clamsmtp-1.10.orig/debian/docs +++ clamsmtp-1.10/debian/docs @@ -0,0 +1,4 @@ +AUTHORS +debian/faq.html +debian/postfix.html +debian/transparent.html --- clamsmtp-1.10.orig/debian/examples +++ clamsmtp-1.10/debian/examples @@ -0,0 +1 @@ +debian/mime_header_checks --- clamsmtp-1.10.orig/debian/faq.html +++ clamsmtp-1.10/debian/faq.html @@ -0,0 +1,46 @@ + + + +ClamSMTP: Using with Postfix + + + + +

ClamSMTP: FAQ

+ +

Can you add XXX feature?

+ +

Maybe, maybe not. But you should try and see if you can write a script +using the VirusAction feature (found in version 0.9 and later). +It allows you to run an arbitrary program whenever a virus is found.

+ +

Sometimes clamd uses up tons of CPU +and errors out on certain connections. How can I fix this?

+ +

This should be fixed in versions later than 0.9. You may also want to +try upgrading your version of clamav. If it still occurs then let +the list know.

+ +

When I use the VirusAction option I see +defucnt or zombie processes left around. Why is that?

+ +

When clamsmtpd runs the script it ignores it, and doesn't check +it's return value. This is done for efficiency. In some cases the SMTP +connection is complete before the VirusAction script completes. In +this case the process is left in the defunct/zombie state when it finishes.

+ +

Don't worry about this however, the process will be cleaned up the next +time a VirusAction is run. There should be at most one or two of +these processes hanging around.

+ +

I get an warning message saying that clamsmtpd couldn't +set timeouts on the connection.

+ +

This occurs in with Linux kernels in the 2.2 series and earlier. Solutions +include upgrading to a later Linux version, or ignoring the warning.

+ +
Copyright 2002, N. Nielsen   [ clamsmtp | +home page ]
+ + + --- clamsmtp-1.10.orig/debian/install +++ clamsmtp-1.10/debian/install @@ -0,0 +1 @@ +debian/clamsmtpd.conf etc --- clamsmtp-1.10.orig/debian/mime_header_checks +++ clamsmtp-1.10/debian/mime_header_checks @@ -0,0 +1,14 @@ +# mime_header_checks: example content filtering rules +# +# Add the following line to /etc/postfix/main.cf: +# +# mime_header_checks = regexp:/etc/postfix/mime_header_checks +# +# If it's an application type, scan it +/^\s*Content-(Disposition|Type).*application\/(octet-stream|msword|mspowerpoint|msexcel|zip|x-bzip|x-gzip).*$/ FILTER scan:127.0.0.1:10026 + +# Clamav Daemon can catch HTML phishing scams as viruses! +/^\s*Content-(Disposition|Type).*text\/html.*$/ FILTER scan:127.0.0.1:10026 + +# Paranoid!!! +# /^\s*Content-(Disposition|Type).*(audio|image)\/.*$/ FILTER scan:127.0.0.1:10026 --- clamsmtp-1.10.orig/debian/patches/300175-fileperms.patch +++ clamsmtp-1.10/debian/patches/300175-fileperms.patch @@ -0,0 +1,32 @@ +From: Samuel Tardieu +Subject: Bug#300175: Patch for clamav/clamsmtp +Date: Mon, 21 Mar 2005 11:07:48 +0100 +To: 300175@bugs.debian.org +Cc: erwan@rail.eu.org +Reply-To: sam@rfc1149.net + +On recent glibc, files created with mkstemp() are created with mode +0600. If the mode is not changed, there is no way for another user to +read the temporary file, regardless of the users' respective groups. + +This patch allows users in the same group to read the temporary files. +This should solve Erwan's problem, and certainly has solved mine: + +Sam + +PS/ older glibc used to create the file in 0666 mode, which may explain + why not everyone has this problem + +Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam + +--- clamsmtp/common/smtppass.c.old 2005-01-27 01:22:56.000000000 +0100 ++++ clamsmtp/common/smtppass.c 2005-03-21 10:58:38.000000000 +0100 +@@ -1270,6 +1270,7 @@ + return -1; + } + ++ fchmod(tfd, 0640); + fcntl(tfd, F_SETFD, fcntl(tfd, F_GETFD, 0) | FD_CLOEXEC); + sp_messagex(ctx, LOG_DEBUG, "created cache file: %s", ctx->cachename); + } + --- clamsmtp-1.10.orig/debian/patches/gnu_source.patch +++ clamsmtp-1.10/debian/patches/gnu_source.patch @@ -0,0 +1,13 @@ +Remove GNU_SOURCE definition rom the only file that has it. + +--- ./common/smtppass.c 2014-07-06 12:26:26.000000000 +0200 ++++ ./common/smtppass.c 2014-07-06 12:26:52.367104112 +0200 +@@ -38,8 +38,6 @@ + * Olivier Beyssac + */ + +-#define _GNU_SOURCE +- + #include + #include + #include --- clamsmtp-1.10.orig/debian/patches/include_order.patch +++ clamsmtp-1.10/debian/patches/include_order.patch @@ -0,0 +1,64 @@ +Fix order of includes + +--- clamsmtp-1.10/common/usuals.h 2007-05-27 01:57:56.000000000 +0200 ++++ clamsmtp-patched/common/usuals.h 2015-03-01 16:48:10.684201573 +0100 +@@ -39,10 +39,10 @@ + #ifndef __USUALS_H__ + #define __USUALS_H__ + +-#include +- + #include "config.h" + ++#include ++ + #include + #include + #include +diff -Nru clamsmtp-1.10/configure.in clamsmtp-patched/configure.in +--- clamsmtp-1.10/configure.in 2008-06-30 19:01:48.000000000 +0200 ++++ clamsmtp-patched/configure.in 2015-03-01 16:40:02.278986882 +0100 +@@ -51,6 +51,8 @@ + AC_PROG_LN_S + AC_PROG_MAKE_SET + ++AC_USE_SYSTEM_EXTENSIONS ++ + # Debug mode + AC_ARG_ENABLE(debug,=20 + AC_HELP_STRING([--enable-debug], + +diff -Nru clamsmtp-1.10/common/smtppass.c clamsmtp-patched/common/smtppass.c +--- clamsmtp-1.10/common/smtppass.c 2015-03-02 09:36:27.793398352 +0100 ++++ clamsmtp-patched/common/smtppass.c 2015-03-02 09:38:50.843467581 +0100 +@@ -38,6 +38,8 @@ + * Olivier Beyssac + */ + ++#include "usuals.h" ++ + #include + #include + #include +@@ -58,17 +58,15 @@ + #include + #include + +-#include "usuals.h" +- +-#ifdef LINUX_TRANSPARENT_PROXY +-#include +-#endif +- + #include "compat.h" + #include "sock_any.h" + #include "stringx.h" + #include "sppriv.h" + ++#ifdef LINUX_TRANSPARENT_PROXY ++#include ++#endif ++ + /* ----------------------------------------------------------------------- + * STRUCTURES + */ --- clamsmtp-1.10.orig/debian/patches/leading_dots.patch +++ clamsmtp-1.10/debian/patches/leading_dots.patch @@ -0,0 +1,121 @@ +--- clamsmtp-1.10.orig/common/smtppass.c ++++ clamsmtp-1.10/common/smtppass.c +@@ -1389,16 +1389,34 @@ int sp_cache_data(spctx_t* ctx) + { + int r, count = 0; + const char* data; ++ int linestart; ++ ++ linestart = 1; + + while((r = sp_read_data(ctx, &data)) != 0) + { +- if(r < 0) +- return -1; /* Message already printed */ ++ if(r < 0) ++ return -1; /* Message already printed */ ++ ++ /* SMTP RFCs say that servers must remove leading dots at the beginning ++ * of a line. We do that here. ++ */ ++ ++ if (linestart && (data[0] == '.')) ++ { ++ data++; ++ r--; ++ } ++ ++ if (ctx->_crlf) ++ linestart = 1; ++ else ++ linestart = 0; + +- count += r; ++ count += r; + +- if((r = sp_write_data(ctx, data, r)) < 0) +- return -1; /* Message already printed */ ++ if((r = sp_write_data(ctx, data, r)) < 0) ++ return -1; /* Message already printed */ + } + + /* End the caching */ +@@ -1572,9 +1590,12 @@ int sp_done_data(spctx_t* ctx, const cha + int ret = 0; + char *line; + char header[MAX_HEADER_LENGTH] = ""; +- size_t header_len, line_len; ++ size_t header_len; + int header_prepend = 0; + ssize_t rc; ++ size_t buf_len; ++ int linestart; ++ char *buf; + + ASSERT(ctx->cachename[0]); /* Must still be around */ + ASSERT(!ctx->cachefile); /* File must be closed */ +@@ -1582,10 +1603,12 @@ int sp_done_data(spctx_t* ctx, const cha + memset(header, 0, sizeof(header)); + + /* Alloc line buffer */ +- line_len = SP_LINE_LENGTH; +- if((line = (char *)malloc(line_len)) == NULL) ++ buf_len = SP_LINE_LENGTH; ++ if((buf = (char *)malloc(buf_len)) == NULL) + RETURN(-1); + ++ buf[0] = '.'; ++ + /* Open the file */ + file = fopen(ctx->cachename, "r"); + if(file == NULL) +@@ -1631,17 +1654,24 @@ int sp_done_data(spctx_t* ctx, const cha + header[0] = '\0'; + } + +- /* Transfer actual file data */ +- while((rc = getline(&line, &line_len, file)) != -1) ++ /* Transfer actual file data */ ++ while(line = (fgets(buf + 1, buf_len - 1, file))) + { +- /* +- * If the line is . we need to change it so that +- * it doesn't end the email. We do this by adding a space. +- * This won't occur much in clamsmtpd, but proxsmtpd might +- * have filters that accidentally put this in. +- */ +- if(strcmp(line, "." CRLF) == 0) +- strncpy(line, ". " CRLF, SP_LINE_LENGTH); ++ /* SMTP RFCs say that clients must prepend an additional dot ++ * to every line starting with a dot. We do that here. ++ */ ++ if (linestart && (line[0] == '.')) ++ line = buf; ++ ++ rc = strlen(line); ++ ++ if (strstr(line, CRLF)) ++ linestart = 1; ++ else ++ linestart = 0; ++ ++ if(strcmp(line, "." CRLF) == 0) ++ strncpy(line, ". " CRLF, SP_LINE_LENGTH); + + if(header[0] != '\0') + { +@@ -1683,10 +1713,10 @@ int sp_done_data(spctx_t* ctx, const cha + + cleanup: + +- if(line) +- free(line); +- if(file) +- fclose(file); /* read-only so no error check */ ++ if(buf) ++ free(buf); ++ if(file) ++ fclose(file); /* read-only so no error check */ + + return ret; + } --- clamsmtp-1.10.orig/debian/patches/manpage.patch +++ clamsmtp-1.10/debian/patches/manpage.patch @@ -0,0 +1,13 @@ +Fix syntax error in manpage. + +--- clamsmtp/doc/clamsmtpd.8.orig 2008-11-30 13:54:38.000000000 +0100 ++++ clamsmtp/doc/clamsmtpd.8 2008-11-30 13:54:46.000000000 +0100 +@@ -146,7 +146,7 @@ + machine under heavy load. Secondly as with running any program there are + security implications to be considered. + .Pp +-.Please consider the above carefully before implementing a virus action. ++Please consider the above carefully before implementing a virus action. + .Pp + The script is run without its output being logged, or return value being + checked. Because of this you should test it thoroughly. Make sure it runs --- clamsmtp-1.10.orig/debian/patches/series +++ clamsmtp-1.10/debian/patches/series @@ -0,0 +1,5 @@ +300175-fileperms.patch +gnu_source.patch +include_order.patch +leading_dots.patch +manpage.patch --- clamsmtp-1.10.orig/debian/po/POTFILES.in +++ clamsmtp-1.10/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- clamsmtp-1.10.orig/debian/po/ca.po +++ clamsmtp-1.10/debian/po/ca.po @@ -0,0 +1,127 @@ +# +# Catalan translations for clamsmtp package. +# Copyright © 2009 ClamAV Team. +# This file is distributed under the same license as the clamsmtp package. +# +# Jordà Polo , 2007, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: 1.10-2\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2009-12-27 12:00+0100\n" +"Last-Translator: Jordà Polo \n" +"Language-Team: Catalan \n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Voleu afegir un usuari i grup del sistema «clamsmtp»?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Les noves instal·lacions de clamsmtp es configuren amb un usuari i grup del " +"sistema, «clamsmtp». L'usuari «clamav» s'afegeix a aquest grup per tal de " +"permetre l'accés del procés «clamav-daemon» al directori de quarantena. Si " +"activeu aquesta opció, el procés d'instal·lació també actualitzarà el " +"propietari i els permisos dels directoris de quarantena i execució." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Voleu arreglar els permisos del directori?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtpd necessita permisos de lectura i escriptura al directori de gestió " +"de cues de virus i al directori d'execució («run»), on es crea el seu fitxer " +"PID. Addicionalment, el dimoni Clam AV ha de tenir accés de lectura al " +"directori de gestió de cues per tal d'escanejar en busca de virus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"L'script de post-instal·lació pot arreglar els permisos i el propietari " +"d'aquests dos directoris. Es consultaran els fitxers /etc/clamsmtpd.conf i /" +"etc/default/clamsmtp per a comprovar les variables «TempDirectory», " +"«PidFile», «User», i «Group», i aleshores s'actualitzaran els dos directoris " +"com correspongui." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Assegureu-vos de comprovar els permisos dels directoris després d'executar " +"l'script d'init amb els paràmetres «start» i «restart»." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "" +"Voleu esborrar del tot el directori de gestió de cues en fer «--purge»?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"El directori de gestió de cues pot contenir virus en quarantena que es poden " +"esborrar automàticament quan elimineu el paquet." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"L'script de post-instal·lació pot arreglar els permisos i el propietari " +"d'aquests dos directoris. Es consultaran els fitxers /etc/clamsmtpd.conf i /" +"etc/default/clamsmtp per a comprovar les variables «TempDirectory», " +"«PidFile», «User», i «Group», i aleshores s'actualitzaran els dos directoris " +"com correspongui." + +#~ msgid "" +#~ "Warning! Use this option at your own risk, and be sure to check directory " +#~ "permissions after running the 'start' or 'restart' commands for the init " +#~ "script." +#~ msgstr "" +#~ "Avís! Utilitzeu aquesta opció amb cura, i assegureu-vos de comprovar els " +#~ "permisos dels directoris després d'executar les ordres «start» o " +#~ "«restart» de l'script d'inicialització." --- clamsmtp-1.10.orig/debian/po/cs.po +++ clamsmtp-1.10/debian/po/cs.po @@ -0,0 +1,129 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2009-12-13 09:19+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Přidat systémového uživatele a skupinu clamsmtp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Nové instalace clamsmtp se instalují pod systémového uživatele a skupinu " +"„clamsmtp“. Uživatel „clamav“ je přidán do skupiny clamsmtp, což umožní " +"procesu clamav-daemon, aby viděl do adresáře s karanténou. Odpovíte-li na " +"otázku kladně, instalační proces také upraví vlastnictví a přístupová " +"oprávnění ke karanténě a některým adresářům." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Opravit práva k adresářům?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtpd vyžaduje práva pro čtení a zápis do virového spool adresáře a do " +"adresáře, kam si ukládá soubor s PID. Dále musí mít Clam AV daemon čtenářský " +"přístup do spool adresáře, aby zde mohl hledat viry." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Poinstalační skript může opravit práva a vlastnictví těchto dvou adresářů. " +"Skript se podívá do souborů /etc/clamsmtpd.conf a /etc/default/clamsmtp, " +"odkud zjistí hodnoty proměnných TempDirectory, PidFile, User a Group a poté " +"příslušně upraví oba adresáře." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Po spuštění init skriptu s parametrem „start“ nebo „restart“ nezapomeňte " +"zkontrolovat oprávnění k adresářům." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Smazat spool adresář při odstranění balíku s volbou --purge?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"Virový spool adresář může obsahovat viry v karanténě, které je možno při " +"odstranění balíku ze systému smazat." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Poinstalační skript může opravit práva a vlastnictví těchto dvou adresářů. " +"Skript se podívá do souborů /etc/clamsmtpd.conf a /etc/default/clamsmtp, " +"odkud zjistí hodnoty proměnných TempDirectory, PidFile, User a Group a poté " +"příslušně upraví oba adresáře." + +#~ msgid "" +#~ "Warning! Use this option at your own risk, and be sure to check directory " +#~ "permissions after running the 'start' or 'restart' commands for the init " +#~ "script." +#~ msgstr "" +#~ "Varování! Tuto volbu použijte jen na vlastní riziko a po spuštění init " +#~ "skriptu s parametrem start nebo restart nezapomeňte zkontrolovat " +#~ "přístupová práva k adresářům." --- clamsmtp-1.10.orig/debian/po/da.po +++ clamsmtp-1.10/debian/po/da.po @@ -0,0 +1,114 @@ +# Danish translation clamsmtp. +# Copyright (C) 2012 clamsmtp & nedenstående oversættere. +# This file is distributed under the same license as the clamsmtp package. +# Joe Hansen , 2012. +# +# pool -> pulje +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2012-05-06 17:30+01:00\n" +"Last-Translator: Joe Hansen \n" +"Language-Team: Danish \n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Tilføj en systembruger og -gruppe for clamsmtp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Nye installationer af clamsmtp installeres med en systembruger og -gruppe " +"»clamsmtp«. Brugeren »clamav« tilføjes til gruppen clamsmtp så at clamav-" +"daemon-processen kan vise karantænemappen. Hvis denne indstilling er " +"angivet, så vil installationsprocessen også opdatere ejerskab og rettigheder " +"for karantænen og køre mapper." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Ret mapperettigheder?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtp skal bruge læse- og skriverettigheder til puljemappen med vira, og " +"kørselsmappen hvor dens PID-fil oprettes. Yderligere skal Clam AV-dæmonen " +"have læseadgang til puljemappen for at skanne vira." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Skriptet, der køres efter installation, kan rette rettighederne og ejerskab " +"for disse to mapper. Skriptet vil konsultere filerne /etc/clamsmtpd.conf og /" +"etc/default/ for de administrativt tildelte variabler TempDirectory, " +"PidFile, User og Group, og så opdatere de to mapper tilsvarende." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Husk at kontrollere mapperettighederne efter kørsel af init-skriptet med " +"parametrene »start« eller »restart«." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Tøm puljemappe med --purge?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"Puljemappen for vira kan indeholde karantæneramte vira, som kan fjernes " +"automatisk når pakken afinstalleres." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Skriptet, der køres efter installation, kan rette rettighederne og ejerskab " +"for disse to mapper. Skriptet vil konsultere filerne /etc/clamsmtpd.conf og /" +"etc/default/ for de administrativt tildelte variabler TempDirectory, " +"PidFile, User og Group, og så opdatere de to mapper tilsvarende." --- clamsmtp-1.10.orig/debian/po/de.po +++ clamsmtp-1.10/debian/po/de.po @@ -0,0 +1,114 @@ +# Translation of clamsmtp debconf templates to German +# Copyright (C) Alwin Meschede, 2006. +# Copyright (C) Helge Kreutzmann , 2007, 2009. +# This file is distributed under the same license as the clamsmtp package. +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp 1.10-2\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2009-11-25 14:28+0100\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Einen Clamsmtp-Systembenutzer und -gruppe hinzufügen?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Neue Installationen von Clamsmtp werden mit einem Systembenutzer und -gruppe " +"»clamsmtp« installiert. Der »clamav«-Benutzer wird der clamsmtp-Gruppe " +"hinzugefügt, damit der Clamav-Daemonprozess das Quarantäne-Verzeichnis " +"einsehen kann. Falls diese Option gesetzt ist, wird der Installationsprozess " +"auch den Eigentümer und die Rechte des Quarantäne- und Run-Verzeichnisses " +"aktualisieren." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Verzeichnisrechte korrigieren?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"Clamsmtpd benötigt Lese- und Schreibrechte für das Virus-Spool-Verzeichnis " +"und das run-Verzeichnis, in dem seine PID-Datei erstellt wird. Zusätzlich " +"benötigt der Clam-AV-Daemon für die Virenprüfung Lesezugriff auf das Spool-" +"Verzeichnis." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Das Post-Installations-Skript kann die Rechte und Eigentümer dieser zwei " +"Verzeichnisse korrigieren. Es wird die administrativ zugewiesenen Variablen " +"TempDirectory, PidFile, Benutzer und Gruppe aus den Dateien /etc/clamsmtpd." +"conf entnehmen und dann die zwei Verzeichnisse entsprechend aktualisieren." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Überprüfen Sie die Verzeichnisrechte, nachdem Sie die Kommandos »start« oder " +"»restart« für das init-Skript verwendet haben." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Bei --purge das Spool-Verzeichnis vollständig löschen?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"Das Virus-Spool-Verzeichnis könnte Viren in Quarantäne enthalten. Diese " +"können beim vollständigen Löschen des Paketes automatisch entfernt werden." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Das Post-Installations-Skript kann die Rechte und Eigentümer dieser zwei " +"Verzeichnisse korrigieren. Es wird die administrativ zugewiesenen Variablen " +"TempDirectory, PidFile, Benutzer und Gruppe aus den Dateien /etc/clamsmtpd." +"conf und /etc/default/clamsmtp entnehmen und dann die zwei Verzeichnisse " +"entsprechend aktualisieren." --- clamsmtp-1.10.orig/debian/po/es.po +++ clamsmtp-1.10/debian/po/es.po @@ -0,0 +1,139 @@ +# clamsmtp po-debconf translation to Spanish +# Copyright (C) 2010 Software in the Public Interest +# This file is distributed under the same license as the clamsmtp package. +# +# Changes: +# - Initial translation +# Omar Campagne , 2010 +# +# - Updates +# TRANSLATOR +# +# Traductores, si no conocen el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/ +# especialmente las notas y normas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +msgid "" +msgstr "" +"Project-Id-Version: 1.10-5\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2010-03-24 10:46+0100\n" +"Last-Translator: Omar Campagne \n" +"Language-Team: Debian l10n Spanish \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "¿Desea añadir el usuario y grupo del sistema «clamsmtp»?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Las instalaciones nuevas de clamsmtp añaden el usuario y grupo del sistema " +"«clamsmtp». El usuario «clamav» se añade al grupo «clamsmtp» para permitir " +"que el proceso clamav-daemon pueda ver el directorio de cuarentena. De " +"activar esta opción, el proceso de instalación actualizará también el " +"propietario y los permisos de los directorios de cuarentena y ejecución." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "¿Desea arreglar los permisos del directorio?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtpd precisa permisos de lectura y escritura en el directorio de la " +"cola («spool») de virus, y en el directorio en el cual crea su fichero PID. " +"Además, el demonio de Clam AV precisa permisos de lectura en el directorio " +"de la cola para realizar un análisis en busca de virus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"El script de post-instalación puede arreglar los permisos y el propietario " +"de estos dos directorios. Consultará los ficheros «/etc/clamsmtpd.conf» y «/" +"etc/default/clamsmtp» en busca de las variables «TempDirectory», «PidFile», " +"«User» y «Group», designadas por el administrador, para después actualizar " +"ambos directorios apropiadamente." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Revise los permisos del directorio después de ejecutar el script de arranque " +"(«init») con los parámetros «start» o «restart»." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "¿Desea purgar el directorio de la cola al usar «--purge»?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"El directorio de la cola de virus puede contener virus en cuarentena que se " +"pueden eliminar automáticamente al purgar el paquete." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"El script de post-instalación puede arreglar los permisos y el propietario " +"de estos dos directorios. Consultará los ficheros «/etc/clamsmtpd.conf» y «/" +"etc/default/clamsmtp» en busca de las variables «TempDirectory», «PidFile», " +"«User» y «Group», designadas por el administrador, para después actualizar " +"ambos directorios apropiadamente." --- clamsmtp-1.10.orig/debian/po/fr.po +++ clamsmtp-1.10/debian/po/fr.po @@ -0,0 +1,129 @@ +# French translation of clamsmtp debconf templates +# +# Copyright (C) 2009 Debian French l10n Team +# This file is distributed under the same license as the clamsmtp package. +# Translator: +# Steve Petruzzello +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp_1.3-1\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2005-03-26 10:49+0100\n" +"Last-Translator: Steve Petruzzello \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Faut-il ajouter l'identifiant et le groupe système « clamsmtp » ?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Une nouvelle installation de clamsmtp crée l'identifiant système et le " +"groupe « clamsmtp ». L'identifiant « clamav » est ajouté au groupe " +"« clamsmtp » pour permettre au service clamav d'accéder au répertoire de " +"quarantaine. Si vous choisissez cette option, le processus d'installation " +"mettra également à jour le propriétaire et les autorisations des répertoires " +"de quarantaine et d'exécution." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Faut-il corriger les autorisations sur le répertoire ?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"Clamsmtp doit avoir accès en lecture et écriture au répertoire de cache des " +"virus, ainsi qu'au répertoire d'exécution « run » où le fichier PID (fichier " +"d'identification de processus) est créé. De plus, le démon Clam AV doit " +"aussi avoir accès en lecture à ce même répertoire de cache afin d'y examiner " +"les fichiers à la recherche de virus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Veuillez confirmer si le script de post-installation doit vérifier et " +"corriger les autorisations et le propriétaire de ces deux répertoires. Les " +"fichiers /etc/clamsmtpd.conf et /etc/default/clamsmtp seront consultés afin " +"d'utiliser les variables administratives « TempDirectory », « PidFile », " +"« User » et « Group » puis les deux répertoires seront corrigés." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"N'oubliez pas de vérifier les permissions du répertoire après l'exécution du " +"script d'initialisation avec le paramètre « start » ou « restart »." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "" +"Faut-il purger le répertoire de cache si le paquet est désinstallé avec " +"l'option « --purge » ?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"Le répertoire de cache pourrait contenir des virus en quarantaine. Veuillez " +"choisir si ces fichiers doivent être supprimés lorsque le paquet est purgé." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Veuillez confirmer si le script de post-installation doit vérifier et " +"corriger les autorisations et le propriétaire de ces deux répertoires. Les " +"fichiers /etc/clamsmtpd.conf et /etc/default/clamsmtp seront consultés afin " +"d'utiliser les variables administratives « TempDirectory », « PidFile », " +"« User » et « Group » puis les deux répertoires seront corrigés." + +#~ msgid "" +#~ "Warning! Use this option at your own risk, and be sure to check directory " +#~ "permissions after running the 'start' or 'restart' commands for the init " +#~ "script." +#~ msgstr "" +#~ "Attention : utilisez cette option avec prudence et vérifiez les " +#~ "autorisations sur ce répertoire avant d'exécuter les commandes « start » " +#~ "ou « restart » du script d'initialisation." --- clamsmtp-1.10.orig/debian/po/gl.po +++ clamsmtp-1.10/debian/po/gl.po @@ -0,0 +1,122 @@ +# Galician translation of clamsmtp's debconf templates +# This file is distributed under the same license as the clamsmtp package. +# +# Jacobo Tarrio , 2007. +# Marce Villarino , 2009. +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2009-11-24 22:01+0100\n" +"Last-Translator: Marce Villarino \n" +"Language-Team: Galician \n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.0\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Desexa engadir un usuario e grupo clamsmtp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"As novas instalacións de clamsmtp empregan un usuario e grupo «clamsmtp». O " +"usuario «clamav» engádese ao grupo «clamsmtp» para permitirlle ao proceso " +"clamav-daemon consultar o directorio de corentena. Se escolle esta opción o " +"proceso de instalación tamén ha actualizar a propiedade e permisos dos " +"directorios de corentena e execución." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Desexa corrixir os permisos do directorio?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtpd precisa de permisos de lectura e escritura no directorio de fila " +"de virus e no directorio de execución no que se crea o seu ficheiro PID. " +"Ademáis, o servizo Clam AV debe ter acceso de lectura ao directorio de " +"traballo para buscar virus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"O script de post-instalación pode corrixir os permisos e propriedade destes " +"dous directorios. Ha consultar os ficheiros /etc/clamsmtpd.conf e /etc/" +"default/clamsmtp na busca das variábeis TempDirectory, PidFile, User e Group " +"e actualizar os dous directorios do xeito apropriado." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Desexa borrar o directorio de traballo ao purgar o paquete?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"O directorio de fila de virus pode conter virus en corentena que se poden " +"eliminar automaticamente cando se purga o paquete." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"O script de post-instalación pode corrixir os permisos e propriedade destes " +"dous directorios. Ha consultar os ficheiros /etc/clamsmtpd.conf e /etc/" +"default/clamsmtp na busca das variábeis TempDirectory, PidFile, User e Group " +"e actualizar os dous directorios do xeito apropriado." + +#~ msgid "" +#~ "Warning! Use this option at your own risk, and be sure to check directory " +#~ "permissions after running the 'start' or 'restart' commands for the init " +#~ "script." +#~ msgstr "" +#~ "Aviso: empregue esta opción con coidado, e asegúrese de comprobar os " +#~ "permisos dos directorios despois de executar as ordes «start» ou " +#~ "«restart» do script de inicio." --- clamsmtp-1.10.orig/debian/po/it.po +++ clamsmtp-1.10/debian/po/it.po @@ -0,0 +1,116 @@ +# Italian translation of clamsmtp debconf messages. +# Copyright (C) 2012, Beatrice Torracca +# This file is distributed under the same license as the clamsmtp package. +# Beatrice Torracca , 2012. +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2012-10-24 17:34+0200\n" +"Last-Translator: Beatrice Torracca \n" +"Language-Team: Italian \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Virtaal 0.7.1\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Aggiungere un utente e un gruppo di sistema per clamsmtp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Le nuove installazioni di clamsmtp vengono create con un utente e un gruppo " +"di sistema chiamati «clamsmtp». L'utente «clamav» viene aggiunto al gruppo " +"clamsmtp per permettere al processo clamav-daemon di visualizzare la " +"directory di quarantena. Se questa opzione viene impostata, il processo di " +"installazione aggiornerà anche la proprietà e i permessi delle directory di " +"quarantena e di esecuzione." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Correggere i permessi delle directory?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtpd deve avere i permessi di lettura e scrittura per la directory " +"dello spool dei virus e per la directory di esecuzione in cui viene creato " +"il suo file PID. In aggiunta, il demone Clam AV deve avere accesso in " +"lettura alla directory di spool per la ricerca anti-virus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Lo script di post-installazione può correggere i permessi e la proprietà di " +"queste due directory. Consulterà i file /etc/clamsmtpd.conf e /etc/default/ " +"di clamsmtp per le variabili TempDirectory, PidFile, User e Group assegnate " +"dall'amministratore e poi aggiornerà le due directory in modo appropriato." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Assicurarsi di controllare i permessi delle directory dopo aver eseguito lo " +"script init con i parametri «start» o «restart»." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Svuotare la directory di spool quando viene usato --purge?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"La directory di spool dei virus può contenere virus in quarantena che " +"possono essere rimossi automaticamente quando viene eliminato completamente " +"il pacchetto." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Lo script di post-installazione può correggere i permessi e la proprietà di " +"queste due directory. Consulterà i file /etc/clamsmtpd.conf e /etc/default/ " +"di clamsmtp per le variabili TempDirectory, PidFile, User e Group assegnate " +"dall'amministratore e poi aggiornerà le due directory in modo appropriato." --- clamsmtp-1.10.orig/debian/po/ja.po +++ clamsmtp-1.10/debian/po/ja.po @@ -0,0 +1,121 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp 1.10-2\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2009-12-07 23:15+0900\n" +"Last-Translator: Hideki Yamane (Debian-JP) \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "システムユーザおよびグループ として clamsmtp を追加しますか?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"新たな clamsmtp のインストールでは、「clamsmtp」というシステムユーザおよびグ" +"ループでのインストールを行います。clamav-daemon プロセスが隔離ディレクトリを" +"参照可能なように「clamav」ユーザが clamsmtp グループに追加されます。このオプ" +"ションが設定されると、インストール中に隔離ディレクトリと動作ディレクトリの所" +"有者と権限の更新も行います。" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "ディレクトリの権限を修正しますか?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtp は、スプールのディレクトリと PID が生成される動作ディレクトリに読み" +"書きできる権限を必要とします。加えて Clam AV デーモンは、ファイルをウィルスス" +"キャンするために同じスプールディレクトリの読み取り権限が必要です。" + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"post-installation スクリプトによって、これら 2 つのディレクトリの権限と所有者" +"を修正できます。/etc/clamsmtpd.conf で TempDirectory 変数、PidFile 変数、" +"User 変数、Group 変数が管理のために割り当てられるので、2 つのディレクトリを適" +"切に更新してください。" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"init スクリプトに 'start' あるいは 'restart' パラメータを付けて実行した後で、" +"ディレクトリの権限を必ず確認してください。" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "--purge を指定した際にスプールのディレクトリを完全に削除しますか?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"隔離されたウィルスが含まれているかもしれないウィルススプールディレクトリは、" +"パッケージを完全削除 (purge) する際に自動的に削除できます。" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"post-installation スクリプトによって、これら 2 つのディレクトリの権限と所有者" +"を修正できます。/etc/clamsmtpd.conf で TempDirectory 変数、PidFile 変数、" +"User 変数、Group 変数が管理のために割り当てられるので、2 つのディレクトリを適" +"切に更新してください。" --- clamsmtp-1.10.orig/debian/po/nl.po +++ clamsmtp-1.10/debian/po/nl.po @@ -0,0 +1,118 @@ +# Dutch translation of clamsmtp debconf templates. +# Copyright (C) 2007-2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the clamsmtp package. +# Bart Cornelis , 2007. +# Jeroen Schot , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp 1.10-7\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2012-02-03 10:59+0100\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "" +"Wilt u dat er een gebruiker en groep 'clamsmtp' wordt toegevoegd op dit " +"systeem?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Nieuwe installaties van clamsmtp installeren met de gebruiker en groep " +"'clamsmtp' als eigenaar. Om de clamav-achtergronddienst toe te laten om de " +"quarantainemap in te kijken wordt de 'clamav' gebruiker toegevoegd aan de " +"groep 'clamsmtp'. Wanneer u deze optie kiest zal het installatieproces ook " +"de eigenaar en rechten van de quarantaine- en run-mappen bijwerken." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Wilt u de maprechten bijwerken?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"Clamsmtpd heeft lees- en schrijfrechten nodig op de virus-spoolmap, en op de " +"run-map waarin het PID-bestand aangemaakt wordt. Verder heeft de Clam AV-" +"achtergronddienst leesrechten nodig in de spoolmap om naar virussen te " +"scannen." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Het post-installatiescript kan de de rechten en de eigenaar van deze twee " +"mappen aanpassen. De bestanden /etc/clamsmtpd.conf en /etc/default/clamsmtp " +"worden nagekeken om de door de beheerder bepaalde TempDirectory, PidFile, " +"User, en Group variabelen te bepalen; de twee mappen worden overeenkomstig " +"bijgewerkt." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Vergeet niet om de rechten van de mappen te controleren na het uitvoeren van " +"het initscript met de parameters 'start' of 'restart'." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "De spoolmap wissen bij het wissen van dit pakket?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"De virus-spoolmap kan virussen in quarantaine bevatten die automatisch " +"worden verwijderd bij het wissen ('purge') van het pakket." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Het post-installatiescript kan de de rechten en de eigenaar van deze twee " +"mappen aanpassen. De bestanden /etc/clamsmtpd.conf en /etc/default/clamsmtp " +"worden nagekeken om de door de beheerder bepaalde TempDirectory, PidFile, " +"User, en Group variabelen te bepalen; de twee mappen worden overeenkomstig " +"bijgewerkt." --- clamsmtp-1.10.orig/debian/po/pt.po +++ clamsmtp-1.10/debian/po/pt.po @@ -0,0 +1,125 @@ +# Portuguese translation for clamsmtp's debconf messages +# Released with the same licence as the clamsmtp package. +# Ricardo Silva , 2006-2009 +# Pedro Ribeiro , 2010 +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2010-09-17 22:29+0000\n" +"Last-Translator: Pedro Ribeiro \n" +"Language-Team: Portuguese \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Adicionar um utilizador e um grupo clamsmtp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Instalações novas do clamsmtp instalam com um utilizador de sistema e um " +"grupo \"clamsmtp\". O utilizador \"clamav\" é adicionado ao grupo clamsmtp " +"para permitir que o processo clamav-daemon veja o directório de quarentena. " +"Se esta activar esta opção, o processo de instalação também irá actualizar " +"as informações de dono e permissões dos directórios de quarentena e de " +"execução." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Corrigir as permissões dos directórios?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"O clamsmtpd necessita de permissões de escrita e leitura no directório de " +"spool de virus, e no directório run no qual o seu ficheiro de PID é criado. " +"Também o daemon Clam AV tem de ter acesso de leitura ao directório de spool " +"para procurar por virus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"O script pós-instalação pode corrigir as permissões e a propriedade destes " +"dois directórios. Irá consultar os ficheiros /etc/clamsmtpd.conf e /etc/" +"default/clamsmtp para obter as variáveis atribuídas administrativamente " +"TempDirectory, PidFile, User e Group, e actualizará apropriadamente os dois " +"directórios." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Verifique as permissões do directório após correr o script 'init' com os " +"parâmetros 'start' ou 'restart'." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Apagar o directório de spool aquando de um --purge?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"O directório de spool de vírus pode conter vírus em quarentena que podem ser " +"removidos automaticamente na operação de purge ao pacote." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"O script pós-instalação pode corrigir as permissões e a propriedade destes " +"dois directórios. Irá consultar os ficheiros /etc/clamsmtpd.conf e /etc/" +"default/clamsmtp para obter as variáveis atribuídas administrativamente " +"TempDirectory, PidFile, User e Group, e actualizará apropriadamente os dois " +"directórios." + +#~ msgid "" +#~ "Warning! Use this option at your own risk, and be sure to check directory " +#~ "permissions after running the 'start' or 'restart' commands for the init " +#~ "script." +#~ msgstr "" +#~ "Aviso! Use esta opção por sua própria conta e risco, e certifique-se que " +#~ "verifica as permissões do directório depois de correr os comandos 'start' " +#~ "ou 'restart' do script de inicialização." --- clamsmtp-1.10.orig/debian/po/pt_BR.po +++ clamsmtp-1.10/debian/po/pt_BR.po @@ -0,0 +1,135 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2005-05-26 14:26-0300\n" +"Last-Translator: André Luís Lopes \n" +"Language-Team: Debian-BR Project \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Adicionar usuário e grupo de sistema clamsmtp ?" + +#. Type: boolean +#. Description +#: ../templates:1001 +#, fuzzy +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Novas instalações do clamsmtp são feitas com um usuário e um grupo de " +"sistema de nome \"clamsmtp\". O usuário \"clamav\" é adicionado ao grupo " +"clamsmtp para permitir que o processo clamav-daemon visualize o diretório de " +"quarentena. Caso você responda \"Sim\" para esta pergunta, o processo de " +"instalação irá também atualizar o dono e as permissões dos diretórios de " +"quarentena e de execução." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Corrigir permissões dos diretórios ?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"O clamsmtp precisa de permissões de leitura e escrita no diretório de spool " +"de vírus e no diretório de execução no qual seu arquivo de PID é criado. " +"Adicionalmente, o daemon ClamAV deve possuir acesso de leitura no diretório " +"de spool para procurar por vírus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Você gostaria que o script de pós-instalação corrigisse as permissões e o " +"dono desses dois diretórios ? O script irá consultar os arquivos /etc/" +"clamsmtpd.conf e /etc/default/clamsmtp em busca das variáveis " +"administrativamente atribuídas TemDirectory, PidFile, User e Group e então " +"atualizar ambos os diretórios apropriadamente." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Remover diretório de spool com --purge ?" + +#. Type: boolean +#. Description +#: ../templates:3001 +#, fuzzy +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"O diretório de spool de vírus pode conter vírus em quarentena. Você deseja " +"que esses arquivos sejam removidos quando você especificar a opção '--purge' " +"para o dpkg ou para o apt ?" + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Você gostaria que o script de pós-instalação corrigisse as permissões e o " +"dono desses dois diretórios ? O script irá consultar os arquivos /etc/" +"clamsmtpd.conf e /etc/default/clamsmtp em busca das variáveis " +"administrativamente atribuídas TemDirectory, PidFile, User e Group e então " +"atualizar ambos os diretórios apropriadamente." + +#~ msgid "" +#~ "Warning! Use this option at your own risk, and be sure to check directory " +#~ "permissions after running the 'start' or 'restart' commands for the init " +#~ "script." +#~ msgstr "" +#~ "Aviso ! Use esta opção e assuma o risco. Certifique-se também de checar " +#~ "as permissões do diretório após executar os comandos 'start' ou 'restart' " +#~ "para o script de inicialização." --- clamsmtp-1.10.orig/debian/po/ru.po +++ clamsmtp-1.10/debian/po/ru.po @@ -0,0 +1,124 @@ +# translation of clamsmtp_1.10-3_ru.po to Russian +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# +# Yuriy Talakan' , 2005. +# Yuri Kozlov , 2009, 2010. +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp 1.10-3\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2010-01-02 10:06+0300\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Добавить системного пользователя и группу clamsmtp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Новые установки clamsmtp создают системного пользователя и группу \"clamsmtp" +"\". Пользователь \"clamav\" добавляется в группу clamsmtp, чтобы разрешить " +"процессу clamav-daemon просмотр каталога quarantine. Если вы ответите " +"утвердительно, то процесс установки также обновит права доступа и владельца " +"каталогов quarantine и run." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Исправить права доступа каталогов?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtpd нужны права на чтение и запись в каталог хранения вирусов и " +"каталог run, в котором создается PID файл. Также, служба Clam AV должна " +"иметь доступ на чтение к каталогу хранения, чтобы искать вирусы." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Послеустановочный сценарий может исправить права доступа и владельца двух " +"этих каталогов. Он прочитает файлы /etc/clamsmtpd.conf и /etc/default/" +"clamsmtp и, в соответствии с указанными там переменными TempDirectory, " +"PidFile, User и Group, обновит два этих каталога." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Проверьте права на каталог после работы сценария запуска с параметрами start " +"или restart." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Очистить каталог хранения при --purge?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"В каталоге хранения вирусов могут содержаться файлы с вирусами в карантине, " +"которые могут быть автоматически удалены при вычистке пакета." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Послеустановочный сценарий может исправить права доступа и владельца двух " +"этих каталогов. Он прочитает файлы /etc/clamsmtpd.conf и /etc/default/" +"clamsmtp и, в соответствии с указанными там переменными TempDirectory, " +"PidFile, User и Group, обновит два этих каталога." --- clamsmtp-1.10.orig/debian/po/sv.po +++ clamsmtp-1.10/debian/po/sv.po @@ -0,0 +1,128 @@ +# Translation of clamsmtp debconf template to Swedish +# Copyright (C) 2009 Martin Bagge +# This file is distributed under the same license as the clamsmtp package. +# +# Daniel Nylander , 2005 +# Martin Bagge , 2009 +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp 1.4.1-2\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2009-12-07 22:31+0100\n" +"Last-Translator: Martin Bagge \n" +"Language-Team: Swedish \n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Swedish\n" +"X-Poedit-Country: Sweden\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Lägg till en systemanvändare och grupp för clamsmtp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Nya installationer av clamsmtp installeras med systemanvändaren och gruppen " +"\"clamsmtp\". Användaren \"clamav\" läggs till i gruppen clamsmtp för att " +"tillåta att processen clamav-daemon kan se i karantänmappen. Om detta " +"alternativ aktiveras kommer installationen även att uppdatera ägarskapet och " +"rättigheterna till karantän- och körmapparna.Om du svarar jag på denna fråga " +"kommer installationen även att uppdatera ägarskap och rättigheter på " +"karantänen och mappen där PID-filen skrivs." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Fixa till mapprättigheterna?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"clamsmtpd behöver läs- och skrivrättigheter till virus-spoolmappen och kunna " +"köra från den mapp där dess PID-fil är skapad. ClamAV-daemonen måste också " +"ha läsrättighet till spoolmappen för att skanna efter virus." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Skriptet som körs efter installationen kan sätta rättigheterna och " +"ägarskapet för dessa två mappar. I filerna /etc/clamsmtpd.conf och /etc/" +"default/clamsmtp läser skriptet de administrativt tilldelade variablerna " +"TempDirectory, PidFile, User, och Group för att sedan uppdatera de två " +"mapparna." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Kontrollera rättigheterna för mappen efter att skriptet har körts med " +"parametrarna \"start\" eller \"restart\"." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Rensa spool-mappen vid --purge ?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"Spool-mappen för virus kan innehålla virus i karantän som kan tas bort " +"automatiskt när paketet tas bort." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Skriptet som körs efter installationen kan sätta rättigheterna och " +"ägarskapet för dessa två mappar. I filerna /etc/clamsmtpd.conf och /etc/" +"default/clamsmtp läser skriptet de administrativt tilldelade variablerna " +"TempDirectory, PidFile, User, och Group för att sedan uppdatera de två " +"mapparna." + +#~ msgid "" +#~ "Warning! Use this option at your own risk, and be sure to check directory " +#~ "permissions after running the 'start' or 'restart' commands for the init " +#~ "script." +#~ msgstr "" +#~ "Varning! Använd denna inställning på egen risk och var säker på att " +#~ "kontrollera mapprättigheterna efter att ha kört 'start' eller 'restart' " +#~ "kommandona för init-skriptet." --- clamsmtp-1.10.orig/debian/po/templates.pot +++ clamsmtp-1.10/debian/po/templates.pot @@ -0,0 +1,92 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the clamsmtp package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" --- clamsmtp-1.10.orig/debian/po/vi.po +++ clamsmtp-1.10/debian/po/vi.po @@ -0,0 +1,115 @@ +# Vietnamese Translation for clamsmtp. +# Copyright © 2010 Free Software Foundation, Inc. +# Clytie Siddall , 2005-2010. +# +msgid "" +msgstr "" +"Project-Id-Version: clamsmtp 1.10-2\n" +"Report-Msgid-Bugs-To: clamsmtp@packages.debian.org\n" +"POT-Creation-Date: 2018-02-19 18:35+0100\n" +"PO-Revision-Date: 2010-02-13 18:12+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: LocFactoryEditor 1.8\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Add a clamsmtp system user and group?" +msgstr "Thêm vào hệ thống người dùng và nhóm « clamsmtp » ?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"New installations of clamsmtp install with a system user and group of " +"\"clamsmtp\". The \"clamav\" user is added to the clamsmtp group to allow " +"the clamav-daemon process to view the quarantine directory. If this option " +"is set, the installation process will also update the ownership and " +"permissions of the quarantine and run directories." +msgstr "" +"Mỗi bản cài đặt clamsmtp mới thì cài đặt vào hệ thống dưới người dùng và " +"nhóm « clamsmtp ». Người dùng « clamav » được thêm vào nhóm « clamsmtp » để " +"cho phép tiến trình clamav-daemon xem thư mục quarantine. Bật tùy chọn này " +"thì tiến trình cài đặt cũng cập nhật quyền sở hữu và quyền truy cập đến các " +"thư mục « quarantine » và « run »." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "Fix directory permissions?" +msgstr "Sửa chữa các quyền hạn thư mục ?" + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"clamsmtpd needs read and write permissions to the virus spool directory, and " +"the run directory in which its PID file is created. Additionally, the Clam " +"AV daemon must have read access to the spool directory to scan for viruses." +msgstr "" +"Trình nền clamsmptd yêu cầu quyền đọc và ghi vào thư mục ống chỉ vi-rút và " +"thư mục « run » trong đó tập tin PID riêng được tạo. Hơn nữa, trình nền Clam " +"AV phải có quyền đọc vào thư mục ống chỉ, để quét tìm vi-rút." + +#. Type: boolean +#. Description +#: ../templates:2001 +#, fuzzy +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf file for the " +"administratively assigned TempDirectory, PidFile, User, and Group variables, " +"and then update the two directories appropriately." +msgstr "" +"Văn lệnh cuối cùng cài đặt có khả năng sửa chữa quyền hạn và quyền sơ hữu " +"của hai thư mục này. Nó sẽ quét hai tập tin « /etc/clamsmtpd.conf » và « /" +"etc/default/clamsmtp » tìm các biến « TempDirectory » (thư mục tạm thời), « " +"PidFile » (tập tin PID), « User » (người dùng), và « Group » (nhóm), sau đó " +"cập nhật thích hợp hai thư mục đó." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"Be sure to check directory permissions after running the init script with " +"the parameters 'start' or 'restart'." +msgstr "" +"Hãy kiểm tra lại các quyền truy cập đến thư mục, sau khi chạy văn lệnh sơ " +"khởi với tham số « start » hay « restart »." + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "Purge spool directory on --purge?" +msgstr "Tẩy thư mục ống chỉ khi tẩy (--purge) ?" + +#. Type: boolean +#. Description +#: ../templates:3001 +msgid "" +"The virus spool directory may contain quarantined viruses that can be " +"removed automatically when purging the package." +msgstr "" +"Thư mục ống chỉ vi-rút có thể chứa vi-rút được kiểm dịch mà cũng gỡ bỏ được " +"khi tẩy gói phần mềm." + +#. Type: boolean +#. Description +#: ../templates:2001 +msgid "" +"The post-installation script can fix the permissions and ownership of these " +"two directories. It will consult the /etc/clamsmtpd.conf and /etc/default/" +"clamsmtp files for the administratively assigned TempDirectory, PidFile, " +"User, and Group variables, and then update the two directories appropriately." +msgstr "" +"Văn lệnh cuối cùng cài đặt có khả năng sửa chữa quyền hạn và quyền sơ hữu " +"của hai thư mục này. Nó sẽ quét hai tập tin « /etc/clamsmtpd.conf » và « /" +"etc/default/clamsmtp » tìm các biến « TempDirectory » (thư mục tạm thời), « " +"PidFile » (tập tin PID), « User » (người dùng), và « Group » (nhóm), sau đó " +"cập nhật thích hợp hai thư mục đó." --- clamsmtp-1.10.orig/debian/postfix.html +++ clamsmtp-1.10/debian/postfix.html @@ -0,0 +1,82 @@ + + + +ClamSMTP: Using with Postfix + + + + +

ClamSMTP: Using with Postfix

+ +

Postfix supports filtering mail through +a filter that acts like an SMTP server. This is how clamsmtp was +designed. Postfix supports +before-queue and +after-queue filters. +Before-queue filters make a poor choice for anti-virus scanners so this +document will describe the latter. For more details on why and how this all +works, read the above links on the Postfix site.

+ +

Put the following lines in your Postfix main.cf file:

+ +
content_filter = scan:127.0.0.1:10025
+receive_override_options = no_address_mappings
+ +

The content_filter tells Postfix to send all mail through the +service called 'scan' on port 10025. We'll set up clamsmtpd to listen +on this port later.

+ +

Next we add the following to the Postfix master.cf file:

+ +
# AV scan filter (used by content_filter)
+scan      unix  -       -       n       -       16      smtp
+        -o smtp_send_xforward_command=yes
+# For injecting mail back into postfix from the filter
+127.0.0.1:10026 inet  n -       n       -       16      smtpd
+        -o content_filter=
+        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
+        -o smtpd_helo_restrictions=
+        -o smtpd_client_restrictions=
+        -o smtpd_sender_restrictions=
+        -o smtpd_recipient_restrictions=permit_mynetworks,reject
+        -o mynetworks_style=host
+        -o smtpd_authorized_xforward_hosts=127.0.0.0/8
+ +

Make sure there's no spaces around the equal signs or commas in the text +you added. The first 2 lines create the 'scan' service. The rest set up +a service for accepting mail back into postfix. All the options prevent a +mail loop as well as relax address checking and the like, since that's +already been done.

+ +

Specify the OutAddress option in clamsmtpd.conf as +127.0.0.1:10026. Make sure to run it as the same user as you run +clamd or they'll have problems +accessing each other's temporary files. You can use the User option +to accomplish that.

+ +

Now start up clamsmtpd like this.

+ +
# clamsmtpd -f /path/to/clamsmtpd.conf
+ +

Make sure clamd (the ClamAV daemon) is running, and its listening +on the socket you specified. You can set this in clamav.conf using the +LocalSocket or TCPSocket directives (only uncomment one). +Also make sure the ScanMail directive is on.

+ +

And that's all there is to it. If something's not working, check mail-queues, +logs, etc... If you have trouble with clamsmtpd or send me a bug report, +be sure to try the debug log mode which can be a valuable aid in figuring things +out:

+ +
# clamsmtpd -d 4 -f /path/to/clamsmtpd.conf
+ +

[Note: You may have to keep +this in mind if +you're trying out the above setup in a jail, and change the +smtpd_authorized_xforward_hosts line accordingly.]

+ +
Copyright 2002, N. Nielsen   [ clamsmtp | +home page ]
+ + + --- clamsmtp-1.10.orig/debian/postinst +++ clamsmtp-1.10/debian/postinst @@ -0,0 +1,198 @@ +#!/bin/sh +# +# postinst -- clamsmtp post-installation configuration script +# +set -e + +if [ ${DEBUG} ] ; then set -x ; fi + +CUSER=clamsmtp +CGROUP=clamsmtp +CONFFILE=/etc/clamsmtpd.conf +RUNDIR=/var/run/clamsmtp +SPOOLDIR=/var/spool/clamsmtp + +# If this is an upgrade, get current configuration +if [ -n "$2" ] ; then + # Set up environment -- I know. Hackery, but useful. + if [ -f ${CONFFILE} ] ; then + eval `sed -e ' +# Delete comments +/^#.*/d + +# Delete blank lines +/^[[:space:]]*$/d + +# Replace first ": " with "=" and surround with quotes +s/^\([a-zA-Z]*\):[[:space:]]*\(.*\)$/\1\="\2";/ +' < ${CONFFILE}` || true + fi + + # Pull in config file settings if available + # Set default variables + RUNDIR=`dirname ${Pidfile:-"/var/run/clamsmtp/clamsmtpd.pid"}` + SPOOLDIR=${TempDirectory} + CUSER=${User} +fi + +# +# NOTE: I can't place the debconf source at the top of the file because I'm +# using sed to grab configuration information. Weirdness happens otherwise and +# postinst hangs. +# +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +# Fix directory permissions +fixperms () { + if (getent passwd ${CUSER}>/dev/null) && \ + (getent group ${CGROUP}>/dev/null) ; then + # Spool directory: Don't touch /tmp or /var/tmp + if [ "x${SPOOLDIR}" != "x/tmp" -a "x${SPOOLDIR}" != "x/var/tmp" ] ; then + chown ${CUSER}':'${CGROUP} ${SPOOLDIR} || return 1 + chmod 750 ${SPOOLDIR} || return 1 + fi + fi + + return 0 +} + +# Create directories if new installation configure step +install_dirs() { + # Build the spool directory if it doesn't exist + if [ ! -d ${SPOOLDIR} ] ; then + install -m 750 -d ${SPOOLDIR} || return 1 + fixperms + fi + + # Build the run directory if it doesn't exist + if [ ! -d ${RUNDIR} ] ; then + install -o ${CUSER} -g ${CGROUP} -m 755 -d ${RUNDIR} || return 2 + fi + + return 0 +} + +# Add the clamsmtp user and group +add_user_group() { + if (getent passwd ${CUSER}>/dev/null) && \ + (getent group ${CGROUP}>/dev/null) ; then + return 1 + fi + + # Build the spool directory if it doesn't exist. + if [ ! -d ${SPOOLDIR} ] ; then + install -m 750 -d ${SPOOLDIR} || return 1 + fi + + adduser --system --group --no-create-home --quiet \ + --disabled-login --disabled-password \ + --shell /bin/false --home ${SPOOLDIR} ${CUSER} || return 2 + + fixperms + + return 0 +} + +add_clamav2group() { + # Add the clamav user to the clamsmtp group -- we can assume clamav exists + # because of the dependency on clamav-daemon + if ! (getent group ${CGROUP} | grep -q clamav>/dev/null) ; then + adduser clamav ${CGROUP} || return $? + + # We need to restart the clamav-daemon process to use the new + # permissions. Although currently the restart functionality of + # the clamav-daemon init script simply calls start/stop, we + # cannot count on that for the future. + invoke-rc.d clamav-daemon stop && \ + invoke-rc.d clamav-daemon start + fi + + return 0 +} + +# Add CUSER to mail aliases if it isn't there +add_mail_alias () { + AFILE=/etc/aliases + # Add clamsmtp alias for root + if [ ! -f ${AFILE} -o ! -L ${AFILE} ]; then + return 1 + fi + + if ! grep -qi "^${CUSER}" ${AFILE}; then + echo "${CUSER}: root" >> ${AFILE} + newal=`which newaliases` || true + if [ $newal ] && [ -x $newal ]; then + newaliases || return 2 + fi + fi + + return 0 +} + +# Update the configuration file with CUSER +update_config () { + if (egrep -q "^User: ${CUSER}" ${CONFFILE}); then + # config file is correct + return 0 + fi + + TMP=`tempfile` || return 1 + cat ${CONFFILE} > ${TMP} || return 2 + sed -e "s/^\(User:\).*/\1 ${CUSER}/" < ${TMP} > ${CONFFILE} || return 3 + + return 0 +} + +case $1 in + configure) + # Create new clamsmtp system user/group? + db_get clamsmtp/addusergroup + if [ "${RET}" = "true" ] ; then + CUSER=clamsmtp + CGROUP=clamsmtp + + # Add the clamsmtp user and group + if (add_user_group) ; then + # Make sure it only happens once + db_set clamsmtp/addusergroup false || true + # set do-fixperms true + db_set clamsmtp/do-fixperms true + else + # We couldn't add clamsmtp for some reason + db_set clamsmtp/do-fixperms false + fi + + # Add clamav to group + add_clamav2group + + # Add clamsmtp to aliases file + add_mail_alias || true + + # Update configuration file + update_config + + fi + + # New installation + if [ -z "$2" ] ; then + install_dirs + # Upgrade + else + # Should we fix permissions? + db_get clamsmtp/do-fixperms + if [ "${RET}" = "true" ] ; then + fixperms + db_set clamsmtp/do-fixperms false + fi # END do-fixperms + fi + ;; +esac + +# Stop debconf before the init.d script starts -- uses sed again +db_stop + +#DEBHELPER# + +exit 0 --- clamsmtp-1.10.orig/debian/postrm +++ clamsmtp-1.10/debian/postrm @@ -0,0 +1,41 @@ +#!/bin/sh +# +# postrm -- clamsmtp post-remove maintainer script +# +set -e + +if [ "$1" = "purge" ]; then + if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + # Purge the clamsmtp spool directory? + db_get clamsmtp/purge || true + if [ "${RET:-false}" = "true" -a -d /var/spool/clamsmtp ] ; then + rm -rf /var/spool/clamsmtp || true + elif [ -d /var/spool/clamsmtp ] ; then + rmdir /var/spool/clamsmtp 2>/dev/null || true + fi + fi + + if [ -d /var/run/clamsmtp ] ; then + rm -rf /var/run/clamsmtp + fi + + # Remove clamav from clamsmtp group + if (getent group clamsmtp|grep clamav>/dev/null) ; then + if which deluser >/dev/null; then + deluser clamav clamsmtp || true + fi + if [ -x /etc/init.d/clamsmtp ]; then + # Attempt to stop and start clamav-daemon, getting + # cleaned group permissions. + (invoke-rc.d clamav-daemon stop && \ + invoke-rc.d clamav-daemon start) || true + fi + fi +fi + +#DEBHELPER# + +if [ "$1" = "purge" ]; then + db_stop || true +fi --- clamsmtp-1.10.orig/debian/preinst +++ clamsmtp-1.10/debian/preinst @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +# Remove a no-longer used conffile +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.obsolete ..." + mv -f "$CONFFILE" "$CONFFILE".obsolete + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" lt 1.10-15; then + rm_conffile clamsmtp /etc/default/clamsmtp + fi + ;; +esac + +exit 0 --- clamsmtp-1.10.orig/debian/rules +++ clamsmtp-1.10/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ --with quilt,autoreconf --- clamsmtp-1.10.orig/debian/source/format +++ clamsmtp-1.10/debian/source/format @@ -0,0 +1 @@ +1.0 --- clamsmtp-1.10.orig/debian/templates +++ clamsmtp-1.10/debian/templates @@ -0,0 +1,33 @@ +Template: clamsmtp/addusergroup +Type: boolean +Default: true +_Description: Add a clamsmtp system user and group? + New installations of clamsmtp install with a system user and group of + "clamsmtp". The "clamav" user is added to the clamsmtp group to + allow the clamav-daemon process to view the quarantine directory. If + this option is set, the installation process will also update the ownership + and permissions of the quarantine and run directories. + +Template: clamsmtp/do-fixperms +Type: boolean +Default: false +_Description: Fix directory permissions? + clamsmtpd needs read and write permissions to the virus spool directory, + and the run directory in which its PID file is created. Additionally, the + Clam AV daemon must have read access to the spool directory to scan for + viruses. + . + The post-installation script can fix the permissions and ownership of these + two directories. It will consult the /etc/clamsmtpd.conf file for the + administratively assigned TempDirectory, PidFile, User, and Group variables, + and then update the two directories appropriately. + . + Be sure to check directory permissions after running the init script with the + parameters 'start' or 'restart'. + +Template: clamsmtp/purge +Type: boolean +Default: true +_Description: Purge spool directory on --purge? + The virus spool directory may contain quarantined viruses that can be removed + automatically when purging the package. --- clamsmtp-1.10.orig/debian/transparent.html +++ clamsmtp-1.10/debian/transparent.html @@ -0,0 +1,109 @@ + + + +ClamSMTP: Transparent Proxying + + + + +

ClamSMTP: Transparent Proxying

+ +

A transparent proxy is when you grab a certain type of traffic at your +gateway or router and send it through a proxy without the knowledge of the +user or client. Here's a simple description of how to use ClamSMTP +as a transparent proxy to do virus checking on SMTP traffic going in or out +of your network.

+ +

You should already be familiar with routing and network administration. +Those topics are not touched on here.

+ +

Note that certain features of SMTP are disabled when going through +clamsmtpd, most notably SSL/TLS. Authentication does however +work. Transparent proxying has only been tested in recent versions of +FreeBSD (using ipfw) and Linux (using iptables).

+ +

This setup assumes the clamsmtpd proxy is running on the same +machine as the gateway. Running it on a different machine is possible, but +more complicated to setup.

+ +

ClamSMTP Setup

+ +
    +
  • Make sure you're using ClamSMTP version 0.8 or later.
  • +
  • Enable the TransparentProxy option in the config file. + The OutAddress should be removed as the out address will + be determined by the original destination of the SMTP connection.
  • +
  • Be sure you have enough connections to support all the anticipated + SMTP traffic. Use the MaxConnections option to adjust this.
  • +
  • The examples below assume clamsmtpd is listening on the + default port of 10025.
  • +
  • Make sure clamd (the ClamAV daemon) is running, and its + listening on the socket you specified. You can set this in + clamav.conf using the LocalSocket or + TCPSocket directives (only uncomment one). Also make sure + the ScanMail directive is on.
  • +
  • As usual, make sure to start clamsmtpd as the same user you + run clamd, usually it's called clamav. +
+ +

FreeBSD

+ +

Your kernel needs support for ipfw. You can either load this as a kernel +module by executing the following:

+ +
# kldload ipfw.ko
+ +

Or you can build it into your kernel by adding the following lines to +your kernel config file. See the +FreeBSD Handbook for info on how to build a kernel. Make sure to install and +reboot with the new kernel before proceeding.

+ +
IPFIREWALL
+IPFIREWALL_FORWARD
+ +

Make sure IP forwarding (routing) is turned on. It probably already is +as transparent proxying happens on a router.

+ +

Run the following command. It adds a line to your firewall to route +traffic to clamsmtpd.

+ +
# ipfw add 100 fwd 127.0.0.1,10025 tcp from not me to any 25
+ +

Linux

+ +

If your kernel does not contain transparent proxy support you need to +recompile your kernel with the following options. Recompling your linux +kernel is beyond the scope of this document. You can find many tutorials +on the subject online. After rebuilding and installing your new kernel +make sure to reboot.

+ +
+* Under General Setup
+    o Networking support
+    o Sysctl support
+* Under Networking Options
+    o Network packet filtering
+    o TCP/IP networking
+    o Fast switching: *NO*
+* Under Networking Options -> IP: Netfilter Configuration
+    o Connection tracking
+    o IP tables support
+    o Full NAT
+    o REDIRECT target support
+* Under File Systems
+    o /proc filesystem support 
+
+ +

Make sure IP forwarding (routing) is turned on. It probably already is +as transparent proxying happens on a router.

+ +

Run the following command and add it to your boot scripts. Make sure to +substitute your NIC name in the command below:

+ +
# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 10025
+ +
Copyright 2002, N. Nielsen   [ clamsmtp | +home page ]
+ + + --- clamsmtp-1.10.orig/debian/watch +++ clamsmtp-1.10/debian/watch @@ -0,0 +1,9 @@ +# +# watch -- uscan config file for clamsmtp +# +# Because I manage this package with tla-buildpackage, I do not want uupdate +# stomping all over my working directory. No action is taken. +# +version=2 +http://thewalter.net/stef/software/clamsmtp/ clamsmtp-([\w+\d+\.]+|\d+)\.tar\.gz debian +