SV: Port 25

mikea mikea at MIKEA.ATH.CX
Wed Jun 25 15:13:06 IST 2003


On Wed, Jun 25, 2003 at 04:07:15PM +0200, Anders Andersson, IT wrote:
> > -----Ursprungligt meddelande-----
> > Från: mikea [mailto:mikea at MIKEA.ATH.CX] 
> > Skickat: den 25 juni 2003 15:41
> > Till: MAILSCANNER at JISCMAIL.AC.UK
> > Ämne: Re: Port 25

> > Try doing `telnet <name-of-machine> 25`. If something answers 
> > and puts up a banner, then there's a listener on 25, which 
> > probably is your MTA. The banner will tell you what's there.
> > 
> > Mine gives this:
> > 
> >     $ telnet 127.0.0.1 25
> >     220- ESMTP
> >     220-
> >     220-
> >     220-It is a violation of applicable law to send spam
> >     220-to this server, and such violations may be prosecuted.
> >     220-
> >     220 Be aware: Oklahoma has Long Arm clauses in its 
> > computer crime statute.

> What did you add to get that message or maybe its not sendmail?

Here's the relevant stuff from my /etc/mail/sendmail.cf: 

: # SMTP initial login message (old $e macro)
: #O SmtpGreetingMessage=$j Sendmail $v/$Z; $b
: #       turns out to be
: #       220 mikea.ath.cx ESMTP Sendmail 8.12.3/8.12.3; Sun, 11 May 2003 15:24:54 -0500 (CDT)
: O SmtpGreetingMessage=\n\n\nIt is a violation of applicable law to send spam\nto this server, and such violations may be prosecuted.\n\nBe aware: Oklahoma has Long Arm clauses in its computer crime statute.

Turns out that sendmail changes "\n" to CRLF in its banner. 

_Very_ handy. 

-- 
Mike Andrews
mikea at mikea.ath.cx
Tired old sysadmin since 1964




More information about the MailScanner mailing list