🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
13 messages
13 total messages Started by inwtx Sat, 24 Oct 2020 17:30
Ping sec3
#311719
Author: inwtx
Date: Sat, 24 Oct 2020 17:30
9 lines
1003 bytes
  Got one of these:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
B8EBF80193 3317 Sat Oct 24 07:44:41 mix@inwtx.net
(host caputo.sec3.net[45.138.97.132] said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))
echolot+conf.14=1603543500=29c56a23@sec3.net

  Never had one from sec3 before.  My stat dropped in apricot.
Re: Ping sec3
#311714
Author: SEC3
Date: Sat, 24 Oct 2020 18:35
43 lines
2103 bytes
On 2020-10-24 1:30 p.m., inwtx wrote:
>   Got one of these:
> 
> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> B8EBF80193 3317 Sat Oct 24 07:44:41 mix@inwtx.net
> (host caputo.sec3.net[45.138.97.132] said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))
> echolot+conf.14=1603543500=29c56a23@sec3.net

You have in the past encountered the same error message when talking to
the Zip2 pinger.

To be honest I don't understand what it's saying.

Is it saying "caputo.sec3.net was taking too long to respond so
mail.inwtx.net gave up waiting."

Or is it saying "mail.inwtx.net was taking too long to respond so
caputo.sec3.net gave up waiting."

I think its the 2nd.

If you visit mxtoolbox.com
<https://mxtoolbox.com/diagnostic.aspx>

and type in mail.inwtx.net

you will see the diagnostic message

"SendSMTPCommand: Timeout waiting for response after 15 seconds."

"SMTP Transaction Time 	15.131 seconds - Not good! on Transaction Time"


-- 
SEC3

Contact info and PGP key: <https://sec3.net>
List of Tor Hidden Services
<https://github.com/sec3pinger/tor-hidden-services>
List of Nym Keys
<https://github.com/sec3pinger/nym-keys>
YAMN Help
<https://sec3.net/yamnhelp/>
Re: Ping sec3
#311715
Author: SEC3
Date: Sat, 24 Oct 2020 18:43
38 lines
2010 bytes
On 2020-10-24 2:35 p.m., SEC3 wrote:
> On 2020-10-24 1:30 p.m., inwtx wrote:
>>   Got one of these:
>>
>> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
>> B8EBF80193 3317 Sat Oct 24 07:44:41 mix@inwtx.net
>> (host caputo.sec3.net[45.138.97.132] said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))
>> echolot+conf.14=1603543500=29c56a23@sec3.net
> 
> You have in the past encountered the same error message when talking to
> the Zip2 pinger.
> 
> To be honest I don't understand what it's saying.
> 
> Is it saying "caputo.sec3.net was taking too long to respond so
> mail.inwtx.net gave up waiting."
> 
> Or is it saying "mail.inwtx.net was taking too long to respond so
> caputo.sec3.net gave up waiting."
> 
> I think its the 2nd.

Maybe try placing in main.cf

smtp_connect_timeout = 300s
(the default is 30s)


-- 
SEC3

Contact info and PGP key: <https://sec3.net>
List of Tor Hidden Services
<https://github.com/sec3pinger/tor-hidden-services>
List of Nym Keys
<https://github.com/sec3pinger/nym-keys>
YAMN Help
<https://sec3.net/yamnhelp/>
Re: Ping sec3
#311717
Author: inwtx
Date: Sat, 24 Oct 2020 20:47
36 lines
1923 bytes
> 
> On 2020-10-24 2:35 p.m., SEC3 wrote:
> 
>> On 2020-10-24 1:30 p.m., inwtx wrote:
>>>   Got one of these:
>>>
>>> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
>>> B8EBF80193 3317 Sat Oct 24 07:44:41 mix@inwtx.net
>>> (host caputo.sec3.net45.138.97.132 said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))
>>> echolot+conf.14=1603543500=29c56a23@sec3.net
>>
>> You have in the past encountered the same error message when talking to
>> the Zip2 pinger.
>>
>> To be honest I don't understand what it's saying.
>>
>> Is it saying "caputo.sec3.net was taking too long to respond so
>> mail.inwtx.net gave up waiting."
>>
>> Or is it saying "mail.inwtx.net was taking too long to respond so
>> caputo.sec3.net gave up waiting."
>>
>> I think its the 2nd.
> 
> Maybe try placing in main.cf
> 
> smtp_connect_timeout = 300s
> (the default is 30s)
> 
  I hadn't changed anything here, so I thought you might have.
