1

Topic: netset: cannot include

==== Required information ====
- iRedMail version: 0.8.7
- Linux/BSD distribution name and version: Debian 7 Wheezy
- Store mail accounts in which backend: LDAP
- Web server: Apache
- Manage mail accounts with: iRedAdmin
- Related log if you're reporting an issue:
====

Hello,

i cleaned up every error on the system and everything is going smooth.
Now its only this one left. Its not urgent but bothersome and is filling the log.

Cron <amavis@mail> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync
netset: cannot include 127.0.0.1/32 as it has already been included
netset: cannot include 127.0.0.1/32 as it has already been included


I tried this solution but it didn't work for me.
Hope you can help me fix this tiny issue.

Thx in Advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: netset: cannot include

Which config file contain "127.0.0.1/32"?

3 (edited by neozimpi@gmail.com 2016-08-29 22:11:09)

Re: netset: cannot include

ZhangHuangbin wrote:

Which config file contain "127.0.0.1/32"?

I searched all file that could contain "127.0.0.1/32"
I cant find it and dont know from where amavis gets the info.

There is something in "/etc/amavis/conf.d/50-user"

------------------
chomp($mydomain = "host.domain");
#@local_domains_maps = 1;
# @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
#                  10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
--------------------

where else could i look?

4

Re: netset: cannot include

Is it hard-coded in /usr/sbin/amavisd-new-cronjob?

5

Re: netset: cannot include

there is no entry there.
here is the the file:
/usr/sbin/amavisd-new-cronjob
___________________________________________________

#!/bin/bash

# amavisd-new cronjob helper
#
# Run it as the amavis user
#
# First parameter specifies which cronjob routine to run:
#               sa-sync:        spamassassin fast sync
#               sa-clean:       spamassassin cleanup

test -e /usr/bin/sa-learn || exit 0
test -e /usr/sbin/amavisd-new || exit 0

if [ "$(id --name -u)" != "amavis" ]
then
    echo "Please run this cronjob as user amavis"
    exit 1
fi

set -e
umask 022

if ! perl -MMail::SpamAssassin -e "my \$spamtest = Mail::SpamAssassin->new();
\$spamtest->compile_now (); \$spamtest->{conf}->{use_bayes} ? exit 0 : exit 1"
then
        #bayes is disabled - just exit
        exit
fi

case $1 in
        sa-sync)
                /usr/bin/sa-learn --sync 2>&1 >/dev/null
                ;;
        sa-clean)
                /usr/bin/sa-learn --sync --force-expire 2>&1 >/dev/null
                ;;
        *)
                echo "$0: unknown cron routine $1" >&2
                exit 1
                ;;
esac

exit 0
___________________________________________________

6

Re: netset: cannot include

No idea. maybe run 'grep' command under /etc/ to find the file? e.g.

grep -rl '127.0.0.1/32' /etc/