Hello community,
here is the log from the commit of package amavisd-new for openSUSE:12.1:Update:Test checked in at 2012-01-05 17:46:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update:Test/amavisd-new (Old)
and /work/SRC/openSUSE:12.1:Update:Test/.amavisd-new.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "amavisd-new", Maintainer is "varkoly@suse.com"
Changes:
--------
New Changes file:
--- /dev/null 2010-08-26 16:28:41.000000000 +0200
+++ /work/SRC/openSUSE:12.1:Update:Test/.amavisd-new.new/amavisd-new.changes 2012-01-05 17:46:02.000000000 +0100
@@ -0,0 +1,988 @@
+-------------------------------------------------------------------
+Wed Nov 2 10:05:41 UTC 2011 - varkoly@suse.com
+
+- Fix amavisd-milter binary name
+
+-------------------------------------------------------------------
+Wed Oct 26 08:58:10 UTC 2011 - wr@rosenauer.org
+
+- obsolete amavisd-milter package
+
+-------------------------------------------------------------------
+Thu Oct 13 13:11:20 UTC 2011 - varkoly@suse.com
+
+- Integrate amavisd-milter
+
+-------------------------------------------------------------------
+Tue Oct 11 14:22:57 UTC 2011 - varkoly@suse.com
+
+- bnc#718025 - amavisd-new 2.7.0 fails to start
+
+-------------------------------------------------------------------
+Sat Sep 17 11:02:03 UTC 2011 - jengelh@medozas.de
+
+- Remove redundant tags/sections from specfile
+
+-------------------------------------------------------------------
+Tue Sep 13 13:24:37 UTC 2011 - varkoly@suse.com
+
+- update to 2.7.0 With a synergy of four solutions, using amavisd-new
+ in a pre-queue filtering setup became a sensible / better behaved solution:
+
+ - old helper programs amavis.c and amavis-milter.c are no longer distributed
+ with the package, along with the whole helper-progs subdirectory.
+ As a milter client please use the more modern 'amavisd-milter' package by
+ Petr Rehor, available at http://sourceforge.net/projects/amavisd-milter/
+
+ - the "smtpd_proxy_options=speed_adjust" Postfix option, available since
+ Postfix 2.7.0 (20091101), improves decoupling between SMTP clients
+ and a content filter in a proxy setup, reducing the number of content
+ filtering processes needed for the same mail load. With this option
+ turned on, a Postfix SMTP server receives the entire message before
+ connecting to a before-queue content filter;
+
+ - a master_deadline option and its API equivalent, available in SpamAssassin
+ since version 3.3.0, allows for time limiting on lengthy rules checking,
+ while still providing results when a time limit is exceeded; this makes
+ it more suitable for time-sensitive setups like a pre-queue filtering setup;
+
+ - reworked sub-task time limiting in amavisd, along with its counterpart
+ solution in SpamAssassin, makes it better suited to a real-time nature
+ of pre-queue filtering setups, where one has no control over how long
+ SMTP clients are willing to wait at the data-end stage;
+
+ - a re-purposed command line option 'reload' now does a warm restart,
+ keeping sockets available to an MTA client at all times, thus reducing
+ a chance that an MTA would even notice a content filter's warm restart.
+
+-------------------------------------------------------------------
+Tue Aug 30 15:22:40 UTC 2011 - varkoly@suse.com
+
+- bnc#710289 - amavisd-new: fails rpmlint check non-ghost-in-var-run
+
+-------------------------------------------------------------------
+Tue Jul 12 16:02:45 UTC 2011 - varkoly@novell.com
+
+- Enable clamav as integrated scanner
+- Enable Avira Antivir personal
+
+-------------------------------------------------------------------
+Tue May 24 08:02:50 UTC 2011 - varkoly@suse.de
+
+- update to 2.6.6
+ - amavisd-release was not sending a 'mail_file' attribute when a quarantined
+ message was a non-compressed file in a single-level directory quarantine
+
+- quarantining to SQL was sporadically failing, reporting some unrelated
+ random error (like 'not available' or 'OpenSSL error: header too long');
+
+- avoid a warning "_WARN: Use of uninitialized value in string eq at ...
+ line 275." when an SQL-based white/black-listing is used;
+
+- wrap the sql clause SET NAMES 'utf8' so that only a warning at
+ a log level 2 is issued if an SQL server does not understand the
+ command (SQLite, old versions of MySQL) instead of aborting;
+
+- when a back-end MTA rejected a message, amavisd would send a non-delivery
+ status notification, but also propagate the reject status back, which is
+ wrong, only one or the other response would be appropriate. A fix also
+ allows choosing either a D_REJECT, D_BOUNCE or D_DISCARD response for
+ such a case, configurable through %final_destiny_by_ccat at a CC_MTA
+ entry, defaulting to D_REJECT;
+
+-------------------------------------------------------------------
+Mon Feb 21 18:57:25 UTC 2011 - varkoly@novell.com
+
+- bnc#663726 - amavisd-new: group of /var/spool/amavis conflicts with av programms
+
+-------------------------------------------------------------------
+Sun Feb 20 10:41:40 UTC 2011 - coolo@novell.com
+
+- unrar should not be required (non-free software now)
+
+-------------------------------------------------------------------
+Thu Jun 24 10:18:46 UTC 2010 - varkoly@novell.com
+
+- bnc#614316 - amavisd-new: amavisd-new/README.SuSE does not match /etc/amavisd.conf
+
+-------------------------------------------------------------------
+Mon May 10 10:49:10 UTC 2010 - varkoly@novell.com
+
+- bnc#600409 - amavisd not starting after system crash because of stale pid file
+
+-------------------------------------------------------------------
+Mon Jul 20 14:52:09 CEST 2009 - varkoly@suse.de
+
+- bnc#521366 - Amavisd-new sends bounces when it isn't allowed to do so (backscatter!)
+- update to 2.6.4
+BUG FIXES
+
+- amavisd failed to start when spam scanning was disabled either
+ by @bypass_spam_checks_maps=(1) or by @spam_scanners=(), giving:
+ Can't locate object method "new" via package "Amavis::SpamControl"
+- several decoders failed to propagate "Exceeded storage quota" exception,
+ so the protection of AV scanners against mail bombs was ineffective;
+- milter usage (AM.PDP): verbatim header edits inserted a header body of "1"
+ instead of the correct string, for example: "Authentication-Results: 1";
+- updated AV entry for BitDefender's bdscan to recognize tabs around a colon
+ in its output; contributed by Steve;
+- fix parsing of a combined result from DSPAM (option --classify), as
+ earlier versions of DSPAM did not include a signature with a combined
+ result line;
+- when logging to SQL (pen pals), the msgs.message_id field always received
+ a value '1' instead of a Message-Id, thus making pen pals less effective
+ (only matching on sender/recipient pairs worked, not on message threads)
+ and letting some bounces bypass a bounce killer; bug was introduced with
+ version 2.6.2;
+- timer was not reset after a persistent failure to connect to a daemonized
+ virus scanner, so a subsequent call to a backup scanner only had 10 seconds
+ available before it was aborted, which was often too short for a command
+ line backup scanner like clamscan;
+- if a virus scanner interface did not find a name of a virus in the output
+ of a virus scanner (despite noticing infection), the infection was ignored;
+- added missing /m flags to regular expressions in AV entries
+ (a bug is revealed with Perl 5.10.0; previous versions of Perl happened
+ to work, unintentionally accepting a /m flag if added late during a regexp
+ evaluation);
+- $banned_namepath_re setting only worked globally, but was not usable in
+ policy banks;
+- do_uncompress: signal run_command_copy() errors, instead of returning a
+ status, thus allowing decompose_part() to detect 'Exceeded storage quota'
+ or 'Maximum number of files exceeded', and flag mail as CC_UNCHECKED;
+- if $mailfrom_notify_admin was not specified in a configuration file but
+ defaulted to an e-mail address in $hdrfrom_notify_admin, the following
+ was reported (due to missing angle brackets) on an attempt to submit
+ a notification:
+ (!)SEND via SMTP: virusalert@example.com -> ...
+ 501 5.1.7 Bad sender address syntax
+ (!)FAILED to notify admin: 501 5.1.7 Failed, id=40690-23,
+ from MTA([::1]:10027): 501 5.1.7 Bad sender address syntax
+ Notification was not sent, the rest of the processing was unaffected;
+- fetch_modules: only suppress the "Can't locate ... in @INC" diagnostics
+ if exactly the requested module is missing, but do show the error if some
+ subordinate module is missing and preventing the requested module to be
+ loaded;
+- do_unrar: recognize an information line with a '<->';
+- fixed a syntax error in LDAP.ldif;
+- fixed a bug in SpamdClient;
+
+NEW FEATURES SUMMARY
+- provide a true SNMP agent and a MIB, facilitating monitoring the health
+ of a content filtering system, its performance and mail characteristics;
+- a new AV interface to SMTP-based antivirus scanners;
+- allow customizing SMTP-status response reason text for blocked messages;
+- prevent inserting fake copies of certain important mail header fields
+ without breaking a DKIM signature;
+- added a configuration variable @client_ipaddr_policy, which maps smtp
+ client's IP address lookup lists to a policy bank name. This allows for
+ loading a policy bank based on a client IP address, and generalizes a
+ formerly hard-wired mapping of @mynetworks_maps into 'MYNETS'.
+- large messages beyond $sa_mail_body_size_limit are now partially passed
+ to SpamAssassin and other spam scanners for checking: a copy passed to
+ a spam scanner is truncated near or slightly past the indicated limit.
+ Large messages are no longer given an almost free passage through spam
+ checks.
+- supports passing an extra argument suppl_attrib to $spamassassin->parse,
+ as recognized by SpamAssassin 3.3.0, passing a set of DKIM signature
+ objects to a SpamAssassin's plugin DKIM, which saves having to do the
+ same signature verification operation again within a plugin, and provides
+ uncrippled signatures to SpamAssassin even when a large message is
+ truncated by amavisd and only partially submitted to spam analysis;
+- add global variables $sa_configpath and $sa_siteconfigpath (undef by
+ default), which are passed to SpamAssassin as options 'rules_filename'
+ and 'site_rules_filename' during its initialization call; this makes
+ it easier to run multiple instances of amavisd, each with a different
+ SpamAssassin configuration, using the same amavisd configurations file
+ by taking advantage of option -i; suggested by Noah Baker;
+- report process resource usage at log level 2 by calling getrusage(1)
++++ 791 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.1:Update:Test/.amavisd-new.new/amavisd-new.changes
New:
----
_link
activate_virus_scanner.diff
amavisd-milter.tar.bz2
amavisd-new-rpmlintrc
amavisd-new.changes
amavisd-new.spec
amavisd-new.tar.bz2
rc.amavis
sysconfig.amavis
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ amavisd-new.spec ++++++
#
# spec file for package amavisd-new
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: amavisd-new
Summary: High-Performance E-Mail Virus Scanner
Version: 2.7.0
Release: 1
License: GPLv2+
Group: Productivity/Networking/Security
Url: http://www.ijs.si/software/amavisd/
BuildRequires: sendmail sendmail-devel
Requires: gzip bzip2 unarj zoo sharutils file
Requires: perl-Compress-Zlib perl-Convert-UUlib perl-IO-stringy
Requires: perl-MIME-tools perl-MailTools perl-Archive-Tar perl-Unix-Syslog
Requires: perl-Convert-TNEF perl-Archive-Zip perl-Net-Server perl-spamassassin
Requires: perl-BerkeleyDB perl-Mail-DKIM
Requires: smtp_daemon
%if 0%{?suse_version} < 1120
Requires: lha
%endif
Recommends: unrar
Recommends: clamav perl-spamassassin
Recommends: perl-DBI
Recommends: perl-ldap
Recommends: perl-Authen-SASL
Recommends: perl-Mail-ClamAV
Recommends: %{name}-docs = %{version}
Provides: amavisd-milter = 1.5.0
Obsoletes: amavisd-milter <= 1.5.0
PreReq: coreutils net-tools sed pwdutils
PreReq: %insserv_prereq
PreReq: util-linux
Source0: amavisd-new.tar.bz2
Source1: sysconfig.amavis
Source2: rc.amavis
Source3: amavisd-new-rpmlintrc
Source4: amavisd-milter.tar.bz2
Patch1: activate_virus_scanner.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define avspool /var/spool/amavis
%define avdb /var/spool/amavis/db
%define avquarantine /var/spool/amavis/virusmails
%define logmsg logger -t %{name}/rpm
%define avuser vscan
%define avgroup vscan
%description
Amavisd-new is a high-performance interface between mailer (MTA) and
content checkers: virus scanners or SpamAssassin. It talks to the MTA
via (E)SMTP, LMTP. It works with the
following MTAs:
- postfix
- sendmail (sendmail-milter)
- exim
%package docs
Summary: Documentation for the High-Performance E-Mail Virus Scanner
Group: Documentation/Other
License: GPLv2+
Recommends: %{name} = %{version}
%description docs
Amavisd-new is a high-performance interface between mailer (MTA) and
content checkers: virus scanners or SpamAssassin. It talks to the MTA
via (E)SMTP, LMTP.
This package contains the documentation and Relase-Notes.
%prep
%setup -q -a 4
%patch1
for i in $(find -maxdepth 1 -name "amavisd*" | sed s#./##); do
if [[ $i == *patch ]] ; then continue; fi
if [[ $i == *patch ]] ; then continue; fi
if [[ $i == *spec ]] ; then continue; fi
if [[ $i == amavisd-milter ]] ; then continue; fi
sed -i "s|\$daemon_user = 'vscan';|\$daemon_user = '%{avuser}';|g; \
s|\$daemon_group = 'vscan';|\$daemon_group = '%{avgroup}';|g; \
s|^# \$MYHOME =.*|\$MYHOME = '%{avspool}';|g; \
s|/var/amavis/db|%{avdb}|g; \
s|/var/virusmails|%{avquarantine}|g; \
s|/var/amavis/amavisd.sock|%{avspool}/amavisd.sock|g; \
s|/var/run/clamav/clamd|/var/lib/clamav/clamd-socket|g" $i
done
# ---------------------------------------------------------------------------
%build
cd amavisd-milter
%configure --localstatedir="/var/spool/amavis"
make
# ---------------------------------------------------------------------------
%install
mkdir -p $RPM_BUILD_ROOT/%{avquarantine}
mkdir -p $RPM_BUILD_ROOT/%{avspool}/{tmp,var}
mkdir -p $RPM_BUILD_ROOT/%{avdb}
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
mkdir -p $RPM_BUILD_ROOT/etc/openldap/schema
mkdir -p $RPM_BUILD_ROOT/%{perl_vendorlib}
mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
install -m 644 $RPM_SOURCE_DIR/sysconfig.amavis $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 755 amavisd $RPM_BUILD_ROOT/%{_sbindir}/amavisd
install -m 755 amavisd-agent $RPM_BUILD_ROOT/%{_sbindir}/amavisd-agent
install -m 755 amavisd-nanny $RPM_BUILD_ROOT/%{_sbindir}/amavisd-nanny
install -m 755 amavisd-release $RPM_BUILD_ROOT/%{_sbindir}/amavisd-release
install -m 755 p0f-analyzer.pl $RPM_BUILD_ROOT/%{_sbindir}/p0f-analyzer.pl
install -m 644 amavisd.conf $RPM_BUILD_ROOT/etc/amavisd.conf
install -m 755 %{S:2} $RPM_BUILD_ROOT/etc/init.d/amavis
ln -s ../../etc/init.d/amavis $RPM_BUILD_ROOT/%{_sbindir}/rcamavis
install -m 644 LDAP.schema $RPM_BUILD_ROOT/etc/openldap/schema/amavisd-new.schema
install -m 644 JpegTester.pm $RPM_BUILD_ROOT/%{perl_vendorlib}/JpegTester.pm
cd amavisd-milter
make install DESTDIR="$RPM_BUILD_ROOT"
%pre
/usr/sbin/groupadd -r %{avgroup} 2> /dev/null || :
%{logmsg} "Added group %{avgroup} for package %{name}"
/usr/sbin/useradd -r -o -g %{avgroup} -u 65 -s /bin/false -c "Vscan account" -d %{avspool} %{avuser} 2> /dev/null || :
/usr/sbin/usermod %{avuser} -g %{avgroup} 2> /dev/null || :
%{logmsg} "Added user %{avuser} for package %{name}"
%preun
%stop_on_removal amavis
%post
%{fillup_and_insserv -n amavis amavis}
# Update ?
if [ ${1:-0} -gt 1 ]; then
: OK currently nothing to do
else
if [ -r etc/aliases ]; then
if ! grep -q "^virusalert:" etc/aliases; then
echo -e "virusalert:\troot" >> etc/aliases
%{logmsg} "Added alias for user virusalert to /etc/aliases"
if [ -x usr/bin/newaliases ]; then
usr/bin/newaliases &>/dev/null || true
else
%{logmsg} "Cannot execute newaliases. Please run it manually."
fi
fi
fi
fi
%postun
%restart_on_update amavis
%{insserv_cleanup}
%files
%defattr(-,root,root)
%doc AAAREADME.first LICENSE INSTALL
%doc LDAP.ldif
%dir /etc/openldap
%dir /etc/openldap/schema
%dir /usr/lib/tmpfiles.d
%config /etc/init.d/amavis
%config(noreplace) /etc/amavisd.conf
%config(noreplace) /etc/openldap/schema/amavisd-new.schema
/var/adm/fillup-templates/sysconfig.amavis
%{_sbindir}/*
%{perl_vendorlib}/JpegTester.pm
%defattr(0750,%{avuser},%{avgroup})
%dir %{avspool}
%dir %{avspool}/tmp
%dir %{avspool}/db
%dir %{avspool}/var
%dir %{avquarantine}
%files docs
%defattr(0644,root,root,0755)
%doc RELEASE_NOTES
%doc README_FILES
%doc test-messages
%doc amavisd.conf-*
%doc MANIFEST TODO
%doc test-messages
%doc %{_mandir}/man8/amavisd-milter*
%changelog
++++++ _link ++++++
<link project="openSUSE:12.1" package="amavisd-new" baserev="aae93031c692ae15ceddb4c01b2ac18e">
<patches>
<branch/>
</patches>
</link>
++++++ activate_virus_scanner.diff ++++++
--- amavisd.conf 2011-07-01 18:21:01.000000000 +0200
+++ ../amavisd-new-2.7.0/amavisd.conf 2011-09-13 15:39:02.360975002 +0200
@@ -349,6 +349,12 @@
@av_scanners = (
+### Avira for UNIX 3.x
+## from http://forum.avira.com/wbb/index.php?page=Thread&postID=812607 ###
+['Avira AntiVir', ['avscan'],
+ '-s --batch --alert-action=none {}', [0], qr/(?:ALERT|FUND):/m,
+ qr/(?:ALERT|FUND): (.[^;]+) ;/m ],
+
# ### http://www.sophos.com/
# ['Sophos-SSSP',
# \&ask_daemon, ["{}", 'sssp:/var/run/savdi/sssp.sock'],
@@ -371,10 +377,10 @@
# settings for the SAVAPI3.conf: ArchiveScan=1, HeurLevel=2, MailboxScan=1
# ### http://www.clamav.net/
-# ['ClamAV-clamd',
-# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
-# qr/\bOK$/m, qr/\bFOUND$/m,
-# qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
+['ClamAV-clamd',
+ \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
+ qr/\bOK$/m, qr/\bFOUND$/m,
+ qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
# # NOTE: run clamd under the same user as amavisd, or run it under its own
# # uid such as clamav, add user clamav to the amavis group, and then add
# # AllowSupplementaryGroups to clamd.conf;
++++++ amavisd-new-rpmlintrc ++++++
# use the old name for init script
addFilter("incoherent-init-script-name.*amavis")
# amavis depends on a lot of perl-modules, so this is not really needed:
addFilter("no-dependency-on.*perl-base")
# dont rename the package for one single perl module:
addFilter("perl5-naming-policy-not-applied.*JpegTester.pm")
++++++ rc.amavis ++++++
#! /bin/sh
# Copyright (c) 2008 SuSE Linux AG Nuernberg, Germany.
#
# Author: Carsten Hoeger , 2003
#
# /etc/init.d/amavis
# and its symbolic link
# /usr/sbin/rcamavis
#
### BEGIN INIT INFO
# Provides: amavis
# Required-Start: $remote_fs
# Should-Start: $named clamd
# Should-Stop: $named clamd
# Required-Stop: $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Start amavisd-new
# Description: Amavisd-new is a high-performance interface between mailer (MTA) and
# content checkers: virus scanners or SpamAssassin. It talks to the MTA
# via (E)SMTP, LMTP, or by using helper programs.
### END INIT INFO
AMAVISD_BIN=/usr/sbin/amavisd
AMAVIS_MILTER_BIN=/usr/sbin/amavisd-milter
AMAVIS_SYSCONFIG=/etc/sysconfig/amavis
AMAVIS_CONF=/etc/amavisd.conf
AMAVIS_PID=/var/spool/amavis/amavisd.pid
AMAVIS_MILTER_SOCK=local:/var/run/amavis/amavis-milter.sock
# Check for missing binaries (stale symlinks should not happen)
# Note: Special treatment of stop for LSB conformance
test -x $AMAVISD_BIN || { echo "$AMAVIS_BIN not installed";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
test -x $AMAVIS_MILTER_BIN || { echo "$AMAVIS_MILTER_BIN not installed";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
# Check for existence of needed config file and read it
test -r $AMAVIS_SYSCONFIG || { echo "$AMAVIS_SYSCONFIG not existing";
if [ "$1" = "stop" ]; then exit 0;
else exit 6; fi; }
test -r $AMAVIS_CONF || { echo "$AMAVIS_CONF not existing";
if [ "$1" = "stop" ]; then exit 0;
else exit 6; fi; }
# Read config
. $AMAVIS_SYSCONFIG
# Shell functions sourced from /etc/rc.status
. /etc/rc.status
# First reset status of this service
rc_reset
case "$1" in
start)
# ZMI 20100428 check for stale pid file
if test -f $AMAVIS_PID ; then
checkproc -p $AMAVIS_PID amavisd
if test $? -ge 1 ; then
# pid file is stale, remove it
echo -n "(stale amavisd pid file $AMAVIS_PID found, removing. Did amavisd crash?)"
rm -f $AMAVIS_PID
fi
fi
echo -n "Starting virus-scanner (amavisd-new): "
$AMAVISD_BIN start
if ! checkproc amavisd; then
rc_failed 7
fi
rc_status -v
if [ "$AMAVIS_SENDMAIL_MILTER" == "yes" ]; then
rc_reset
echo -n "Starting amavis-milter:"
startproc -u vscan $AMAVIS_MILTER_BIN -p $AMAVIS_MILTER_SOCK > /dev/null 2>&1
rc_status -v
fi
;;
stop)
echo -n "Shutting down virus-scanner (amavisd-new): "
if checkproc amavisd; then
rc_reset
$AMAVISD_BIN stop
else
rc_reset
fi
rc_status -v
if [ "$AMAVIS_SENDMAIL_MILTER" == "yes" ]; then
rc_reset
echo -n "Shutting down amavis-milter: "
killproc -TERM $AMAVIS_MILTER_BIN
rc_status -v
fi
;;
try-restart)
$0 status >/dev/null && $0 restart
rc_status
;;
restart)
$0 stop
$0 start
rc_status
;;
force-reload)
echo -n "Reload virus-scanner (amavisd-new): "
$AMAVISD_BIN reload 2>/dev/null
rc_status -v
;;
reload)
echo -n "Reload virus-scanner (amavisd-new): "
$AMAVISD_BIN reload 2>/dev/null
rc_status -v
;;
status)
echo -n "Checking for service amavis (amavisd-new): "
checkproc -p $AMAVIS_PID amavisd
rc_status -v
if [ "$AMAVIS_SENDMAIL_MILTER" == "yes" ]; then
rc_reset
echo -n "Checking for service amavis-milter: "
checkproc $AMAVIS_MILTER_BIN
rc_status -v
fi
;;
probe)
## Optional: Probe for the necessity of a reload, print out the
## argument to this init script which is required for a reload.
test $AMAVIS_CONF -nt /var/spool/amavis/amavisd.pid && echo reload
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
exit 1
;;
esac
# Inform the caller not only verbosely and set an exit status.
rc_exit
++++++ sysconfig.amavis ++++++
## Path: Network/Mail/Amavis
## Description: AMaViS configuration
## Type: yesno
## Default: yes
## Config: sendmail,postfix
## ServiceReload: amavis
#
# Set USE_AMAVIS to yes, if you want to use the email virus scanning
# facility AMaViS within sendmail or postfix. If set to yes, SuSEconfig
# will create the correct sendmail or postfix configuration for using
# AMaViS.
#
USE_AMAVIS="no"
## Type: yesno
## Default: "no"
#
# Use sendmail and it's milter interface (that will start an additional
# process called amavis-milter
#
AMAVIS_SENDMAIL_MILTER="no"
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org