The explanation I read about this error was that a server 
somewhere between the sender and recipient causes this.

  I didn't have smtp_connect_timeout in main.cf, so I'll try
putting in smtp_connect_timeout = 300s and see if that does
anything.
Re: Ping sec3
#311720
Author: inwtx
Date: Sat, 24 Oct 2020 22:59
34 lines
1822 bytes
> 
> On 2020-10-24 2:35 p.m., SEC3 wrote:
> 
>> On 2020-10-24 1:30 p.m., inwtx wrote:
>>>   Got one of these:
>>>
>>> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
>>> B8EBF80193 3317 Sat Oct 24 07:44:41 mix@inwtx.net
>>> (host caputo.sec3.net45.138.97.132 said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))
>>> echolot+conf.14=1603543500=29c56a23@sec3.net
>>
>> You have in the past encountered the same error message when talking to
>> the Zip2 pinger.
>>
>> To be honest I don't understand what it's saying.
>>
>> Is it saying "caputo.sec3.net was taking too long to respond so
>> mail.inwtx.net gave up waiting."
>>
>> Or is it saying "mail.inwtx.net was taking too long to respond so
>> caputo.sec3.net gave up waiting."
>>
>> I think its the 2nd.
> 
> Maybe try placing in main.cf
> 
> smtp_connect_timeout = 300s
> (the default is 30s)
> 
> 
  Did discover a possible problem that might have been causing the 
problem with zip2 also.  My namecheap DNS mx ttl record was set to
5 minutes.  Put it on Automatic like swedemix, what ever Automatic
does.
Re: Ping sec3
#311721
Author: SEC3
Date: Sat, 24 Oct 2020 23:41
56 lines
2677 bytes
On 2020-10-24 6:59 p.m., inwtx wrote:
>>
>> On 2020-10-24 2:35 p.m., SEC3 wrote:
>>
>>> On 2020-10-24 1:30 p.m., inwtx wrote:
>>>>   Got one of these:
>>>>
>>>> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
>>>> B8EBF80193 3317 Sat Oct 24 07:44:41 mix@inwtx.net
>>>> (host caputo.sec3.net45.138.97.132 said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))
>>>> echolot+conf.14=1603543500=29c56a23@sec3.net
>>>
>>> You have in the past encountered the same error message when talking to
>>> the Zip2 pinger.
>>>
>>> To be honest I don't understand what it's saying.
>>>
>>> Is it saying "caputo.sec3.net was taking too long to respond so
>>> mail.inwtx.net gave up waiting."
>>>
>>> Or is it saying "mail.inwtx.net was taking too long to respond so
>>> caputo.sec3.net gave up waiting."
>>>
>>> I think its the 2nd.
>>
>> Maybe try placing in main.cf
>>
>> smtp_connect_timeout = 300s
>> (the default is 30s)
>>
>>
>   Did discover a possible problem that might have been causing the 
> problem with zip2 also.  My namecheap DNS mx ttl record was set to
> 5 minutes.  Put it on Automatic like swedemix, what ever Automatic
> does.

Your MX record looks solid to me. No problem there.

I don't know what is causing these timeout errors. I have read that the
way to troubleshoot this sort of thing is by using tcpdump while
connecting to the server that you are having trouble with.

Described here:
https://en.redinskala.com/postfix-421-4-4-2-timeout-exceeded/


-- 
SEC3

Contact info and PGP key: <https://sec3.net>
List of Tor Hidden Services
<https://github.com/sec3pinger/tor-hidden-services>
List of Nym Keys
<https://github.com/sec3pinger/nym-keys>
YAMN Help
<https://sec3.net/yamnhelp/>
Re: Ping sec3
#311723
Author: Grant Taylor
Date: Sun, 25 Oct 2020 01:06
35 lines
2642 bytes
On 10/24/20 11:30 AM, inwtx wrote:
> (host caputo.sec3.net[45.138.97.132] said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))

"in reply to end of DATA command" means that the TCP connection is 
established and that thee email transaction is /mostly/ complete.

The fact that the client (sending) system received the error from the 
server (receiving) system means that the TCP connection wasn't lost.  It 
may have been momentarily delayed.  I have some mild concerns about the 
15 second timeout that I saw elsewhere in the thread.

It seems to me as if caputo.sec3.net[45.138.97.132] generated the "421 
4.4.2 caputo.sec3.net Error: timeout exceeded..." message.

I don't know if it's a reference to a problem internal to 
caputo.sec3.net as the server (receiving system), possibly with local 
delivery, or if it's a reference to the client (sending) system waiting 
too long to issue an SMTP command /after/ the end of the DATA command.

But, seeing how the end of the DATA command id determined by the 
<CR><LF><.><CR><LF> sequence, that tells me that the message was fully 
delivered to the server (receiving) system, which I expect to be 
caputo.sec3.net.  If this is the case, the message should have been 
accepted and no longer in the queue. on the client (sending) system.  If 
the message was delivered, then it's probably an issue around graceful 
shutdown.

inwtx:  Are messages backing up in the queue?  Can you do a verbose mail 
queue run to watch the progression?  Or can you collect a packet capture?



-- 
Grant. . . .
unix || die
Re: Ping sec3
#311729
Author: inwtx
Date: Sun, 25 Oct 2020 14:12
30 lines
2845 bytes
> 
> On 10/24/20 11:30 AM, inwtx wrote:
> 
>> (host caputo.sec3.net45.138.97.132 said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command))
> 
> "in reply to end of DATA command" means that the TCP connection is established and that thee email transaction is /mostly/ complete.
> 
> The fact that the client (sending) system received the error from the server (receiving) system means that the TCP connection wasn't lost.  It may have been momentarily delayed.  I have some mild concerns about the 15 second timeout that I saw elsewhere in the thread.
> 
> It seems to me as if caputo.sec3.net45.138.97.132 generated the "421 4.4.2 caputo.sec3.net Error: timeout exceeded..." message.
> 
> I don't know if it's a reference to a problem internal to caputo.sec3.net as the server (receiving system), possibly with local delivery, or if it's a reference to the client (sending) system waiting too long to issue an SMTP command /after/ the end of the DATA command.
> 
> But, seeing how the end of the DATA command id determined by the <CR><LF><.><CR><LF> sequence, that tells me that the message was fully delivered to the server (receiving) system, which I expect to be caputo.sec3.net.  If this is the case, the message should have been accepted and no longer in the queue. on the client (sending) system.  If the message was delivered, then it's probably an issue around graceful shutdown.
> 
> inwtx:  Are messages backing up in the queue?  Can you do a verbose mail queue run to watch the progression?  Or can you collect a packet capture?
> 
  Hoi intermittently backs up.  This is the one and only time
sec3 has delivered this message.  Borked gave the same message 
yesterday also once and never does.  I have seen sec3 echolot
messages since and have one in the pool now and they have made
it through.  It seems to be an intermittent problem.  zip2 
always gives the message.  I have had this trouble with zip2 
in the previous and current server in the Netherlands.

  I am going to try putting this in the main.cf and transport
files for zip2:

zip2_destination_rate_delay = 29s
zip2.in zip2:
Re: Ping sec3
#311738
Author: inwtx
Date: Sun, 25 Oct 2020 14:59
2 lines
771 bytes
  Interesting write up
https://en.redinskala.com/postfix-421-4-4-2-timeout-exceeded/
Re: Ping sec3
#311730
Author: SEC3
Date: Sun, 25 Oct 2020 15:38
22 lines
1413 bytes
On 2020-10-25 10:59 a.m., inwtx wrote:
>   Interesting write up
> https://en.redinskala.com/postfix-421-4-4-2-timeout-exceeded/


