Koozali.org: home of the SME Server

WARNING in /etc/e-smith/templates//var/service/qpsmtpd/config/plugins/70spamass

Offline Michail Pappas

  • *
  • 351
  • +1/-0
Possible problem with my up-to-date 8.0:

Code: [Select]
Jun 11 07:26:51 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/plugins
Jun 11 07:26:52 server esmith::event[2114]: WARNING in /etc/e-smith/templates//var/service/qpsmtpd/config/plugins/70spamassassin: Use of uninitialized value in pattern match (m//) at /etc/e-smith/templates//var/service/qpsmtpd/config/plugins/70spamassassin line 29.
Jun 11 07:26:52 server esmith::event[2114]: WARNING: Template processing succeeded for //var/service/qpsmtpd/config/peers/0: 1 fragment generated warnings
Jun 11 07:26:52 server esmith::event[2114]:  at /etc/e-smith/events/actions/generic_template_expand line 56
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/loglevel
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/plugin_dirs
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/smtpgreeting
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/relayclients
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/tls_before_auth
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/timeoutsmtpd
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/databytes
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/IP
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/dnsbl_allow
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/subject_prefix
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/signatures_patterns
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/dnsbl_zones
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/timeout
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/tls_ciphers
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/peers/0
Jun 11 07:26:52 server esmith::event[2114]: WARNING in /etc/e-smith/templates//var/service/qpsmtpd/config/peers/0/70spamassassin: Use of uninitialized value in pattern match (m//) at /etc/e-smith/templates//var/service/qpsmtpd/config/peers/0/70spamassassin line 29.
Jun 11 07:26:52 server esmith::event[2114]: WARNING: Template processing succeeded for //var/service/qpsmtpd/config/peers/0: 1 fragment generated warnings
Jun 11 07:26:52 server esmith::event[2114]:  at /etc/e-smith/events/actions/generic_template_expand line 56
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/config/peers/local
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/peers/0
Jun 11 07:26:52 server esmith::event[2114]: expanding /var/service/qpsmtpd/peers/local

The entire file in my case reads:
Code: [Select]
{
# You can run the spamassassin plugin with options.  See perldoc
# plugins/spamassassin for details.
#
# spamassassin
# rejects mails with a SA score higher than 20 and munges the subject
# of the score is higher than 10.
#
# spamassassin reject_threshold 20 munge_subject_threshold 10

    my $status = $spamassassin{status} || 'disabled';
    return "# spamassassin disabled" unless ($status eq "enabled");

    my @options = qw(spamassassin);

    if ($spamassassin{Sensitivity} eq "custom")
    {
        if ($spamassassin{RejectLevel} > $spamassassin{TagLevel})
        {
            push @options, "reject_threshold", $spamassassin{RejectLevel};
        }
    }

    if ($spamassassin{SubjectTag} eq "enabled")
    {
        push @options, "munge_subject_threshold", $spamassassin{TagLevel};
    }

    if ($spamassassin{MaxMessageSize} =~ m/^\d+$/)
    {
        push @options, "size_limit", $spamassassin{MaxMessageSize};
    }

    return join " ", @options;
}

So the offending line is:
Code: [Select]
if ($spamassassin{MaxMessageSize} =~ m/^\d+$/)

Of possible interest:
Code: [Select]
# config show qmail
qmail=service
    MaxMessageSize=6000000
    status=enabled

# config show spamassassin
spamassassin=service
    DNSAvailable=yes
    MessageRetentionTime=90
    OkLanguages=en el
    OkLocales=en el gr
    RejectLevel=6.01
    ReportSafe=0
    Sensitivity=custom
    SkipRBLChecks=0
    SortSpam=enabled
    Subject=[SPAM]
    SubjectTag=enabled
    TagLevel=6
    TrustedNetworks=127/8 192.168/16
    UseAutoWhitelist=0
    UseBayes=1
    status=enabled

If a possible bug, I'll be happy to open a report for this, please let me know.
« Last Edit: June 12, 2013, 07:32:39 AM by Michail Pappas »

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Please report this issue in the bug tracker. Thanks
C'est la fin du monde !!! :lol:

Offline Michail Pappas

  • *
  • 351
  • +1/-0
Thanks, opened bug report http://bugs.contribs.org/bugs/show_bug.cgi?id=7668

Will continue discussion there.