Package: amavisd-cn
Architecture: all
Provides: amavisd-new-cn
-Depends: amavisd-new (>= 20030616p10-5), postfix | amavisd-new-milter (>= 20030616p10-5), postfix | sendmail (>= 8.13.1-20), clamav-cn (>= 0.80-7), spamassassin (>= 2.64), debianutils (>= 1.13.1), carnet-tools-cn (>= 2.1), procps, patch, host
+Depends: amavisd-new (>= 20030616p10-5), postfix | amavisd-new-milter (>= 20030616p10-5), postfix | sendmail (>= 8.13.1-20), clamav-cn (>= 0.80-7), spamassassin (>= 2.64), debianutils (>= 1.13.1), carnet-tools-cn (>= 2.7), procps, patch
Pre-Depends: amavisd-new
Recommends: sweep-cn, libsavi-perl
Conflicts: libsavi-perl (<< 0.15), bunch-perl-modules-cn, sweep-cn (<< 1.8-2)
cp_echo "CN: Current configuration saved in /var/backups/`basename $1`.bak"
}
-# if fqdn is name.dom3.dom2.dom1.hr, check if this host is MX for
-# either dom3.dom2.dom1.hr, dom2.dom1.hr or dom1.hr and dump highest level
-# domain on stdout
-get_domain() {
- local domains d
- RET=$host
- if ! echo $host | grep -q '\.'; then
- return
- fi
- if [ ! -x /usr/bin/host ]; then
- cp_echo "CN: no host command... \$mydomain value might be unoptimal."
- return
- fi
- domains=$(hostname -f | awk -F. '
- {
- for (i=2; i<NF; i++) {
- for (j=i; j<NF; j++) {
- printf "%s", $(j)"."
- };
- print $NF
- }
- }' )
- for d in $domains
- do
- mxes=$(host -t mx $d)
- # handle output of both /usr/bin/host providers
- mxes=$(echo "$mxes"|\
- awk '/mail is handled by/ || /MX/ {print $NF}'|sed s/\.$//)
- if echo "$mxes" |egrep -q "^$host$"; then
- RET="$d"
- fi
- done
-}
-
# XXX TODO implement per paragraph conditional munging some day
in_paragraph() {
return 1