Skip to content

Weird logs during direct connection #48

@catap

Description

@catap

As part of testing of 2.62 I've tried to use spampd as SMTP server, and discovered this in logs:

Dec  9 14:59:27 matebook spampd[67475]: Use of uninitialized value $msg[0] in chomp at /usr/local/sbin/spampd line 217, <GEN5> line 7.
Dec  9 14:59:27 matebook spampd[67475]: Use of uninitialized value $msg[0] in join or string at /usr/local/sbin/spampd line 218, <GEN5> line 7.
Dec  9 14:59:27 matebook spampd[67475]: Use of uninitialized value $destresp in concatenation (.) or string at /usr/local/sbin/spampd line 1154, <GEN5> line 7.

here a telnet session which I made:

$ telnet 127.0.0.1 10025
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 matebook.local ESMTP OpenSMTPD
HELO fake.domain.tld
250 matebook.local Hello fake.domain.tld [127.0.0.1], pleased to meet you
MAIL FROM:<sender@example.net>
250 2.0.0 Ok
RCPT TO:<recipient@example.net>
250 2.1.5 Destination address valid: Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Subject: Test spam mail (GTUBE)
Message-ID: <GTUBE1.1010101@example.net>
Date: Wed, 23 Jul 2003 23:30:00 +0200
From: Sender <sender@example.net>
To: Recipient <recipient@example.net>
Precedence: junk
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This is the GTUBE, the
        Generic
        Test for
        Unsolicited
        Bulk
        Email

If your spam filter supports it, the GTUBE provides a test by which you
can verify that the filter is installed correctly and is detecting incoming
spam. You can send yourself a test mail containing the following string of
characters (in upper case and with no white spaces and line breaks):

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

You should send this test mail from an account outside of your network.
.
250 2.0.0 54e90c11 Message accepted for delivery
QUIT
221 2.0.0 Bye
^CTerminated 
$

also, it hadn't closed the session after QUIT and I was forced to kill my telnet

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions