From: Rick Knight on
I have just enabled the greet_pause feature. I'm wondering if there is a
way to check it's function? I don't see anything in the message headers.

Thanks,
Rick
From: mikea on
Rick Knight <rick_knight(a)rlknight_nospam_.com> wrote in <4acce494$0$30961$ec3e2dad(a)unlimited.usenetmonster.com>:
> I have just enabled the greet_pause feature. I'm wondering if there is a
> way to check it's function? I don't see anything in the message headers.

That's dead easy.

Telnet into port 25 on your MTA.
If you see multi-second (however long you set it for) pause before the
"220" banner, it's probably working. Type "quit", telnet in again, and
type "helo example.org" (or some other domain) before the "220" banner.
If you aren't telneting in from a host exempt from greet-pause, you
should get a failure line

Oct 7 00:28:14 <2.6> <foo> sm-mta[93463]: n975SEQT093463: rejecting commands from [bar.example.com] [bar.example.com] 2759 due to pre-greeting traffic

in your maillog, and a nastygram in your telnet session from sendmail.

$ telnet foo 25
Trying 192.149.244.25...
Connected to foo.bar.org.
Escape character is '^]'.
<greet-pause delay should occur here>
220 foo.bar.org ESMTP Sendmail 8.13.8/8.13.6; Wed, 7 Oct 2009 14:08:57 -0500 (CDT)

$ telnet foo.bar.org 25
Trying 192.149.244.25...
Connected to foo.bar.org.
Escape character is '^]'.
<you type> helo example.net
554 foo.bar.org ESMTP not accepting messages

--
3rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
-- from a post by Simon Cozens
From: Rick Knight on
On Wed, 07 Oct 2009 14:20:45 -0500, mikea wrote:

> Rick Knight <rick_knight(a)rlknight_nospam_.com> wrote in
> <4acce494$0$30961$ec3e2dad(a)unlimited.usenetmonster.com>:
>> I have just enabled the greet_pause feature. I'm wondering if there is
>> a way to check it's function? I don't see anything in the message
>> headers.
>
> That's dead easy.
>
> Telnet into port 25 on your MTA.
> If you see multi-second (however long you set it for) pause before the
> "220" banner, it's probably working. Type "quit", telnet in again, and
> type "helo example.org" (or some other domain) before the "220" banner.
> If you aren't telneting in from a host exempt from greet-pause, you
> should get a failure line
>
> Oct 7 00:28:14 <2.6> <foo> sm-mta[93463]: n975SEQT093463: rejecting
> commands from [bar.example.com] [bar.example.com] 2759 due to
> pre-greeting traffic
>
> in your maillog, and a nastygram in your telnet session from sendmail.
>
> $ telnet foo 25
> Trying 192.149.244.25...
> Connected to foo.bar.org.
> Escape character is '^]'.
> <greet-pause delay should occur here> 220 foo.bar.org ESMTP Sendmail
> 8.13.8/8.13.6; Wed, 7 Oct 2009 14:08:57 -0500 (CDT)
>
> $ telnet foo.bar.org 25
> Trying 192.149.244.25...
> Connected to foo.bar.org.
> Escape character is '^]'.
> <you type> helo example.net
> 554 foo.bar.org ESMTP not accepting messages

Thanks, that worked great.