I'm currently watching this Youtube video. Also very educational re:
ping, ttl, tcpdump, etc..

<https://www.youtube.com/watch?v=L3T5Wl8s3hw>



-- 
SEC3

Contact info and PGP key: <https://sec3.net>
List of Tor Hidden Services
<https://github.com/sec3pinger/tor-hidden-services>
List of Nym Keys
<https://github.com/sec3pinger/nym-keys>
YAMN Help
<https://sec3.net/yamnhelp/>
Re: Ping sec3
#311747
Author: inwtx
Date: Mon, 26 Oct 2020 13:18
144 lines
8872 bytes
> 
<snip>
> 
> inwtx:  Are messages backing up in the queue?  Can you do a verbose mail queue run to watch the progression?  Or can you collect a packet capture?
> 
  I finally got around to dumping some records.
This was stuck in the mailq:

D49DF80305     3317 Mon Oct 26 06:14:39  mix@inwtx.net
(host caputo.sec3.net[45.138.97.132] said: 421 4.4.2 caputo.sec3.net Error: timeout exceeded (in reply to end of DATA command)) echolot+conf.14=1603710900=3d8cd5ab@sec3.net

  I did a postqueue -f to try to force it out:
postqueue -f


  Tcpdump setup and here is what I got:
sudo tcpdump -A -vv host sec3.net

tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
08:09:16.427165 IP (tos 0x0, ttl 64, id 39506, offset 0, flags [DF], proto TCP (6), length 60)
    inwtx.net.57066 > caputo.sec3.net.smtp: Flags [S], cksum 0x4261 (incorrect -> 0xa134), seq 2722135890, win 29200, options [mss 1460,sackOK,TS val 217179392 ecr 0,nop,wscale 7], length 0
E..<.R@.@.^7....-.a......@.R......r.Ba.........
............
08:09:16.436151 IP (tos 0x0, ttl 55, id 0, offset 0, flags [DF], proto TCP (6), length 60)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [S.], cksum 0x1a7a (correct), seq 1809313142, ack 2722135891, win 28960, options [mss 1460,sackOK,TS val 56961766 ecr 217179392,nop,wscale 7], length 0
E..<..@.7...-.a.........k..v.@.S..q .z.........
.e*.........
08:09:16.436205 IP (tos 0x0, ttl 64, id 39507, offset 0, flags [DF], proto TCP (6), length 52)
    inwtx.net.57066 > caputo.sec3.net.smtp: Flags [.], cksum 0x4259 (incorrect -> 0xb97e), seq 1, ack 1, win 229, options [nop,nop,TS val 217179395 ecr 56961766], length 0
E..4.S@.@.^>....-.a......@.Sk..w....BY.....
.....e*.
08:09:16.476769 IP (tos 0x0, ttl 55, id 64489, offset 0, flags [DF], proto TCP (6), length 100)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xd12c (correct), seq 1:49, ack 1, win 227, options [nop,nop,TS val 56961776 ecr 217179395], length 48: SMTP, length: 48
        220 caputo.sec3.net ESMTP Postfix (Debian/GNU)
E..d..@.7..x-.a.........k..w.@.S.....,.....
.e*.....220 caputo.sec3.net ESMTP Postfix (Debian/GNU)

08:09:16.476821 IP (tos 0x0, ttl 64, id 39508, offset 0, flags [DF], proto TCP (6), length 52)
    inwtx.net.57066 > caputo.sec3.net.smtp: Flags [.], cksum 0x4259 (incorrect -> 0xb93a), seq 1, ack 49, win 229, options [nop,nop,TS val 217179405 ecr 56961776], length 0
E..4.T@.@.^=....-.a......@.Sk.......BY.....
.....e*.
08:09:16.477119 IP (tos 0x0, ttl 64, id 39509, offset 0, flags [DF], proto TCP (6), length 73)
    inwtx.net.57066 > caputo.sec3.net.smtp: Flags [P.], cksum 0x426e (incorrect -> 0xf3fc), seq 1:22, ack 49, win 229, options [nop,nop,TS val 217179405 ecr 56961776], length 21: SMTP, length: 21
        EHLO mail.inwtx.net
E..I.U@.@.^'....-.a......@.Sk.......Bn.....
.....e*.EHLO mail.inwtx.net

08:09:16.485247 IP (tos 0x0, ttl 55, id 64490, offset 0, flags [DF], proto TCP (6), length 52)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [.], cksum 0xb925 (correct), seq 49, ack 22, win 227, options [nop,nop,TS val 56961778 ecr 217179405], length 0
E..4..@.7...-.a.........k....@.h.....%.....
.e*....
08:09:16.730801 IP (tos 0x0, ttl 55, id 64493, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xdced (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56961840 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7..c-.a.........k..?.@.............
.e+0....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:09:16.946733 IP (tos 0x0, ttl 55, id 64494, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xdcb7 (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56961894 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7..b-.a.........k..?.@.............
.e+f....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:09:17.402800 IP (tos 0x0, ttl 55, id 64495, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xdc45 (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56962008 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7..a-.a.........k..?.@.......E.....
.e+.....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:09:18.266889 IP (tos 0x0, ttl 55, id 64496, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xdb6d (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56962224 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7..`-.a.........k..?.@.......m.....
.e,.....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:09:19.994744 IP (tos 0x0, ttl 55, id 64497, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xd9bd (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56962656 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7.._-.a.........k..?.@.............
.e.`....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:09:23.451050 IP (tos 0x0, ttl 55, id 64498, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xd65d (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56963520 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7..^-.a.........k..?.@.......].....
.e1.....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:09:30.362598 IP (tos 0x0, ttl 55, id 64499, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xcf9d (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56965248 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7..]-.a.........k..?.@.............
.e8.....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:09:44.186519 IP (tos 0x0, ttl 55, id 64500, offset 0, flags [DF], proto TCP (6), length 117)
    caputo.sec3.net.smtp > inwtx.net.57066: Flags [P.], cksum 0xc21d (correct), seq 201:266, ack 185, win 235, options [nop,nop,TS val 56968704 ecr 217179407], length 65: SMTP, length: 65
        250 2.1.0 Ok
        250 2.1.5 Ok
        354 End data with <CR><LF>.<CR><LF>
E..u..@.7..\-.a.........k..?.@.............
.eF.....250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>

08:10:07.185583 IP (tos 0x0, ttl 64, id 55070, offset 0, flags [DF], proto TCP (6), length 60)
    inwtx.net.40403 > caputo.sec3.net.http: Flags [S], cksum 0x4261 (incorrect -> 0x538f), seq 3170484620, win 29200, options [mss 1460,sackOK,TS val 217192082 ecr 0,nop,wscale 7], length 0
E..<..@.@.!k....-.a....P..........r.Ba.........
............
08:10:07.194300 IP (tos 0x0, ttl 56, id 0, offset 0, flags [DF], proto TCP (6), length 60)
    caputo.sec3.net.http > inwtx.net.40403: Flags [S.], cksum 0x83ed (correct), seq 1365974840, ack 3170484621, win 28960, options [mss 1460,sackOK,TS val 56974456 ecr 217192082,nop,wscale 7], length 0
E..<..@.8...-.a......P..Qk.8......q ...........
.e\x........
08:10:07.194357 IP (tos 0x0, ttl 64, id 55071, offset 0, flags [DF], proto TCP (6), length 52)
    inwtx.net.40403 > caputo.sec3.net.http: Flags [.], cksum 0x4259 (incorrect -> 0x22f3), seq 1, ack 1, win 229, options [nop,nop,TS val 217192084 ecr 56974456], length 0
E..4..@.@.!r....-.a....P....Qk.9....BY.....
.....e\x
Re: Ping sec3
#311748
Author: Grant Taylor
Date: Mon, 26 Oct 2020 15:33
32 lines
1922 bytes
On 10/26/20 7:18 AM, inwtx wrote:
>    I finally got around to dumping some records.

<something> life balance.

> This was stuck in the mailq:
> 
> D49DF80305     3317 Mon Oct 26 06:14:39  mix@inwtx.net
> (host caputo.sec3.net[45.138.97.132] said: 421 4.4.2 caputo.sec3.net 
> Error: timeout exceeded (in reply to end of DATA command)) 
> echolot+conf.14=1603710900=3d8cd5ab@sec3.net

Well, the tcpdump definitively shows who's talking to whom.

>    I did a postqueue -f to try to force it out:
> postqueue -f

*nod*

>    Tcpdump setup and here is what I got:
> sudo tcpdump -A -vv host sec3.net

I'm going to have to spend some time looking at this.

At first glance, either it's missing some packets or it's really 
strange.  I'm not seeing the expected full bidirectional SMTP exchange.



-- 
Grant. . . .
unix || die
Re: Ping sec3
#311755
Author: Grant Taylor
Date: Mon, 26 Oct 2020 19:57
202 lines
8826 bytes
On 10/26/20 7:18 AM, inwtx wrote:
>    Tcpdump setup and here is what I got:
> sudo tcpdump -A -vv host sec3.net

I reformatted the output a bit.

Reminder:  Syn / Ack / Push

Let's look at the packets independent of their content first.

Here's the first connection:

> 08:09:16.427165 ... inwtx.net.57066 > caputo.sec3.net.smtp: Flags [S]  ... seq 2722135890                 ... length 00
> 08:09:16.436151 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [SA] ... seq 1809313142, ack 2722135891 ... length 00
> 08:09:16.436205 ... inwtx.net.57066 > caputo.sec3.net.smtp: Flags [A]  ... seq 0000000001, ack 0000000001 ... length 00

These packets are the quintessential TCP 3-way handshake of the first 
connection.

> 08:09:16.476769 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq       1:49, ack 0000000001 ... length 48: SMTP, length: 48

caputo's SMTP greeting banner.

> 08:09:16.476821 ... inwtx.net.57066 > caputo.sec3.net.smtp: Flags [A]  ... seq 0000000001, ack 0000000049 ... length 00

inwtx acknowledging caputo's SMTP greeting banner.

> 08:09:16.477119 ... inwtx.net.57066 > caputo.sec3.net.smtp: Flags [PA] ... seq       1:22, ack 0000000049 ... length 21: SMTP, length: 21

inwtx sending an extended hello.

> 08:09:16.485247 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [A]  ... seq 0000000049, ack 0000000022 ... length 00

caputo acknowledging inwtx's hello.

> 08:09:16.730801 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo sending the ESMTP supported features list.

> 08:09:16.946733 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo re-sending the ESMTP supported features list a second time.

> 08:09:17.402800 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo re-sending the ESMTP supported features list a third time.

> 08:09:18.266889 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo re-sending the ESMTP supported features list a fourth time.

> 08:09:19.994744 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo re-sending the ESMTP supported features list a fifth time.

> 08:09:23.451050 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo re-sending the ESMTP supported features list a sixth time.

> 08:09:30.362598 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo re-sending the ESMTP supported features list a seventh time.

> 08:09:44.186519 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA] ... seq    201:266, ack 0000000185 ... length 65: SMTP, length: 65

caputo re-sending the ESMTP supported features list a eith time.


This begs the following questions:

Q1 - Why is caputo re-sending (retransmitting) the same packet eight times?

Q2 - Why is it doing so in less than 28 seconds?

Q3 - Why is inwtx not at least Acknowledging any of the packets?

Q4 - Where are the rest of the packets from the first connection.


Here's the second connection:

> 08:10:07.185583 ... inwtx.net.40403 > caputo.sec3.net.http: Flags [S]  ... seq 3170484620, win 0000029200 ... length 00
> 08:10:07.194300 ... caputo.sec3.net.http > inwtx.net.40403: Flags [SA] ... seq 1365974840, ack 3170484621 ... length 00
> 08:10:07.194357 ... inwtx.net.40403 > caputo.sec3.net.http: Flags [A]  ... seq 0000000001, ack 0000000001 ... length 00

These packets are the quintessential TCP 3-way handshake of the second 
connection.


Now let's look at this from an SMTP protocol level.


Here's the first connection:

> 08:09:16.476769 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA]
>         220 caputo.sec3.net ESMTP Postfix (Debian/GNU)

caputo's SMTP greeting banner.  --  This is normal.

> 08:09:16.477119 ... inwtx.net.57066 > caputo.sec3.net.smtp: Flags [PA]
>         EHLO mail.inwtx.net

inwtx acknowledging caputo's SMTP greeting banner.  --  This is normal.

> 08:09:16.730801 ... caputo.sec3.net.smtp > inwtx.net.57066: Flags [PA]
>         250 2.1.0 Ok
>         250 2.1.5 Ok
>         354 End data with <CR><LF>.<CR><LF>

caputo sending the ESMTP supported features list.

This is definitely NOT normal.

1)  If it's supposed to be a multi-line SMTP reply, all but the last 
line is supposed to be ###-..., number, number, number, hyphen. Only the 
last line is supposed to be ### ..., number, number, number, space.

2)  Why are there two different extended status notification numbers, 
2.1.0 vs 2.1.5?

3)  Why are there two basic major status groups, 2xx and 3xx?

4)  Why does caputo finish responding to the EHLO command as if it's the 
response to the DATA command?

This fundamentally violates the (E)SMTP finite state machine.


caputo's SMTP server appears to be broken.  Or at least something is 
causing it to misbehave very badly here.

I'm ignoring the other seven retransmissions of the same thing because 
from an application's point of view, the SMTP data through the TCP 
connection stops and does not progress past the first transmission of 
the packet.


This packet capture actually makes the following make more sense to me.

> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> B8EBF80193 3317 Sat Oct 24 07:44:41 mix@inwtx.net
> (host caputo.sec3.net[45.138.97.132] said: 421 4.4.2 caputo.sec3.net 
> Error: timeout exceeded (in reply to end of DATA command))
> echolot+conf.14=1603543500=29c56a23@sec3.net

I'm making the following assumptions:

1)  inwtx.net generated this report output.
2)  caputo.sec3.net would /eventually/ generate the "timeout exceeded 
(in reply to end of DATA command)"

This really makes me believe that caputo.sec3.net's SMTP finite state 
machine is messed up (at least for inwtx.net).

The reason inwtx is not completing the "DATA" command is because it 
hasn't ever started it.

The SMTP finite state machine should go something like this:

C <<< | 220 caputo.sec3.net ESMTP Postfix (Debian/GNU)
I >>> | EHLO mail.inwtx.net
C <<< | 250 2.1.0 Ok
I >>>   MAIL FROM:<...>
C <<< | 250 2.1.5 Ok
I >>>   RCPT TO:<...>
C <<<   2xx ...
I >>>   DATA
C <<< | 354 End data with <CR><LF>.<CR><LF>
I >>>   ...
I >>>   .
C <<<   2xx ...
I >>>   QUIT
C <<<   2xx ...

The pipe symbols are the lines that are actually being seen in the 
packet capture.

I'm guessing that inwtx quits sending any data because what it's seeing 
does not match the SMTP finite state machine.

If caputo thinks that it's entering the DATA phase, and inwtx thinks 
it's still after the hello, the systems fail to properly communicate. 
caputo quite likely will /eventually/ time out the DATA and produce an 
error like "timeout exceeded (in reply to end of DATA command)".

I didn't hyper analyze the acknowledgement and sequence numbers beyond 
the first few packets (TCP 3-way handshake) and a couple after.  At 
least not beyond seeing that one packet is being re-transmitted.

But, based on what I did see, the sequence and acknowledgement numbers 
do match what they should, and I don't believe there are any packets 
missing (up to the point of retransmission) to account for the SMTP 
finite state machine violations.

This seems VERY broken to me.  I don't recall seeing anything like this 
in my career.



-- 
Grant. . . .
unix || die
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads